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 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
398 // Note: the subpixel accumulation of layer() does not need to be ad
ded here. It is already taken into account. | 398 // Note: the subpixel accumulation of layer() does not need to be ad
ded here. It is already taken into account. |
399 squashingLayer->setNeedsDisplayInRect(enclosingIntRect(paintInvalida
tionRect), invalidationReason); | 399 squashingLayer->setNeedsDisplayInRect(enclosingIntRect(paintInvalida
tionRect), invalidationReason); |
400 } | 400 } |
401 } else { | 401 } else { |
402 layer()->compositedLayerMapping()->setContentsNeedDisplayInRect(r, inval
idationReason); | 402 layer()->compositedLayerMapping()->setContentsNeedDisplayInRect(r, inval
idationReason); |
403 } | 403 } |
404 } | 404 } |
405 | 405 |
406 void LayoutBoxModelObject::invalidateDisplayItemClientOnBacking(const DisplayIte
mClientWrapper& displayItemClient, PaintInvalidationReason invalidationReason, c
onst LayoutRect* paintInvalidationRect) const | 406 void LayoutBoxModelObject::invalidateDisplayItemClientOnBacking(const DisplayIte
mClientWrapper& displayItemClient, PaintInvalidationReason invalidationReason, c
onst LayoutRect* paintInvalidationRect) const |
407 { | 407 { |
| 408 layer()->setNeedsRepaint(); |
| 409 |
408 if (layer()->groupedMapping()) { | 410 if (layer()->groupedMapping()) { |
409 if (GraphicsLayer* squashingLayer = layer()->groupedMapping()->squashing
Layer()) { | 411 if (GraphicsLayer* squashingLayer = layer()->groupedMapping()->squashing
Layer()) { |
410 // Note: the subpixel accumulation of layer() does not need to be ad
ded here. It is already taken into account. | 412 // Note: the subpixel accumulation of layer() does not need to be ad
ded here. It is already taken into account. |
411 IntRect paintInvalidationRectOnSquashingLayer; | 413 IntRect paintInvalidationRectOnSquashingLayer; |
412 if (paintInvalidationRect) | 414 if (paintInvalidationRect) |
413 paintInvalidationRectOnSquashingLayer = enclosingIntRect(*paintI
nvalidationRect); | 415 paintInvalidationRectOnSquashingLayer = enclosingIntRect(*paintI
nvalidationRect); |
414 squashingLayer->invalidateDisplayItemClient(displayItemClient, inval
idationReason, paintInvalidationRect ? &paintInvalidationRectOnSquashingLayer :
nullptr); | 416 squashingLayer->invalidateDisplayItemClient(displayItemClient, inval
idationReason, paintInvalidationRect ? &paintInvalidationRectOnSquashingLayer :
nullptr); |
415 } | 417 } |
416 } else if (CompositedLayerMapping* compositedLayerMapping = layer()->composi
tedLayerMapping()) { | 418 } else if (CompositedLayerMapping* compositedLayerMapping = layer()->composi
tedLayerMapping()) { |
417 if (this->displayItemClient() != displayItemClient.displayItemClient() &
& isBox() && toLayoutBox(this)->usesCompositedScrolling()) { | 419 if (this->displayItemClient() != displayItemClient.displayItemClient() &
& isBox() && toLayoutBox(this)->usesCompositedScrolling()) { |
(...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1063 if (rootElementStyle->hasBackground()) | 1065 if (rootElementStyle->hasBackground()) |
1064 return false; | 1066 return false; |
1065 | 1067 |
1066 if (node() != document().firstBodyElement()) | 1068 if (node() != document().firstBodyElement()) |
1067 return false; | 1069 return false; |
1068 | 1070 |
1069 return true; | 1071 return true; |
1070 } | 1072 } |
1071 | 1073 |
1072 } // namespace blink | 1074 } // namespace blink |
OLD | NEW |