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

Unified Diff: third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp

Issue 2437303002: Fix unscrollable scrollers after closing a <dialog>. (Closed)
Patch Set: address review comments Created 4 years, 2 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/paint/PaintLayerScrollableArea.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
index 025e444070fa6c55cdb04a0b071f4e326b27cf7d..98686ea825156d96b9f5222dbaced0d9ad2ba69b 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
@@ -1602,10 +1602,11 @@ void PaintLayerScrollableArea::updateScrollableAreaSet(bool hasOverflow) {
return;
// FIXME: Does this need to be fixed later for OOPI?
- bool isVisibleToHitTest = box().visibleToHitTesting();
- if (HTMLFrameOwnerElement* owner = frame->deprecatedLocalOwner())
- isVisibleToHitTest &=
- owner->layoutObject() && owner->layoutObject()->visibleToHitTesting();
+ bool isVisibleToHitTest = box().style()->visibleToHitTesting();
+ if (HTMLFrameOwnerElement* owner = frame->deprecatedLocalOwner()) {
+ isVisibleToHitTest &= owner->layoutObject() &&
+ owner->layoutObject()->style()->visibleToHitTesting();
+ }
bool didScrollOverflow = m_scrollsOverflow;
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutObject.h ('k') | third_party/WebKit/Source/core/style/ComputedStyle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698