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 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 } | 240 } |
241 | 241 |
242 // Fixed-position is painted using transform. In the case that the object | 242 // Fixed-position is painted using transform. In the case that the object |
243 // gets the same layout after changing position property, although no | 243 // gets the same layout after changing position property, although no |
244 // re-raster (rect-based invalidation) is needed, display items should | 244 // re-raster (rect-based invalidation) is needed, display items should |
245 // still update their paint offset. | 245 // still update their paint offset. |
246 if (oldStyle) { | 246 if (oldStyle) { |
247 bool newStyleIsFixedPosition = style()->position() == FixedPosition; | 247 bool newStyleIsFixedPosition = style()->position() == FixedPosition; |
248 bool oldStyleIsFixedPosition = oldStyle->position() == FixedPosition; | 248 bool oldStyleIsFixedPosition = oldStyle->position() == FixedPosition; |
249 if (newStyleIsFixedPosition != oldStyleIsFixedPosition) | 249 if (newStyleIsFixedPosition != oldStyleIsFixedPosition) |
250 invalidateDisplayItemClientForNonCompositingDescendants(); | 250 invalidateDisplayItemClientsIncludingNonCompositingDescendants(nullp
tr, PaintInvalidationStyleChange, nullptr); |
251 } | 251 } |
252 | 252 |
253 // The used style for body background may change due to computed style chang
e | 253 // The used style for body background may change due to computed style chang
e |
254 // on the document element because of background stealing. | 254 // on the document element because of background stealing. |
255 // Refer to backgroundStolenForBeingBody() and | 255 // Refer to backgroundStolenForBeingBody() and |
256 // http://www.w3.org/TR/css3-background/#body-background for more info. | 256 // http://www.w3.org/TR/css3-background/#body-background for more info. |
257 if (isDocumentElement()) { | 257 if (isDocumentElement()) { |
258 HTMLBodyElement* body = document().firstBodyElement(); | 258 HTMLBodyElement* body = document().firstBodyElement(); |
259 LayoutObject* bodyLayout = body ? body->layoutObject() : nullptr; | 259 LayoutObject* bodyLayout = body ? body->layoutObject() : nullptr; |
260 if (bodyLayout && bodyLayout->isBoxModelObject()) { | 260 if (bodyLayout && bodyLayout->isBoxModelObject()) { |
(...skipping 802 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1063 if (rootElementStyle->hasBackground()) | 1063 if (rootElementStyle->hasBackground()) |
1064 return false; | 1064 return false; |
1065 | 1065 |
1066 if (node() != document().firstBodyElement()) | 1066 if (node() != document().firstBodyElement()) |
1067 return false; | 1067 return false; |
1068 | 1068 |
1069 return true; | 1069 return true; |
1070 } | 1070 } |
1071 | 1071 |
1072 } // namespace blink | 1072 } // namespace blink |
OLD | NEW |