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 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
427 // FIXME: generalize accessors to backing GraphicsLayers so that this code i
s squashing-agnostic. | 427 // FIXME: generalize accessors to backing GraphicsLayers so that this code i
s squashing-agnostic. |
428 if (layer()->groupedMapping()) { | 428 if (layer()->groupedMapping()) { |
429 LayoutRect paintInvalidationRect = r; | 429 LayoutRect paintInvalidationRect = r; |
430 if (GraphicsLayer* squashingLayer = layer()->groupedMapping()->squashing
Layer()) { | 430 if (GraphicsLayer* squashingLayer = layer()->groupedMapping()->squashing
Layer()) { |
431 // Note: the subpixel accumulation of layer() does not need to be ad
ded here. It is already taken into account. | 431 // Note: the subpixel accumulation of layer() does not need to be ad
ded here. It is already taken into account. |
432 squashingLayer->setNeedsDisplayInRect(enclosingIntRect(paintInvalida
tionRect), invalidationReason, object); | 432 squashingLayer->setNeedsDisplayInRect(enclosingIntRect(paintInvalida
tionRect), invalidationReason, object); |
433 } | 433 } |
434 } else if (object.compositedScrollsWithRespectTo(*this)) { | 434 } else if (object.compositedScrollsWithRespectTo(*this)) { |
435 layer()->compositedLayerMapping()->setScrollingContentsNeedDisplayInRect
(r, invalidationReason, object); | 435 layer()->compositedLayerMapping()->setScrollingContentsNeedDisplayInRect
(r, invalidationReason, object); |
436 } else if (usesCompositedScrolling()) { | 436 } else if (usesCompositedScrolling()) { |
437 if (layer()->compositedLayerMapping()->shouldPaintBackgroundOntoScrollin
gContentsLayer()) { | 437 if (layer()->shouldPaintBackgroundOntoScrollingContentsLayer()) { |
438 // TODO(flackr): Get a correct rect in the context of the scrolling
contents layer to update | 438 // TODO(flackr): Get a correct rect in the context of the scrolling
contents layer to update |
439 // rather than updating the entire rect. | 439 // rather than updating the entire rect. |
440 const LayoutRect& scrollingContentsRect = toLayoutBox(this)->layoutO
verflowRect(); | 440 const LayoutRect& scrollingContentsRect = toLayoutBox(this)->layoutO
verflowRect(); |
441 layer()->compositedLayerMapping()->setScrollingContentsNeedDisplayIn
Rect(scrollingContentsRect, invalidationReason, object); | 441 layer()->compositedLayerMapping()->setScrollingContentsNeedDisplayIn
Rect(scrollingContentsRect, invalidationReason, object); |
442 } | 442 } |
443 layer()->compositedLayerMapping()->setNonScrollingContentsNeedDisplayInR
ect(r, invalidationReason, object); | 443 layer()->compositedLayerMapping()->setNonScrollingContentsNeedDisplayInR
ect(r, invalidationReason, object); |
444 } else { | 444 } else { |
445 // Otherwise invalidate everything. | 445 // Otherwise invalidate everything. |
446 layer()->compositedLayerMapping()->setContentsNeedDisplayInRect(r, inval
idationReason, object); | 446 layer()->compositedLayerMapping()->setContentsNeedDisplayInRect(r, inval
idationReason, object); |
447 } | 447 } |
(...skipping 688 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1136 if (rootElementStyle->hasBackground()) | 1136 if (rootElementStyle->hasBackground()) |
1137 return false; | 1137 return false; |
1138 | 1138 |
1139 if (node() != document().firstBodyElement()) | 1139 if (node() != document().firstBodyElement()) |
1140 return false; | 1140 return false; |
1141 | 1141 |
1142 return true; | 1142 return true; |
1143 } | 1143 } |
1144 | 1144 |
1145 } // namespace blink | 1145 } // namespace blink |
OLD | NEW |