OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> |
3 * Copyright (C) 2004, 2005, 2007 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2007 Rob Buis <buis@kde.org> |
4 * Copyright (C) 2009 Google, Inc. All rights reserved. | 4 * Copyright (C) 2009 Google, Inc. All rights reserved. |
5 * Copyright (C) 2009 Apple Inc. All rights reserved. | 5 * Copyright (C) 2009 Apple Inc. All rights reserved. |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
(...skipping 20 matching lines...) Expand all Loading... |
31 | 31 |
32 class RenderSVGRoot final : public RenderReplaced { | 32 class RenderSVGRoot final : public RenderReplaced { |
33 public: | 33 public: |
34 explicit RenderSVGRoot(SVGElement*); | 34 explicit RenderSVGRoot(SVGElement*); |
35 virtual ~RenderSVGRoot(); | 35 virtual ~RenderSVGRoot(); |
36 | 36 |
37 bool isEmbeddedThroughSVGImage() const; | 37 bool isEmbeddedThroughSVGImage() const; |
38 bool isEmbeddedThroughFrameContainingSVGDocument() const; | 38 bool isEmbeddedThroughFrameContainingSVGDocument() const; |
39 | 39 |
40 virtual void computeIntrinsicRatioInformation(FloatSize& intrinsicSize, doub
le& intrinsicRatio) const override; | 40 virtual void computeIntrinsicRatioInformation(FloatSize& intrinsicSize, doub
le& intrinsicRatio) const override; |
41 virtual void mapRectToPaintInvalidationBacking(const RenderLayerModelObject*
paintInvalidationContainer, LayoutRect&, const PaintInvalidationState*) const o
verride; | 41 virtual void mapRectToPaintInvalidationBacking(const LayoutLayerModelObject*
paintInvalidationContainer, LayoutRect&, const PaintInvalidationState*) const o
verride; |
42 | 42 |
43 // If you have a RenderSVGRoot, use firstChild or lastChild instead. | 43 // If you have a RenderSVGRoot, use firstChild or lastChild instead. |
44 void slowFirstChild() const = delete; | 44 void slowFirstChild() const = delete; |
45 void slowLastChild() const = delete; | 45 void slowLastChild() const = delete; |
46 | 46 |
47 RenderObject* firstChild() const { ASSERT(children() == virtualChildren());
return children()->firstChild(); } | 47 RenderObject* firstChild() const { ASSERT(children() == virtualChildren());
return children()->firstChild(); } |
48 RenderObject* lastChild() const { ASSERT(children() == virtualChildren()); r
eturn children()->lastChild(); } | 48 RenderObject* lastChild() const { ASSERT(children() == virtualChildren()); r
eturn children()->lastChild(); } |
49 | 49 |
50 bool isLayoutSizeChanged() const { return m_isLayoutSizeChanged; } | 50 bool isLayoutSizeChanged() const { return m_isLayoutSizeChanged; } |
51 virtual void setNeedsBoundariesUpdate() override { m_needsBoundariesOrTransf
ormUpdate = true; } | 51 virtual void setNeedsBoundariesUpdate() override { m_needsBoundariesOrTransf
ormUpdate = true; } |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 virtual void willBeRemovedFromTree() override; | 93 virtual void willBeRemovedFromTree() override; |
94 | 94 |
95 virtual const AffineTransform& localToParentTransform() const override; | 95 virtual const AffineTransform& localToParentTransform() const override; |
96 | 96 |
97 virtual FloatRect objectBoundingBox() const override { return m_objectBoundi
ngBox; } | 97 virtual FloatRect objectBoundingBox() const override { return m_objectBoundi
ngBox; } |
98 virtual FloatRect strokeBoundingBox() const override { return m_strokeBoundi
ngBox; } | 98 virtual FloatRect strokeBoundingBox() const override { return m_strokeBoundi
ngBox; } |
99 virtual FloatRect paintInvalidationRectInLocalCoordinates() const override {
return m_paintInvalidationBoundingBox; } | 99 virtual FloatRect paintInvalidationRectInLocalCoordinates() const override {
return m_paintInvalidationBoundingBox; } |
100 | 100 |
101 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes
tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct
ion) override; | 101 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes
tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct
ion) override; |
102 | 102 |
103 virtual LayoutRect clippedOverflowRectForPaintInvalidation(const RenderLayer
ModelObject* paintInvalidationContainer, const PaintInvalidationState* = 0) cons
t override; | 103 virtual LayoutRect clippedOverflowRectForPaintInvalidation(const LayoutLayer
ModelObject* paintInvalidationContainer, const PaintInvalidationState* = 0) cons
t override; |
104 | 104 |
105 virtual void mapLocalToContainer(const RenderLayerModelObject* paintInvalida
tionContainer, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool*
wasFixed = 0, const PaintInvalidationState* = 0) const override; | 105 virtual void mapLocalToContainer(const LayoutLayerModelObject* paintInvalida
tionContainer, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool*
wasFixed = 0, const PaintInvalidationState* = 0) const override; |
106 virtual const RenderObject* pushMappingToContainer(const RenderLayerModelObj
ect* ancestorToStopAt, RenderGeometryMap&) const override; | 106 virtual const RenderObject* pushMappingToContainer(const LayoutLayerModelObj
ect* ancestorToStopAt, RenderGeometryMap&) const override; |
107 | 107 |
108 virtual bool canBeSelectionLeaf() const override { return false; } | 108 virtual bool canBeSelectionLeaf() const override { return false; } |
109 virtual bool canHaveChildren() const override { return true; } | 109 virtual bool canHaveChildren() const override { return true; } |
110 | 110 |
111 virtual void descendantIsolationRequirementsChanged(DescendantIsolationState
) override final; | 111 virtual void descendantIsolationRequirementsChanged(DescendantIsolationState
) override final; |
112 | 112 |
113 void updateCachedBoundaries(); | 113 void updateCachedBoundaries(); |
114 void buildLocalToBorderBoxTransform(); | 114 void buildLocalToBorderBoxTransform(); |
115 | 115 |
116 RenderObjectChildList m_children; | 116 RenderObjectChildList m_children; |
117 IntSize m_containerSize; | 117 IntSize m_containerSize; |
118 FloatRect m_objectBoundingBox; | 118 FloatRect m_objectBoundingBox; |
119 bool m_objectBoundingBoxValid; | 119 bool m_objectBoundingBoxValid; |
120 FloatRect m_strokeBoundingBox; | 120 FloatRect m_strokeBoundingBox; |
121 FloatRect m_paintInvalidationBoundingBox; | 121 FloatRect m_paintInvalidationBoundingBox; |
122 mutable AffineTransform m_localToParentTransform; | 122 mutable AffineTransform m_localToParentTransform; |
123 AffineTransform m_localToBorderBoxTransform; | 123 AffineTransform m_localToBorderBoxTransform; |
124 bool m_isLayoutSizeChanged : 1; | 124 bool m_isLayoutSizeChanged : 1; |
125 bool m_needsBoundariesOrTransformUpdate : 1; | 125 bool m_needsBoundariesOrTransformUpdate : 1; |
126 bool m_hasBoxDecorationBackground : 1; | 126 bool m_hasBoxDecorationBackground : 1; |
127 mutable bool m_hasNonIsolatedBlendingDescendants : 1; | 127 mutable bool m_hasNonIsolatedBlendingDescendants : 1; |
128 mutable bool m_hasNonIsolatedBlendingDescendantsDirty : 1; | 128 mutable bool m_hasNonIsolatedBlendingDescendantsDirty : 1; |
129 }; | 129 }; |
130 | 130 |
131 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGRoot, isSVGRoot()); | 131 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGRoot, isSVGRoot()); |
132 | 132 |
133 } // namespace blink | 133 } // namespace blink |
134 | 134 |
135 #endif // RenderSVGRoot_h | 135 #endif // RenderSVGRoot_h |
OLD | NEW |