diff options
Diffstat (limited to 'chromium/third_party/WebKit/Source/core/layout/LayoutView.cpp')
-rw-r--r-- | chromium/third_party/WebKit/Source/core/layout/LayoutView.cpp | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/chromium/third_party/WebKit/Source/core/layout/LayoutView.cpp b/chromium/third_party/WebKit/Source/core/layout/LayoutView.cpp index f6c7f5d5e9a..acaa480ebe7 100644 --- a/chromium/third_party/WebKit/Source/core/layout/LayoutView.cpp +++ b/chromium/third_party/WebKit/Source/core/layout/LayoutView.cpp @@ -928,33 +928,6 @@ bool LayoutView::PaintedOutputOfObjectHasNoEffectRegardlessOfSize() const { return LayoutBlockFlow::PaintedOutputOfObjectHasNoEffectRegardlessOfSize(); } -void LayoutView::StyleWillChange(StyleDifference diff, - const ComputedStyle& new_style) { - LayoutBlockFlow::StyleWillChange(diff, new_style); - - // TODO(rune@opera.com): Ideally, StyleWillChange for LayoutBlockFlow should - // have been able to do the invalidation, but there is an early return in - // LayoutObject::StyleDidChange which returns if parent_ is nullptr. - - if (const ComputedStyle* old_style = Style()) { - // TODO(rune@opera.com): Consider checking diff.NeedsFullPaintInvalidation() - // instead. That will currently lead to more invalidation rectangles. For - // instance for computed overflow changes that would otherwise be - // invalidated by root and body changes. Also zoom related changes will - // cause extra invalidation rectangles to be recorded in paint/invalidation - // layout tests. - if (!old_style->BackgroundVisuallyEqual(new_style)) { - // Paint invalidation of background propagated from root or body elements - // to viewport. - SetShouldDoFullPaintInvalidation(); - if (old_style->HasEntirelyFixedBackground() != - new_style.HasEntirelyFixedBackground()) { - Compositor()->SetNeedsUpdateFixedBackground(); - } - } - } -} - void LayoutView::UpdateCounters() { if (!needs_counter_update_) return; |