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

Unified Diff: third_party/WebKit/Source/core/page/scrolling/RootScrollerUtil.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/page/scrolling/RootScrollerUtil.cpp
diff --git a/third_party/WebKit/Source/core/page/scrolling/RootScrollerUtil.cpp b/third_party/WebKit/Source/core/page/scrolling/RootScrollerUtil.cpp
index 5e70a18b98b7b7de7221a9b8da437ff9ac88743b..4940df7bb9d775466499d6dbfeb1b5966f1e3027 100644
--- a/third_party/WebKit/Source/core/page/scrolling/RootScrollerUtil.cpp
+++ b/third_party/WebKit/Source/core/page/scrolling/RootScrollerUtil.cpp
@@ -7,8 +7,7 @@
#include "core/dom/Document.h"
#include "core/dom/Element.h"
#include "core/frame/FrameView.h"
-#include "core/layout/LayoutBox.h"
-#include "core/layout/LayoutObject.h"
+#include "core/layout/LayoutBoxModelObject.h"
#include "core/paint/PaintLayerScrollableArea.h"
namespace blink {
@@ -31,7 +30,7 @@ ScrollableArea* scrollableAreaFor(const Element& element) {
return nullptr;
return static_cast<PaintInvalidationCapableScrollableArea*>(
- toLayoutBox(element.layoutObject())->getScrollableArea());
+ toLayoutBoxModelObject(element.layoutObject())->getScrollableArea());
}
} // namespace RootScrollerUtil

Powered by Google App Engine
This is Rietveld 408576698