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

Unified Diff: third_party/WebKit/Source/core/page/scrolling/RootScrollerUtil.cpp

Issue 2531343002: Don't assume current root scroller is a LayoutBox. (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
« no previous file with comments | « no previous file | third_party/WebKit/Source/web/tests/RootScrollerTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1325221e5aef0c91d6cbce4ca556dc62819d32a2..6d80002a3c95ff1214c4d605f69bb1102d65de25 100644
--- a/third_party/WebKit/Source/core/page/scrolling/RootScrollerUtil.cpp
+++ b/third_party/WebKit/Source/core/page/scrolling/RootScrollerUtil.cpp
@@ -36,10 +36,9 @@ ScrollableArea* scrollableAreaForRootScroller(const Element& element) {
}
PaintLayer* paintLayerForRootScroller(const Element* element) {
- if (!element || !element->layoutObject())
+ if (!element || !element->layoutObject() || !element->layoutObject()->isBox())
return nullptr;
- DCHECK(element->layoutObject()->isBox());
LayoutBox* box = toLayoutBox(element->layoutObject());
// If the root scroller is the <html> element we do a bit of a fake out
« no previous file with comments | « no previous file | third_party/WebKit/Source/web/tests/RootScrollerTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698