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

Unified Diff: third_party/WebKit/Source/core/paint/PaintLayer.h

Issue 1775013003: Implement -webkit-box-reflect as a filter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: make msvc dbg happy Created 4 years, 9 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/PaintLayer.h
diff --git a/third_party/WebKit/Source/core/paint/PaintLayer.h b/third_party/WebKit/Source/core/paint/PaintLayer.h
index d1063265d89951aabb9e88bd39535203288ef24a..42981f29158d71e337b3ca41ac79525877ea5ebe 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayer.h
+++ b/third_party/WebKit/Source/core/paint/PaintLayer.h
@@ -364,7 +364,7 @@ public:
// If true, this layer's children are included in its bounds for overlap testing.
// We can't rely on the children's positions if this layer has a filter that could have moved the children's pixels around.
- bool overlapBoundsIncludeChildren() const { return hasFilter() && layoutObject()->style()->filter().hasFilterThatMovesPixels(); }
+ bool overlapBoundsIncludeChildren() const;
// MaybeIncludeTransformForAncestorLayer means that a transform on |ancestorLayer| may be applied to the bounding box,
// in particular if paintsWithTransform() is true.
@@ -405,7 +405,10 @@ public:
bool shouldPreserve3D() const { return !layoutObject()->hasReflection() && layoutObject()->style()->transformStyle3D() == TransformStyle3DPreserve3D; }
void filterNeedsPaintInvalidation();
- bool hasFilter() const { return layoutObject()->hasFilter(); }
+
+ // Returns |true| if any property that renders using filter operations is
+ // used (including, but not limited to, 'filter').
+ bool hasFilterInducingProperty() const { return layoutObject()->hasFilterInducingProperty(); }
void* operator new(size_t);
// Only safe to call from LayoutBoxModelObject::destroyLayer()
@@ -466,6 +469,7 @@ public:
bool paintsWithFilters() const;
bool paintsWithBackdropFilters() const;
FilterEffect* lastFilterEffect() const;
+ bool hasFilterOutsets() const;
FilterOutsets filterOutsets() const;
PaintLayerFilterInfo* filterInfo() const { return m_rareData ? m_rareData->filterInfo.get() : nullptr; }
« no previous file with comments | « third_party/WebKit/Source/core/paint/FilterEffectBuilder.cpp ('k') | third_party/WebKit/Source/core/paint/PaintLayer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698