summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Layout/FrameBox.cpp
diff options
context:
space:
mode:
authorasynts <asynts@gmail.com>2021-01-24 15:28:26 +0100
committerAndreas Kling <kling@serenityos.org>2021-01-25 09:47:36 +0100
commiteea72b9b5c12b9ffdf80e0990518ce183ac0cf70 (patch)
tree7bc797f5e86863391e506ae188616356d3b0ec11 /Userland/Libraries/LibWeb/Layout/FrameBox.cpp
parentda69de1f1b04e304772daed5223a380fb13f82d6 (diff)
downloadserenity-eea72b9b5c12b9ffdf80e0990518ce183ac0cf70.zip
Everywhere: Hook up remaining debug macros to Debug.h.
Diffstat (limited to 'Userland/Libraries/LibWeb/Layout/FrameBox.cpp')
-rw-r--r--Userland/Libraries/LibWeb/Layout/FrameBox.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/FrameBox.cpp b/Userland/Libraries/LibWeb/Layout/FrameBox.cpp
index b9e51f475f..62ba34f755 100644
--- a/Userland/Libraries/LibWeb/Layout/FrameBox.cpp
+++ b/Userland/Libraries/LibWeb/Layout/FrameBox.cpp
@@ -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);
}