| 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) 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) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv
ed. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv
ed. |
| 7 * Copyright (C) 2009 Google Inc. All rights reserved. | 7 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
| 9 * | 9 * |
| 10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
| (...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 620 // SVG renderers need to be invalidated when their children are laid out. | 620 // SVG renderers need to be invalidated when their children are laid out. |
| 621 // LayoutBlocks with line boxes are responsible to invalidate them so we can
't ignore them. | 621 // LayoutBlocks with line boxes are responsible to invalidate them so we can
't ignore them. |
| 622 if (isSVG() || (isLayoutBlockFlow() && toLayoutBlockFlow(this)->firstLineBox
())) | 622 if (isSVG() || (isLayoutBlockFlow() && toLayoutBlockFlow(this)->firstLineBox
())) |
| 623 return false; | 623 return false; |
| 624 | 624 |
| 625 // In case scrollbars got repositioned (which will typically happen if the l
ayout object got | 625 // In case scrollbars got repositioned (which will typically happen if the l
ayout object got |
| 626 // resized), we cannot skip invalidation. | 626 // resized), we cannot skip invalidation. |
| 627 if (hasNonCompositedScrollbars()) | 627 if (hasNonCompositedScrollbars()) |
| 628 return false; | 628 return false; |
| 629 | 629 |
| 630 return rendererHasNoBoxEffect(); | 630 if (RuntimeEnabledFeatures::slimmingPaintEnabled() && isDocumentElement()) |
| 631 return !hasBoxEffect(); |
| 632 |
| 633 return rendererHasNoBoxEffectObsolete(); |
| 631 } | 634 } |
| 632 | 635 |
| 633 LayoutBlock* LayoutObject::firstLineBlock() const | 636 LayoutBlock* LayoutObject::firstLineBlock() const |
| 634 { | 637 { |
| 635 return 0; | 638 return 0; |
| 636 } | 639 } |
| 637 | 640 |
| 638 static inline bool objectIsRelayoutBoundary(const LayoutObject* object) | 641 static inline bool objectIsRelayoutBoundary(const LayoutObject* object) |
| 639 { | 642 { |
| 640 // FIXME: In future it may be possible to broaden these conditions in order
to improve performance. | 643 // FIXME: In future it may be possible to broaden these conditions in order
to improve performance. |
| (...skipping 2582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3223 { | 3226 { |
| 3224 if (object1) { | 3227 if (object1) { |
| 3225 const blink::LayoutObject* root = object1; | 3228 const blink::LayoutObject* root = object1; |
| 3226 while (root->parent()) | 3229 while (root->parent()) |
| 3227 root = root->parent(); | 3230 root = root->parent(); |
| 3228 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); | 3231 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); |
| 3229 } | 3232 } |
| 3230 } | 3233 } |
| 3231 | 3234 |
| 3232 #endif | 3235 #endif |
| OLD | NEW |