Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(152)

Side by Side Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.h

Issue 1537133002: Renaming: distinguish ancestor, container and paintInvalidationContainer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@SelectionInvalidation
Patch Set: Created 4 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
31 31
32 class LayoutSVGRoot final : public LayoutReplaced { 32 class LayoutSVGRoot final : public LayoutReplaced {
33 public: 33 public:
34 explicit LayoutSVGRoot(SVGElement*); 34 explicit LayoutSVGRoot(SVGElement*);
35 ~LayoutSVGRoot() override; 35 ~LayoutSVGRoot() override;
36 36
37 bool isEmbeddedThroughSVGImage() const; 37 bool isEmbeddedThroughSVGImage() const;
38 bool isEmbeddedThroughFrameContainingSVGDocument() const; 38 bool isEmbeddedThroughFrameContainingSVGDocument() const;
39 39
40 void computeIntrinsicRatioInformation(FloatSize& intrinsicSize, double& intr insicRatio) const override; 40 void computeIntrinsicRatioInformation(FloatSize& intrinsicSize, double& intr insicRatio) const override;
41 void mapToVisibleRectInContainerSpace(const LayoutBoxModelObject* paintInval idationContainer, LayoutRect&, const PaintInvalidationState*) const override; 41 void mapToVisibleRectInAncestorSpace(const LayoutBoxModelObject* ancestor, L ayoutRect&, const PaintInvalidationState*) const override;
42 42
43 // If you have a LayoutSVGRoot, use firstChild or lastChild instead. 43 // If you have a LayoutSVGRoot, 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 LayoutObject* firstChild() const { ASSERT(children() == virtualChildren()); return children()->firstChild(); } 47 LayoutObject* firstChild() const { ASSERT(children() == virtualChildren()); return children()->firstChild(); }
48 LayoutObject* lastChild() const { ASSERT(children() == virtualChildren()); r eturn children()->lastChild(); } 48 LayoutObject* 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 void setNeedsBoundariesUpdate() override { m_needsBoundariesOrTransformUpdat e = true; } 51 void setNeedsBoundariesUpdate() override { m_needsBoundariesOrTransformUpdat e = true; }
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 const AffineTransform& localToParentTransform() const override; 96 const AffineTransform& localToParentTransform() const override;
97 97
98 FloatRect objectBoundingBox() const override { return m_objectBoundingBox; } 98 FloatRect objectBoundingBox() const override { return m_objectBoundingBox; }
99 FloatRect strokeBoundingBox() const override { return m_strokeBoundingBox; } 99 FloatRect strokeBoundingBox() const override { return m_strokeBoundingBox; }
100 FloatRect paintInvalidationRectInLocalCoordinates() const override { return m_paintInvalidationBoundingBox; } 100 FloatRect paintInvalidationRectInLocalCoordinates() const override { return m_paintInvalidationBoundingBox; }
101 101
102 bool nodeAtPoint(HitTestResult&, const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction) override; 102 bool nodeAtPoint(HitTestResult&, const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction) override;
103 103
104 LayoutRect clippedOverflowRectForPaintInvalidation(const LayoutBoxModelObjec t* paintInvalidationContainer, const PaintInvalidationState* = nullptr) const ov erride; 104 LayoutRect clippedOverflowRectForPaintInvalidation(const LayoutBoxModelObjec t* paintInvalidationContainer, const PaintInvalidationState* = nullptr) const ov erride;
105 105
106 void mapLocalToContainer(const LayoutBoxModelObject* paintInvalidationContai ner, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed = nullptr, const PaintInvalidationState* = nullptr) const override; 106 void mapLocalToAncestor(const LayoutBoxModelObject* ancestor, TransformState &, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed = nullptr, const Pai ntInvalidationState* = nullptr) const override;
107 const LayoutObject* pushMappingToContainer(const LayoutBoxModelObject* ances torToStopAt, LayoutGeometryMap&) const override; 107 const LayoutObject* pushMappingToContainer(const LayoutBoxModelObject* ances torToStopAt, LayoutGeometryMap&) const override;
108 108
109 bool canBeSelectionLeaf() const override { return false; } 109 bool canBeSelectionLeaf() const override { return false; }
110 bool canHaveChildren() const override { return true; } 110 bool canHaveChildren() const override { return true; }
111 111
112 void descendantIsolationRequirementsChanged(DescendantIsolationState) final; 112 void descendantIsolationRequirementsChanged(DescendantIsolationState) final;
113 113
114 void updateCachedBoundaries(); 114 void updateCachedBoundaries();
115 void buildLocalToBorderBoxTransform(); 115 void buildLocalToBorderBoxTransform();
116 116
(...skipping 10 matching lines...) Expand all
127 bool m_hasBoxDecorationBackground : 1; 127 bool m_hasBoxDecorationBackground : 1;
128 mutable bool m_hasNonIsolatedBlendingDescendants : 1; 128 mutable bool m_hasNonIsolatedBlendingDescendants : 1;
129 mutable bool m_hasNonIsolatedBlendingDescendantsDirty : 1; 129 mutable bool m_hasNonIsolatedBlendingDescendantsDirty : 1;
130 }; 130 };
131 131
132 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGRoot, isSVGRoot()); 132 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGRoot, isSVGRoot());
133 133
134 } // namespace blink 134 } // namespace blink
135 135
136 #endif // LayoutSVGRoot_h 136 #endif // LayoutSVGRoot_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698