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

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

Issue 2374613003: [Layout API] Use ownerLayoutItem in updateScrollCorner() (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/LayoutItem.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 2de7149867ceba3ba66028b8896f81be3eff77d8..7ec7e52dbf4abbb3fc5ad1deff667fd9865ebf01 100644
--- a/third_party/WebKit/Source/core/frame/FrameView.cpp
+++ b/third_party/WebKit/Source/core/frame/FrameView.cpp
@@ -2486,8 +2486,9 @@ void FrameView::updateScrollCorner()
if (!cornerStyle) {
// If we have an owning ipage/LocalFrame element, then it can set the custom scrollbar also.
- if (LayoutPart* layoutObject = m_frame->ownerLayoutObject())
- cornerStyle = layoutObject->getUncachedPseudoStyle(PseudoStyleRequest(PseudoIdScrollbarCorner), layoutObject->style());
+ LayoutPartItem layoutItem = m_frame->ownerLayoutItem();
+ if (!layoutItem.isNull())
+ cornerStyle = layoutItem.getUncachedPseudoStyle(PseudoStyleRequest(PseudoIdScrollbarCorner), layoutItem.style());
}
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/api/LayoutItem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698