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 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
208 | 208 |
209 bool canUseConvertToLayerCoords() const | 209 bool canUseConvertToLayerCoords() const |
210 { | 210 { |
211 // These RenderObjects have an impact on their layers without the render ers knowing about it. | 211 // These RenderObjects have an impact on their layers without the render ers knowing about it. |
212 return !renderer()->hasColumns() && !renderer()->hasTransformRelatedProp erty() && !renderer()->isSVGRoot(); | 212 return !renderer()->hasColumns() && !renderer()->hasTransformRelatedProp erty() && !renderer()->isSVGRoot(); |
213 } | 213 } |
214 | 214 |
215 void convertToLayerCoords(const RenderLayer* ancestorLayer, LayoutPoint&) co nst; | 215 void convertToLayerCoords(const RenderLayer* ancestorLayer, LayoutPoint&) co nst; |
216 void convertToLayerCoords(const RenderLayer* ancestorLayer, LayoutRect&) con st; | 216 void convertToLayerCoords(const RenderLayer* ancestorLayer, LayoutRect&) con st; |
217 | 217 |
218 LayoutPoint visualOffsetFromAncestor(const RenderLayer* ancestorLayer) const ; | 218 LayoutPoint visualOffsetFromAncestor(const RenderLayer* ancestorLayer) const ; |
chrishtr
2015/01/09 17:24:23
Add a link here to the design doc page.
Also plea
mstensho (USE GERRIT)
2015/01/09 18:26:40
Done, done and done.
| |
219 | 219 |
220 // The hitTest() method looks for mouse events by walking layers that inters ect the point from front to back. | 220 // The hitTest() method looks for mouse events by walking layers that inters ect the point from front to back. |
221 bool hitTest(const HitTestRequest&, HitTestResult&); | 221 bool hitTest(const HitTestRequest&, HitTestResult&); |
222 bool hitTest(const HitTestRequest&, const HitTestLocation&, HitTestResult&); | 222 bool hitTest(const HitTestRequest&, const HitTestLocation&, HitTestResult&); |
223 | 223 |
224 // Pass offsetFromRoot if known. | 224 // Pass offsetFromRoot if known. |
225 bool intersectsDamageRect(const LayoutRect& layerBounds, const LayoutRect& d amageRect, const RenderLayer* rootLayer, const LayoutPoint* offsetFromRoot = 0) const; | 225 bool intersectsDamageRect(const LayoutRect& layerBounds, const LayoutRect& d amageRect, const RenderLayer* rootLayer, const LayoutPoint* offsetFromRoot = 0) const; |
226 | 226 |
227 // Bounding box relative to some ancestor layer. Pass offsetFromRoot if know n. | 227 // Bounding box relative to some ancestor layer. Pass offsetFromRoot if know n. |
228 LayoutRect physicalBoundingBox(const RenderLayer* ancestorLayer, const Layou tPoint* offsetFromRoot = 0) const; | 228 LayoutRect physicalBoundingBox(const RenderLayer* ancestorLayer, const Layou tPoint* offsetFromRoot = 0) const; |
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
669 // The layer's width/height | 669 // The layer's width/height |
670 IntSize m_size; | 670 IntSize m_size; |
671 | 671 |
672 // Cached normal flow values for absolute positioned elements with static le ft/top values. | 672 // Cached normal flow values for absolute positioned elements with static le ft/top values. |
673 LayoutUnit m_staticInlinePosition; | 673 LayoutUnit m_staticInlinePosition; |
674 LayoutUnit m_staticBlockPosition; | 674 LayoutUnit m_staticBlockPosition; |
675 | 675 |
676 OwnPtr<TransformationMatrix> m_transform; | 676 OwnPtr<TransformationMatrix> m_transform; |
677 | 677 |
678 // Pointer to the enclosing RenderLayer that caused us to be paginated. It i s 0 if we are not paginated. | 678 // Pointer to the enclosing RenderLayer that caused us to be paginated. It i s 0 if we are not paginated. |
679 // | |
680 // See RenderMultiColumnFlowThread and | |
681 // https://sites.google.com/a/chromium.org/dev/developers/design-documents/m ulti-column-layout | |
682 // for more information about the multicol implementation. It's important to understand the | |
683 // difference between flow thread coordinates and visual coordinates when wo rking with multicol | |
684 // in RenderLayer, since RenderLayer is one of the few places where we have to worry about the | |
685 // visual ones. Internally we try to use flow-thread coordinates whenever po ssible. | |
679 RenderLayer* m_enclosingPaginationLayer; | 686 RenderLayer* m_enclosingPaginationLayer; |
680 | 687 |
681 // These compositing reasons are updated whenever style changes, not while u pdating compositing layers. | 688 // These compositing reasons are updated whenever style changes, not while u pdating compositing layers. |
682 // They should not be used to infer the compositing state of this layer. | 689 // They should not be used to infer the compositing state of this layer. |
683 CompositingReasons m_potentialCompositingReasonsFromStyle; | 690 CompositingReasons m_potentialCompositingReasonsFromStyle; |
684 | 691 |
685 // Once computed, indicates all that a layer needs to become composited usin g the CompositingReasons enum bitfield. | 692 // Once computed, indicates all that a layer needs to become composited usin g the CompositingReasons enum bitfield. |
686 CompositingReasons m_compositingReasons; | 693 CompositingReasons m_compositingReasons; |
687 | 694 |
688 DescendantDependentCompositingInputs m_descendantDependentCompositingInputs; | 695 DescendantDependentCompositingInputs m_descendantDependentCompositingInputs; |
(...skipping 15 matching lines...) Expand all Loading... | |
704 | 711 |
705 } // namespace blink | 712 } // namespace blink |
706 | 713 |
707 #ifndef NDEBUG | 714 #ifndef NDEBUG |
708 // Outside the WebCore namespace for ease of invocation from gdb. | 715 // Outside the WebCore namespace for ease of invocation from gdb. |
709 void showLayerTree(const blink::RenderLayer*); | 716 void showLayerTree(const blink::RenderLayer*); |
710 void showLayerTree(const blink::RenderObject*); | 717 void showLayerTree(const blink::RenderObject*); |
711 #endif | 718 #endif |
712 | 719 |
713 #endif // RenderLayer_h | 720 #endif // RenderLayer_h |
OLD | NEW |