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

Unified Diff: 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: fixing test cases Created 5 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 | « LayoutTests/fast/events/scale-and-scroll-iframe-window.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/FrameView.cpp
diff --git a/Source/core/frame/FrameView.cpp b/Source/core/frame/FrameView.cpp
index 3ff03734b8bb63efb9bced21f0761a40336de1d3..0321d07fe7405602c61ec9aef0a7d8a9986dae8d 100644
--- a/Source/core/frame/FrameView.cpp
+++ b/Source/core/frame/FrameView.cpp
@@ -475,9 +475,9 @@ 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(SCROLLBAR)) {
+ // If we have an ipage/LocalFrame element, then it can set the custom scrollbar also.
+ LayoutView* frameLayoutView = m_frame->contentLayoutObject();
+ if (frameLayoutView && frameLayoutView->style()->hasPseudoStyle(SCROLLBAR)) {
skobes 2015/09/16 01:49:04 Your test uses ::-webkit-scrollbar with no tag nam
MuVen 2015/09/16 11:18:49 for these tests,::-webkit-scrollbar is defined in
skobes 2015/09/16 15:06:12 If ::-webkit-scrollbar styles are added inside the
customScrollbarFrame = m_frame.get();
return true;
}
« no previous file with comments | « LayoutTests/fast/events/scale-and-scroll-iframe-window.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698