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 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
395 LayoutRect paintInvalidationRect = r; | 395 LayoutRect paintInvalidationRect = r; |
396 if (GraphicsLayer* squashingLayer = layer()->groupedMapping()->squashing
Layer()) { | 396 if (GraphicsLayer* squashingLayer = layer()->groupedMapping()->squashing
Layer()) { |
397 // Note: the subpixel accumulation of layer() does not need to be ad
ded here. It is already taken into account. | 397 // Note: the subpixel accumulation of layer() does not need to be ad
ded here. It is already taken into account. |
398 squashingLayer->setNeedsDisplayInRect(enclosingIntRect(paintInvalida
tionRect), invalidationReason); | 398 squashingLayer->setNeedsDisplayInRect(enclosingIntRect(paintInvalida
tionRect), invalidationReason); |
399 } | 399 } |
400 } else { | 400 } else { |
401 layer()->compositedLayerMapping()->setContentsNeedDisplayInRect(r, inval
idationReason); | 401 layer()->compositedLayerMapping()->setContentsNeedDisplayInRect(r, inval
idationReason); |
402 } | 402 } |
403 } | 403 } |
404 | 404 |
405 void LayoutBoxModelObject::invalidateDisplayItemClientOnBacking(const DisplayIte
mClientWrapper& displayItemClient, PaintInvalidationReason invalidationReason, c
onst LayoutRect* paintInvalidationRect) const | 405 void LayoutBoxModelObject::invalidateDisplayItemClientOnBacking(const DisplayIte
mClient& displayItemClient, PaintInvalidationReason invalidationReason, const La
youtRect* paintInvalidationRect) const |
406 { | 406 { |
407 if (layer()->groupedMapping()) { | 407 if (layer()->groupedMapping()) { |
408 if (GraphicsLayer* squashingLayer = layer()->groupedMapping()->squashing
Layer()) { | 408 if (GraphicsLayer* squashingLayer = layer()->groupedMapping()->squashing
Layer()) { |
409 // Note: the subpixel accumulation of layer() does not need to be ad
ded here. It is already taken into account. | 409 // Note: the subpixel accumulation of layer() does not need to be ad
ded here. It is already taken into account. |
410 IntRect paintInvalidationRectOnSquashingLayer; | 410 IntRect paintInvalidationRectOnSquashingLayer; |
411 if (paintInvalidationRect) | 411 if (paintInvalidationRect) |
412 paintInvalidationRectOnSquashingLayer = enclosingIntRect(*paintI
nvalidationRect); | 412 paintInvalidationRectOnSquashingLayer = enclosingIntRect(*paintI
nvalidationRect); |
413 squashingLayer->invalidateDisplayItemClient(displayItemClient, inval
idationReason, paintInvalidationRect ? &paintInvalidationRectOnSquashingLayer :
nullptr); | 413 squashingLayer->invalidateDisplayItemClient(displayItemClient, inval
idationReason, paintInvalidationRect ? &paintInvalidationRectOnSquashingLayer :
nullptr); |
414 } | 414 } |
415 } else if (CompositedLayerMapping* compositedLayerMapping = layer()->composi
tedLayerMapping()) { | 415 } else if (CompositedLayerMapping* compositedLayerMapping = layer()->composi
tedLayerMapping()) { |
416 if (this->displayItemClient() != displayItemClient.displayItemClient() &
& isBox() && toLayoutBox(this)->usesCompositedScrolling()) { | 416 if (this != &displayItemClient && isBox() && toLayoutBox(this)->usesComp
ositedScrolling()) { |
417 // This paint invalidation container is using composited scrolling,
and we are invalidating a scrolling content, | 417 // This paint invalidation container is using composited scrolling,
and we are invalidating a scrolling content, |
418 // so we should invalidate on the scrolling contents layer only. | 418 // so we should invalidate on the scrolling contents layer only. |
419 compositedLayerMapping->invalidateDisplayItemClientOnScrollingConten
tsLayer(displayItemClient, invalidationReason, paintInvalidationRect); | 419 compositedLayerMapping->invalidateDisplayItemClientOnScrollingConten
tsLayer(displayItemClient, invalidationReason, paintInvalidationRect); |
420 } else { | 420 } else { |
421 compositedLayerMapping->invalidateDisplayItemClient(displayItemClien
t, invalidationReason, paintInvalidationRect); | 421 compositedLayerMapping->invalidateDisplayItemClient(displayItemClien
t, invalidationReason, paintInvalidationRect); |
422 } | 422 } |
423 } | 423 } |
424 } | 424 } |
425 | 425 |
426 void LayoutBoxModelObject::addOutlineRectsForNormalChildren(Vector<LayoutRect>&
rects, const LayoutPoint& additionalOffset, IncludeBlockVisualOverflowOrNot incl
udeBlockOverflows) const | 426 void LayoutBoxModelObject::addOutlineRectsForNormalChildren(Vector<LayoutRect>&
rects, const LayoutPoint& additionalOffset, IncludeBlockVisualOverflowOrNot incl
udeBlockOverflows) const |
(...skipping 630 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1057 if (rootElementStyle->hasBackground()) | 1057 if (rootElementStyle->hasBackground()) |
1058 return false; | 1058 return false; |
1059 | 1059 |
1060 if (node() != document().firstBodyElement()) | 1060 if (node() != document().firstBodyElement()) |
1061 return false; | 1061 return false; |
1062 | 1062 |
1063 return true; | 1063 return true; |
1064 } | 1064 } |
1065 | 1065 |
1066 } // namespace blink | 1066 } // namespace blink |
OLD | NEW |