mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 23:57:44 +00:00
Everywhere: Hook up remaining debug macros to Debug.h.
This commit is contained in:
parent
da69de1f1b
commit
eea72b9b5c
63 changed files with 458 additions and 287 deletions
|
@ -24,6 +24,7 @@
|
|||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <AK/Debug.h>
|
||||
#include <LibGUI/Painter.h>
|
||||
#include <LibGUI/ScrollBar.h>
|
||||
#include <LibGUI/Widget.h>
|
||||
|
@ -81,7 +82,7 @@ void FrameBox::paint(PaintContext& context, PaintPhase phase)
|
|||
context.set_viewport_rect(old_viewport_rect);
|
||||
context.painter().restore();
|
||||
|
||||
#ifdef DEBUG_HIGHLIGHT_FOCUSED_FRAME
|
||||
#if HIGHLIGHT_FOCUSED_FRAME_DEBUG
|
||||
if (dom_node().content_frame()->is_focused_frame()) {
|
||||
context.painter().draw_rect(absolute_rect().to<int>(), Color::Cyan);
|
||||
}
|
||||
|
|
|
@ -120,7 +120,7 @@ static bool build_gemini_document(DOM::Document& document, const ByteBuffer& dat
|
|||
auto gemini_document = Gemini::Document::parse(gemini_data, document.url());
|
||||
String html_data = gemini_document->render_to_html();
|
||||
|
||||
#ifdef GEMINI_DEBUG
|
||||
#if GEMINI_DEBUG
|
||||
dbgln("Gemini data:\n\"\"\"{}\"\"\"", gemini_data);
|
||||
dbgln("Converted to HTML:\n\"\"\"{}\"\"\"", html_data);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue