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

Unified Diff: third_party/WebKit/Source/core/style/ComputedStyle.h

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
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/style/ComputedStyle.h
diff --git a/third_party/WebKit/Source/core/style/ComputedStyle.h b/third_party/WebKit/Source/core/style/ComputedStyle.h
index 6152fa9e3b9a2a33df438d9be6b6be6d076513e4..574a3df28769d42eee63a695947c54ab8498a2dd 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.h
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.h
@@ -3605,6 +3605,11 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase,
return overflowY() == OverflowPagedX || overflowY() == OverflowPagedY;
}
+ // Visibility utility functions.
+ bool visibleToHitTesting() const {
+ return visibility() == EVisibility::Visible && pointerEvents() != PE_NONE;
+ }
+
// Animation utility functions.
bool shouldCompositeForCurrentAnimations() const {
return hasCurrentOpacityAnimation() || hasCurrentTransformAnimation() ||
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698