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

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

Issue 1965893007: Fix blink_perf.css.CSSPropertySetterGetter failure (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 | « third_party/WebKit/LayoutTests/fast/css/css-property-setter-getter-expected.txt ('k') | no next file » | 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 Apple Inc. All rights reserved. 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
7 * Copyright (C) 2010 Google Inc. All rights reserved. 7 * Copyright (C) 2010 Google Inc. 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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 // The following disablers are valid because we need to invalidate based on the current 159 // The following disablers are valid because we need to invalidate based on the current
160 // status. 160 // status.
161 DisableCompositingQueryAsserts compositingDisabler; 161 DisableCompositingQueryAsserts compositingDisabler;
162 DisablePaintInvalidationStateAsserts paintDisabler; 162 DisablePaintInvalidationStateAsserts paintDisabler;
163 invalidatePaintIncludingNonCompositingDescendants(); 163 invalidatePaintIncludingNonCompositingDescendants();
164 } 164 }
165 165
166 FloatStateForStyleChange::setWasFloating(this, isFloating()); 166 FloatStateForStyleChange::setWasFloating(this, isFloating());
167 167
168 if (const ComputedStyle* oldStyle = style()) { 168 if (const ComputedStyle* oldStyle = style()) {
169 if (parent() && diff.needsPaintInvalidationSubtree()) { 169 if (hasLayer() && diff.needsPaintInvalidationSubtree()) {
170 if (oldStyle->hasAutoClip() != newStyle.hasAutoClip() 170 if (oldStyle->hasAutoClip() != newStyle.hasAutoClip()
171 || oldStyle->clip() != newStyle.clip()) 171 || oldStyle->clip() != newStyle.clip())
172 layer()->clipper().clearClipRectsIncludingDescendants(); 172 layer()->clipper().clearClipRectsIncludingDescendants();
173 } 173 }
174 } 174 }
175 175
176 LayoutObject::styleWillChange(diff, newStyle); 176 LayoutObject::styleWillChange(diff, newStyle);
177 } 177 }
178 178
179 void LayoutBoxModelObject::styleDidChange(StyleDifference diff, const ComputedSt yle* oldStyle) 179 void LayoutBoxModelObject::styleDidChange(StyleDifference diff, const ComputedSt yle* oldStyle)
(...skipping 952 matching lines...) Expand 10 before | Expand all | Expand 10 after
1132 if (rootElementStyle->hasBackground()) 1132 if (rootElementStyle->hasBackground())
1133 return false; 1133 return false;
1134 1134
1135 if (node() != document().firstBodyElement()) 1135 if (node() != document().firstBodyElement())
1136 return false; 1136 return false;
1137 1137
1138 return true; 1138 return true;
1139 } 1139 }
1140 1140
1141 } // namespace blink 1141 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/css/css-property-setter-getter-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698