| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) |
| 3 * (C) 2000 Antti Koivisto (koivisto@kde.org) | 3 * (C) 2000 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2000 Dirk Mueller (mueller@kde.org) | 4 * (C) 2000 Dirk Mueller (mueller@kde.org) |
| 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) | 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) |
| 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r
ights reserved. | 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r
ights reserved. |
| 7 * Copyright (C) 2009 Google Inc. All rights reserved. | 7 * Copyright (C) 2009 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 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 | 250 |
| 251 void assertSubtreeClearedPaintInvalidationState() const | 251 void assertSubtreeClearedPaintInvalidationState() const |
| 252 { | 252 { |
| 253 for (const LayoutObject* renderer = this; renderer; renderer = renderer-
>nextInPreOrder()) | 253 for (const LayoutObject* renderer = this; renderer; renderer = renderer-
>nextInPreOrder()) |
| 254 renderer->assertRendererClearedPaintInvalidationState(); | 254 renderer->assertRendererClearedPaintInvalidationState(); |
| 255 } | 255 } |
| 256 | 256 |
| 257 #endif | 257 #endif |
| 258 | 258 |
| 259 // FIXME: This could be used when changing the size of a renderer without ch
ildren to skip some invalidations. | 259 // FIXME: This could be used when changing the size of a renderer without ch
ildren to skip some invalidations. |
| 260 bool rendererHasNoBoxEffect() const | 260 // FIXME: This is incorrect for document element. Remove this when we enable
slimming paint. |
| 261 bool rendererHasNoBoxEffectObsolete() const |
| 261 { | 262 { |
| 262 return !style()->hasVisualOverflowingEffect() && !style()->hasBorder() &
& !style()->hasBackground(); | 263 return !style()->hasVisualOverflowingEffect() && !style()->hasBorder() &
& !style()->hasBackground(); |
| 263 } | 264 } |
| 264 | 265 |
| 266 // Correct version of !rendererHasNoBoxEffectObsolete(). |
| 267 bool hasBoxEffect() const |
| 268 { |
| 269 return hasBoxDecorationBackground() || style()->hasVisualOverflowingEffe
ct(); |
| 270 } |
| 271 |
| 265 // Obtains the nearest enclosing block (including this block) that contribut
es a first-line style to our inline | 272 // Obtains the nearest enclosing block (including this block) that contribut
es a first-line style to our inline |
| 266 // children. | 273 // children. |
| 267 virtual LayoutBlock* firstLineBlock() const; | 274 virtual LayoutBlock* firstLineBlock() const; |
| 268 | 275 |
| 269 // Called when an object that was floating or positioned becomes a normal fl
ow object | 276 // Called when an object that was floating or positioned becomes a normal fl
ow object |
| 270 // again. We have to make sure the render tree updates as needed to accommo
date the new | 277 // again. We have to make sure the render tree updates as needed to accommo
date the new |
| 271 // normal flow object. | 278 // normal flow object. |
| 272 void handleDynamicFloatPositionChange(); | 279 void handleDynamicFloatPositionChange(); |
| 273 | 280 |
| 274 // LayoutObject tree manipulation | 281 // LayoutObject tree manipulation |
| (...skipping 1379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1654 void showTree(const blink::LayoutObject*); | 1661 void showTree(const blink::LayoutObject*); |
| 1655 void showLineTree(const blink::LayoutObject*); | 1662 void showLineTree(const blink::LayoutObject*); |
| 1656 void showLayoutTree(const blink::LayoutObject* object1); | 1663 void showLayoutTree(const blink::LayoutObject* object1); |
| 1657 // We don't make object2 an optional parameter so that showLayoutTree | 1664 // We don't make object2 an optional parameter so that showLayoutTree |
| 1658 // can be called from gdb easily. | 1665 // can be called from gdb easily. |
| 1659 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec
t* object2); | 1666 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec
t* object2); |
| 1660 | 1667 |
| 1661 #endif | 1668 #endif |
| 1662 | 1669 |
| 1663 #endif // LayoutObject_h | 1670 #endif // LayoutObject_h |
| OLD | NEW |