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

Unified Diff: third_party/WebKit/Source/core/frame/FrameView.cpp

Issue 2334313002: [Layout API] Use ownerLayoutItem() in scrollableAreaBoundingBox() (Closed)
Patch Set: Created 4 years, 3 months 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/core/layout/api/LayoutBoxItem.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/frame/FrameView.cpp
diff --git a/third_party/WebKit/Source/core/frame/FrameView.cpp b/third_party/WebKit/Source/core/frame/FrameView.cpp
index e106030ac6c138d8d707a6158cfcc99057eddaee..57b90d70007003b91be12c5f726b27289a921a4c 100644
--- a/third_party/WebKit/Source/core/frame/FrameView.cpp
+++ b/third_party/WebKit/Source/core/frame/FrameView.cpp
@@ -2303,11 +2303,11 @@ void FrameView::scrollbarVisibilityChanged()
IntRect FrameView::scrollableAreaBoundingBox() const
{
- LayoutPart* ownerLayoutObject = frame().ownerLayoutObject();
- if (!ownerLayoutObject)
+ LayoutPartItem ownerLayoutItem = frame().ownerLayoutItem();
+ if (ownerLayoutItem.isNull())
return frameRect();
- return ownerLayoutObject->absoluteContentQuad().enclosingBoundingBox();
+ return ownerLayoutItem.absoluteContentQuad().enclosingBoundingBox();
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/api/LayoutBoxItem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698