Chromium Code Reviews| 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 // The document element always draws background even if it has no background specified. | |
| 632 // In non-slimming-paint mode, the invalidation rect of the LayoutView cover s the area | |
|
chrishtr
2015/03/18 19:30:05
I guess it's hard to do that invalidation on the d
Xianzhu
2015/03/18 19:36:28
Will explore this way.
Xianzhu
2015/03/18 22:44:18
This seems not feasible because the layout object
| |
| 633 // needing paint invalidation. | |
| 634 if (RuntimeEnabledFeatures::slimmingPaintEnabled() && isDocumentElement()) | |
| 635 return false; | |
| 636 | |
| 631 return rendererHasNoBoxEffect(); | 637 return rendererHasNoBoxEffect(); |
| 632 } | 638 } |
| 633 | 639 |
| 634 LayoutBlock* LayoutObject::firstLineBlock() const | 640 LayoutBlock* LayoutObject::firstLineBlock() const |
| 635 { | 641 { |
| 636 return 0; | 642 return 0; |
| 637 } | 643 } |
| 638 | 644 |
| 639 static inline bool objectIsRelayoutBoundary(const LayoutObject* object) | 645 static inline bool objectIsRelayoutBoundary(const LayoutObject* object) |
| 640 { | 646 { |
| (...skipping 2577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3218 { | 3224 { |
| 3219 if (object1) { | 3225 if (object1) { |
| 3220 const blink::LayoutObject* root = object1; | 3226 const blink::LayoutObject* root = object1; |
| 3221 while (root->parent()) | 3227 while (root->parent()) |
| 3222 root = root->parent(); | 3228 root = root->parent(); |
| 3223 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); | 3229 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); |
| 3224 } | 3230 } |
| 3225 } | 3231 } |
| 3226 | 3232 |
| 3227 #endif | 3233 #endif |
| OLD | NEW |