| 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 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 400 layer()->compositedLayerMapping()->setContentsNeedDisplayInRect(r, inval
idationReason); | 400 layer()->compositedLayerMapping()->setContentsNeedDisplayInRect(r, inval
idationReason); |
| 401 } | 401 } |
| 402 } | 402 } |
| 403 | 403 |
| 404 void LayoutBoxModelObject::invalidateDisplayItemClientOnBacking(const DisplayIte
mClientWrapper& displayItemClient, PaintInvalidationReason invalidationReason, c
onst LayoutRect& previousPaintInvalidationRect, const LayoutRect& newPaintInvali
dationRect) const | 404 void LayoutBoxModelObject::invalidateDisplayItemClientOnBacking(const DisplayIte
mClientWrapper& displayItemClient, PaintInvalidationReason invalidationReason, c
onst LayoutRect& previousPaintInvalidationRect, const LayoutRect& newPaintInvali
dationRect) const |
| 405 { | 405 { |
| 406 if (layer()->groupedMapping()) { | 406 if (layer()->groupedMapping()) { |
| 407 if (GraphicsLayer* squashingLayer = layer()->groupedMapping()->squashing
Layer()) | 407 if (GraphicsLayer* squashingLayer = layer()->groupedMapping()->squashing
Layer()) |
| 408 squashingLayer->invalidateDisplayItemClient(displayItemClient, inval
idationReason, enclosingIntRect(previousPaintInvalidationRect), enclosingIntRect
(newPaintInvalidationRect)); | 408 squashingLayer->invalidateDisplayItemClient(displayItemClient, inval
idationReason, enclosingIntRect(previousPaintInvalidationRect), enclosingIntRect
(newPaintInvalidationRect)); |
| 409 } else if (CompositedLayerMapping* compositedLayerMapping = layer()->composi
tedLayerMapping()) { | 409 } else if (CompositedLayerMapping* compositedLayerMapping = layer()->composi
tedLayerMapping()) { |
| 410 compositedLayerMapping->invalidateDisplayItemClient(displayItemClient, i
nvalidationReason, previousPaintInvalidationRect, newPaintInvalidationRect); | 410 if (this->displayItemClient() != displayItemClient.displayItemClient() &
& isBox() && toLayoutBox(this)->usesCompositedScrolling()) { |
| 411 // This paint invalidation container is using composited scrolling,
and we are invalidating a scrolling content, |
| 412 // so we should invalidate on the scrolling contents layer only. |
| 413 compositedLayerMapping->invalidateDisplayItemClientOnScrollingConten
tsLayer(displayItemClient, invalidationReason, previousPaintInvalidationRect, ne
wPaintInvalidationRect); |
| 414 } else { |
| 415 compositedLayerMapping->invalidateDisplayItemClient(displayItemClien
t, invalidationReason, previousPaintInvalidationRect, newPaintInvalidationRect); |
| 416 } |
| 411 } | 417 } |
| 412 } | 418 } |
| 413 | 419 |
| 414 void LayoutBoxModelObject::addOutlineRectsForNormalChildren(Vector<LayoutRect>&
rects, const LayoutPoint& additionalOffset, IncludeBlockVisualOverflowOrNot incl
udeBlockOverflows) const | 420 void LayoutBoxModelObject::addOutlineRectsForNormalChildren(Vector<LayoutRect>&
rects, const LayoutPoint& additionalOffset, IncludeBlockVisualOverflowOrNot incl
udeBlockOverflows) const |
| 415 { | 421 { |
| 416 for (LayoutObject* child = slowFirstChild(); child; child = child->nextSibli
ng()) { | 422 for (LayoutObject* child = slowFirstChild(); child; child = child->nextSibli
ng()) { |
| 417 // Outlines of out-of-flow positioned descendants are handled in LayoutB
lock::addOutlineRects(). | 423 // Outlines of out-of-flow positioned descendants are handled in LayoutB
lock::addOutlineRects(). |
| 418 if (child->isOutOfFlowPositioned()) | 424 if (child->isOutOfFlowPositioned()) |
| 419 continue; | 425 continue; |
| 420 | 426 |
| (...skipping 629 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1050 if (rootElementStyle->hasBackground()) | 1056 if (rootElementStyle->hasBackground()) |
| 1051 return false; | 1057 return false; |
| 1052 | 1058 |
| 1053 if (node() != document().firstBodyElement()) | 1059 if (node() != document().firstBodyElement()) |
| 1054 return false; | 1060 return false; |
| 1055 | 1061 |
| 1056 return true; | 1062 return true; |
| 1057 } | 1063 } |
| 1058 | 1064 |
| 1059 } // namespace blink | 1065 } // namespace blink |
| OLD | NEW |