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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutBox.cpp

Issue 1755853002: Remove old paint offset caching code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutObject.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com) 4 * (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com)
5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com) 5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com)
6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv ed. 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv ed.
7 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. 7 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 3794 matching lines...) Expand 10 before | Expand all | Expand 10 after
3805 } 3805 }
3806 3806
3807 LayoutSize oldBorderBoxSize = computePreviousBorderBoxSize(oldBounds.size()) ; 3807 LayoutSize oldBorderBoxSize = computePreviousBorderBoxSize(oldBounds.size()) ;
3808 LayoutSize newBorderBoxSize = size(); 3808 LayoutSize newBorderBoxSize = size();
3809 3809
3810 if (oldBorderBoxSize == newBorderBoxSize) 3810 if (oldBorderBoxSize == newBorderBoxSize)
3811 return invalidationReason; 3811 return invalidationReason;
3812 3812
3813 // LayoutBox::incrementallyInvalidatePaint() depends on positionFromPaintInv alidationBacking 3813 // LayoutBox::incrementallyInvalidatePaint() depends on positionFromPaintInv alidationBacking
3814 // which is not available when slimmingPaintOffsetCachingEnabled. 3814 // which is not available when slimmingPaintOffsetCachingEnabled.
3815 if (RuntimeEnabledFeatures::slimmingPaintOffsetCachingEnabled() && (style()- >hasBoxDecorations() || style()->hasBackground())) 3815 if (RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled() && (style()-> hasBoxDecorations() || style()->hasBackground()))
3816 return PaintInvalidationBorderBoxChange; 3816 return PaintInvalidationBorderBoxChange;
3817 3817
3818 // TODO(wangxianzhu): Remove incremental invalidation when we remove rect-ba sed paint invalidation. 3818 // TODO(wangxianzhu): Remove incremental invalidation when we remove rect-ba sed paint invalidation.
3819 // See another hasNonCompositedScrollbars() callsite above. 3819 // See another hasNonCompositedScrollbars() callsite above.
3820 if (hasNonCompositedScrollbars()) 3820 if (hasNonCompositedScrollbars())
3821 return PaintInvalidationBorderBoxChange; 3821 return PaintInvalidationBorderBoxChange;
3822 3822
3823 if (style()->hasVisualOverflowingEffect() || style()->hasAppearance() || sty le()->hasFilter() || style()->resize() != RESIZE_NONE) 3823 if (style()->hasVisualOverflowingEffect() || style()->hasAppearance() || sty le()->hasFilter() || style()->resize() != RESIZE_NONE)
3824 return PaintInvalidationBorderBoxChange; 3824 return PaintInvalidationBorderBoxChange;
3825 3825
(...skipping 840 matching lines...) Expand 10 before | Expand all | Expand 10 after
4666 } 4666 }
4667 4667
4668 void LayoutBox::IntrinsicSizingInfo::transpose() 4668 void LayoutBox::IntrinsicSizingInfo::transpose()
4669 { 4669 {
4670 size = size.transposedSize(); 4670 size = size.transposedSize();
4671 aspectRatio = aspectRatio.transposedSize(); 4671 aspectRatio = aspectRatio.transposedSize();
4672 std::swap(hasWidth, hasHeight); 4672 std::swap(hasWidth, hasHeight);
4673 } 4673 }
4674 4674
4675 } // namespace blink 4675 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698