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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutBox.cpp

Issue 2729683002: Handle resize in PaintPropertyTreeBuilder::updateForObjectSizeAndLocation() (Closed)
Patch Set: - Created 3 years, 10 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/layout/LayoutBox.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.cpp b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
index 456e411cbfb3a0d7b3ddef0e74bf1e6bd0209937..dfa8f4cdfa29c1f4d60cf3cf9cdb64153ccdbfee 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
@@ -1728,26 +1728,6 @@ void LayoutBox::sizeChanged() {
Element& element = toElement(*node());
element.setNeedsResizeObserverUpdate();
}
-
- if (RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled()) {
- if (shouldClipOverflow()) {
- // The overflow clip paint property depends on the border box rect through
- // overflowClipRect(). The border box rect's size equals the frame rect's
- // size so we trigger a paint property update when the frame rect changes.
- setNeedsPaintPropertyUpdate();
- } else if (hasClip()) {
- // The used value of CSS clip may depend on size of the box, e.g. for
- // clip: rect(auto auto auto -5px).
- setNeedsPaintPropertyUpdate();
- } else if (styleRef().hasTransform() || styleRef().hasPerspective()) {
- // Relative lengths (e.g., percentage values) in transform, perspective,
- // transform-origin, and perspective-origin can depend on the size of the
- // frame rect, so force a property update if it changes.
- // TODO(pdr): We only need to update properties if there are relative
- // lengths.
- setNeedsPaintPropertyUpdate();
- }
- }
}
bool LayoutBox::intersectsVisibleViewport() const {

Powered by Google App Engine
This is Rietveld 408576698