Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(276)

Unified Diff: third_party/WebKit/Source/core/paint/PaintLayerScrollableAreaTest.cpp

Issue 2474603002: Don't include LayoutObject-derived headers where not needed. (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/paint/PaintLayerScrollableAreaTest.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintLayerScrollableAreaTest.cpp b/third_party/WebKit/Source/core/paint/PaintLayerScrollableAreaTest.cpp
index 0e08a5e2d2ba1593c39f47d5765563a1a285e384..237e22190512fdcba26b6735648e2a823dbed1d9 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayerScrollableAreaTest.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayerScrollableAreaTest.cpp
@@ -5,7 +5,7 @@
#include "core/paint/PaintLayerScrollableArea.h"
#include "core/frame/FrameView.h"
-#include "core/layout/LayoutBlock.h"
+#include "core/layout/LayoutBoxModelObject.h"
#include "core/layout/LayoutTestHelper.h"
#include "core/paint/PaintLayer.h"
#include "platform/graphics/GraphicsLayer.h"
@@ -21,7 +21,7 @@ class PaintLayerScrollableAreaTest : public RenderingTest {
bool canPaintBackgroundOntoScrollingContentsLayer(const char* elementId) {
PaintLayer* paintLayer =
- toLayoutBlock(getLayoutObjectByElementId(elementId))->layer();
+ toLayoutBoxModelObject(getLayoutObjectByElementId(elementId))->layer();
return paintLayer->canPaintBackgroundOntoScrollingContentsLayer();
}

Powered by Google App Engine
This is Rietveld 408576698