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

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

Issue 1340643004: Stop propagating customscrollbar styles across iframe boundaries. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: addressed review comments Created 4 years, 6 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 56a642dec49b640e4a6fbb1bd43f448f10387641..996b4d775af9ddbd511c3e53d385a9e9870cccbc 100644
--- a/third_party/WebKit/Source/core/frame/FrameView.cpp
+++ b/third_party/WebKit/Source/core/frame/FrameView.cpp
@@ -490,13 +490,6 @@ bool FrameView::shouldUseCustomScrollbars(Element*& customScrollbarElement, Loca
return true;
}
- // If we have an owning ipage/LocalFrame element, then it can set the custom scrollbar also.
- LayoutPart* frameLayoutObject = m_frame->ownerLayoutObject();
- if (frameLayoutObject && frameLayoutObject->style()->hasPseudoStyle(PseudoIdScrollbar)) {
- customScrollbarFrame = m_frame.get();
- return true;
- }
-
return false;
}

Powered by Google App Engine
This is Rietveld 408576698