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

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

Issue 1830333002: Correct visual rects for scroll corner/resizer and non-frame composited scroll bars. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Don't create a LayoutScrollbartPart if we've no scrollable area. Created 4 years, 8 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
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 0f5a9899dd0d0ef9a9960fe7689876bb6839adf3..003da4f23bd64b3ef3c0b3afe04d3ad07a242040 100644
--- a/third_party/WebKit/Source/core/frame/FrameView.cpp
+++ b/third_party/WebKit/Source/core/frame/FrameView.cpp
@@ -2320,7 +2320,7 @@ void FrameView::updateScrollCorner()
if (cornerStyle) {
if (!m_scrollCorner)
- m_scrollCorner = LayoutScrollbarPart::createAnonymous(doc);
+ m_scrollCorner = LayoutScrollbarPart::createAnonymous(doc, this);
m_scrollCorner->setStyleWithWritingModeOfParent(cornerStyle.release());
setScrollCornerNeedsPaintInvalidation();
} else if (m_scrollCorner) {

Powered by Google App Engine
This is Rietveld 408576698