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

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

Issue 2326883003: [Layout API] Use ownerLayoutItem() in scrollContentsSlowPath() (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 | no next file » | 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 19eda267e1bda30418b0466058de7313612200d5..577aa2575eaa9992abae6009512cf5cadbdd568e 100644
--- a/third_party/WebKit/Source/core/frame/FrameView.cpp
+++ b/third_party/WebKit/Source/core/frame/FrameView.cpp
@@ -1514,14 +1514,15 @@ void FrameView::scrollContentsSlowPath()
DisablePaintInvalidationStateAsserts disabler;
layoutViewItem().invalidatePaintRectangle(LayoutRect(updateRect));
}
- if (LayoutPart* frameLayoutObject = m_frame->ownerLayoutObject()) {
+ LayoutPartItem frameLayoutItem = m_frame->ownerLayoutItem();
+ if (!frameLayoutItem.isNull()) {
if (isEnclosedInCompositingLayer()) {
- LayoutRect rect(frameLayoutObject->borderLeft() + frameLayoutObject->paddingLeft(),
- frameLayoutObject->borderTop() + frameLayoutObject->paddingTop(),
+ LayoutRect rect(frameLayoutItem.borderLeft() + frameLayoutItem.paddingLeft(),
+ frameLayoutItem.borderTop() + frameLayoutItem.paddingTop(),
LayoutUnit(visibleWidth()), LayoutUnit(visibleHeight()));
// FIXME: We should not allow paint invalidation out of paint invalidation state. crbug.com/457415
DisablePaintInvalidationStateAsserts disabler;
- frameLayoutObject->invalidatePaintRectangle(rect);
+ frameLayoutItem.invalidatePaintRectangle(rect);
return;
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698