OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2003, 2009, 2012 Apple Inc. All rights reserved. | 2 * Copyright (C) 2003, 2009, 2012 Apple Inc. All rights reserved. |
3 * Copyright (C) 2013 Intel Corporation. All rights reserved. | 3 * Copyright (C) 2013 Intel Corporation. All rights reserved. |
4 * | 4 * |
5 * Portions are Copyright (C) 1998 Netscape Communications Corporation. | 5 * Portions are Copyright (C) 1998 Netscape Communications Corporation. |
6 * | 6 * |
7 * Other contributors: | 7 * Other contributors: |
8 * Robert O'Callahan <roc+@cs.cmu.edu> | 8 * Robert O'Callahan <roc+@cs.cmu.edu> |
9 * David Baron <dbaron@fas.harvard.edu> | 9 * David Baron <dbaron@fas.harvard.edu> |
10 * Christian Biesinger <cbiesinger@web.de> | 10 * Christian Biesinger <cbiesinger@web.de> |
(...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
509 void setShouldDoFullPaintInvalidationIncludingNonCompositingDescendants(); | 509 void setShouldDoFullPaintInvalidationIncludingNonCompositingDescendants(); |
510 | 510 |
511 bool hasSelfPaintingLayerDescendant() const | 511 bool hasSelfPaintingLayerDescendant() const |
512 { | 512 { |
513 if (m_hasSelfPaintingLayerDescendantDirty) | 513 if (m_hasSelfPaintingLayerDescendantDirty) |
514 updateHasSelfPaintingLayerDescendant(); | 514 updateHasSelfPaintingLayerDescendant(); |
515 ASSERT(!m_hasSelfPaintingLayerDescendantDirty); | 515 ASSERT(!m_hasSelfPaintingLayerDescendantDirty); |
516 return m_hasSelfPaintingLayerDescendant; | 516 return m_hasSelfPaintingLayerDescendant; |
517 } | 517 } |
518 LayoutRect paintingExtent(const RenderLayer* rootLayer, const LayoutRect& pa
intDirtyRect, const LayoutSize& subPixelAccumulation, PaintBehavior); | 518 LayoutRect paintingExtent(const RenderLayer* rootLayer, const LayoutRect& pa
intDirtyRect, const LayoutSize& subPixelAccumulation, PaintBehavior); |
519 void collectFragments(LayerFragments&, const RenderLayer* rootLayer, const L
ayoutRect& dirtyRect, | 519 |
520 ClipRectsCacheSlot, OverlayScrollbarSizeRelevancy inOverlayScrollbarSize
Relevancy = IgnoreOverlayScrollbarSize, | 520 enum DirtyRectIntersectionResult { |
521 ShouldRespectOverflowClip = RespectOverflowClip, const LayoutPoint* offs
etFromRoot = 0, | 521 NotIntersectingDirtyRect, |
522 const LayoutSize& subPixelAccumulation = LayoutSize(), const LayoutRect*
layerBoundingBox = 0); | 522 IntersectingDirtyRect |
| 523 }; |
| 524 // FIXME: insane number of parameters. Should we introduce a CollectFragment
sContext or something? |
| 525 void collectFragments(LayerFragments&, DirtyRectIntersectionResult*, const R
enderLayer* rootLayer, const LayoutRect& dirtyRect, ClipRectsCacheSlot, OverlayS
crollbarSizeRelevancy inOverlayScrollbarSizeRelevancy = IgnoreOverlayScrollbarSi
ze, ShouldRespectOverflowClip = RespectOverflowClip, const LayoutPoint* offsetFr
omRoot = 0, const LayoutSize& subPixelAccumulation = LayoutSize(), const LayoutR
ect* layerBoundingBox = 0); |
523 | 526 |
524 LayoutPoint renderBoxLocation() const { return renderer()->isBox() ? toRende
rBox(renderer())->location() : LayoutPoint(); } | 527 LayoutPoint renderBoxLocation() const { return renderer()->isBox() ? toRende
rBox(renderer())->location() : LayoutPoint(); } |
525 | 528 |
526 enum TransparencyClipBoxBehavior { | 529 enum TransparencyClipBoxBehavior { |
527 PaintingTransparencyClipBox, | 530 PaintingTransparencyClipBox, |
528 HitTestingTransparencyClipBox | 531 HitTestingTransparencyClipBox |
529 }; | 532 }; |
530 | 533 |
531 enum TransparencyClipBoxMode { | 534 enum TransparencyClipBoxMode { |
532 DescendantsOfTransparencyClipBox, | 535 DescendantsOfTransparencyClipBox, |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
708 | 711 |
709 } // namespace blink | 712 } // namespace blink |
710 | 713 |
711 #ifndef NDEBUG | 714 #ifndef NDEBUG |
712 // Outside the WebCore namespace for ease of invocation from gdb. | 715 // Outside the WebCore namespace for ease of invocation from gdb. |
713 void showLayerTree(const blink::RenderLayer*); | 716 void showLayerTree(const blink::RenderLayer*); |
714 void showLayerTree(const blink::RenderObject*); | 717 void showLayerTree(const blink::RenderObject*); |
715 #endif | 718 #endif |
716 | 719 |
717 #endif // RenderLayer_h | 720 #endif // RenderLayer_h |
OLD | NEW |