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

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

Issue 2729683002: Handle resize in PaintPropertyTreeBuilder::updateForObjectSizeAndLocation() (Closed)
Patch Set: Fix a typo (ScrollbarWithChange -> ScrollbarWidthChange) 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 519f49d51b47e747acbd8676dfe9dc1881eccc9b..85e242f342eff412113a0fca91f4dfa3ec93e381 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 {
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameView.cpp ('k') | third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698