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

Unified Diff: Source/core/paint/DeprecatedPaintLayerClipper.h

Issue 1184303003: Ignore overflow clip on root layer if HitTestRequest::IgnoreClipping is set. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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: Source/core/paint/DeprecatedPaintLayerClipper.h
diff --git a/Source/core/paint/DeprecatedPaintLayerClipper.h b/Source/core/paint/DeprecatedPaintLayerClipper.h
index d6c987d13d03e80c0e0c3b65af318a19b1aa639c..707e58e453dbab3758fe9d0fcd74d92f66efe60f 100644
--- a/Source/core/paint/DeprecatedPaintLayerClipper.h
+++ b/Source/core/paint/DeprecatedPaintLayerClipper.h
@@ -65,6 +65,7 @@ public:
, cacheSlot(slot)
, subPixelAccumulation(accumulation)
, respectOverflowClip(slot == PaintingClipRectsIgnoringOverflowClip ? IgnoreOverflowClip : RespectOverflowClip)
+ , respectOverflowClipForViewport(slot == RootRelativeClipRectsIgnoringViewportClip ? IgnoreOverflowClip : RespectOverflowClip)
{
}
@@ -91,6 +92,7 @@ private:
ClipRectsCacheSlot cacheSlot;
LayoutSize subPixelAccumulation;
ShouldRespectOverflowClip respectOverflowClip;
+ ShouldRespectOverflowClip respectOverflowClipForViewport;
};
class DeprecatedPaintLayerClipper {
@@ -139,6 +141,8 @@ private:
return *m_cache;
}
+ bool shouldRespectOverflowClip(const ClipRectsContext&) const;
+
// FIXME: Could this be a LayoutBox?
LayoutBoxModelObject& m_layoutObject;
mutable OwnPtr<ClipRectsCache> m_cache;

Powered by Google App Engine
This is Rietveld 408576698