| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |