| 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 610 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 621 // SVG renderers need to be invalidated when their children are laid out. | 621 // SVG renderers need to be invalidated when their children are laid out. |
| 622 // LayoutBlocks with line boxes are responsible to invalidate them so we can
't ignore them. | 622 // LayoutBlocks with line boxes are responsible to invalidate them so we can
't ignore them. |
| 623 if (isSVG() || (isLayoutBlockFlow() && toLayoutBlockFlow(this)->firstLineBox
())) | 623 if (isSVG() || (isLayoutBlockFlow() && toLayoutBlockFlow(this)->firstLineBox
())) |
| 624 return false; | 624 return false; |
| 625 | 625 |
| 626 // In case scrollbars got repositioned (which will typically happen if the l
ayout object got | 626 // In case scrollbars got repositioned (which will typically happen if the l
ayout object got |
| 627 // resized), we cannot skip invalidation. | 627 // resized), we cannot skip invalidation. |
| 628 if (hasNonCompositedScrollbars()) | 628 if (hasNonCompositedScrollbars()) |
| 629 return false; | 629 return false; |
| 630 | 630 |
| 631 return rendererHasNoBoxEffect(); | 631 if (RuntimeEnabledFeatures::slimmingPaintEnabled() && isDocumentElement()) |
| 632 return !hasBoxEffect(); |
| 633 |
| 634 return rendererHasNoBoxEffectObsolete(); |
| 632 } | 635 } |
| 633 | 636 |
| 634 LayoutBlock* LayoutObject::firstLineBlock() const | 637 LayoutBlock* LayoutObject::firstLineBlock() const |
| 635 { | 638 { |
| 636 return 0; | 639 return 0; |
| 637 } | 640 } |
| 638 | 641 |
| 639 static inline bool objectIsRelayoutBoundary(const LayoutObject* object) | 642 static inline bool objectIsRelayoutBoundary(const LayoutObject* object) |
| 640 { | 643 { |
| 641 // FIXME: In future it may be possible to broaden these conditions in order
to improve performance. | 644 // FIXME: In future it may be possible to broaden these conditions in order
to improve performance. |
| (...skipping 2579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3221 { | 3224 { |
| 3222 if (object1) { | 3225 if (object1) { |
| 3223 const blink::LayoutObject* root = object1; | 3226 const blink::LayoutObject* root = object1; |
| 3224 while (root->parent()) | 3227 while (root->parent()) |
| 3225 root = root->parent(); | 3228 root = root->parent(); |
| 3226 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); | 3229 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); |
| 3227 } | 3230 } |
| 3228 } | 3231 } |
| 3229 | 3232 |
| 3230 #endif | 3233 #endif |
| OLD | NEW |