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()->compositedLayerMapping()->backgroundPaintsOntoScrollingCont entsLayer()) { |
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 layer()->setNeedsRepaint(); | 442 layer()->setNeedsRepaint(); |
Stephen Chennney
2016/08/22 19:51:47
I'm concerned that we are missing a layer()->setNe
| |
443 invalidateDisplayItemClient(*layer()->compositedLayerMapping()->scro llingContentsLayer(), invalidationReason); | 443 invalidateDisplayItemClient(*layer()->compositedLayerMapping()->scro llingContentsLayer(), invalidationReason); |
444 } | 444 } |
445 layer()->compositedLayerMapping()->setNonScrollingContentsNeedDisplayInR ect(r, invalidationReason, object); | 445 layer()->compositedLayerMapping()->setNonScrollingContentsNeedDisplayInR ect(r, invalidationReason, object); |
446 } else { | 446 } else { |
447 // Otherwise invalidate everything. | 447 // Otherwise invalidate everything. |
448 layer()->compositedLayerMapping()->setContentsNeedDisplayInRect(r, inval idationReason, object); | 448 layer()->compositedLayerMapping()->setContentsNeedDisplayInRect(r, inval idationReason, object); |
449 } | 449 } |
450 } | 450 } |
451 | 451 |
452 void LayoutBoxModelObject::addOutlineRectsForNormalChildren(Vector<LayoutRect>& rects, const LayoutPoint& additionalOffset, IncludeBlockVisualOverflowOrNot incl udeBlockOverflows) const | 452 void LayoutBoxModelObject::addOutlineRectsForNormalChildren(Vector<LayoutRect>& rects, const LayoutPoint& additionalOffset, IncludeBlockVisualOverflowOrNot incl udeBlockOverflows) const |
(...skipping 685 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1138 if (rootElementStyle->hasBackground()) | 1138 if (rootElementStyle->hasBackground()) |
1139 return false; | 1139 return false; |
1140 | 1140 |
1141 if (node() != document().firstBodyElement()) | 1141 if (node() != document().firstBodyElement()) |
1142 return false; | 1142 return false; |
1143 | 1143 |
1144 return true; | 1144 return true; |
1145 } | 1145 } |
1146 | 1146 |
1147 } // namespace blink | 1147 } // namespace blink |
OLD | NEW |