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

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

Issue 2587623002: Make LayoutSVGViewportContainer's viewport updates an internal detail (Closed)
Patch Set: Fix mistake in setting m_isLayoutSizeChanged Created 4 years 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/svg/LayoutSVGContainer.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 84
85 FloatRect strokeBoundingBox() const final { return m_strokeBoundingBox; } 85 FloatRect strokeBoundingBox() const final { return m_strokeBoundingBox; }
86 86
87 bool nodeAtFloatPoint(HitTestResult&, 87 bool nodeAtFloatPoint(HitTestResult&,
88 const FloatPoint& pointInParent, 88 const FloatPoint& pointInParent,
89 HitTestAction) override; 89 HitTestAction) override;
90 90
91 // Called during layout to update the local transform. 91 // Called during layout to update the local transform.
92 virtual SVGTransformChange calculateLocalTransform(); 92 virtual SVGTransformChange calculateLocalTransform();
93 93
94 virtual void determineIfLayoutSizeChanged() {}
95
96 void updateCachedBoundaries(); 94 void updateCachedBoundaries();
97 95
98 void descendantIsolationRequirementsChanged(DescendantIsolationState) final; 96 void descendantIsolationRequirementsChanged(DescendantIsolationState) final;
99 97
100 private: 98 private:
101 const LayoutObjectChildList* children() const { return &m_children; } 99 const LayoutObjectChildList* children() const { return &m_children; }
102 LayoutObjectChildList* children() { return &m_children; } 100 LayoutObjectChildList* children() { return &m_children; }
103 101
104 LayoutObjectChildList m_children; 102 LayoutObjectChildList m_children;
105 FloatRect m_objectBoundingBox; 103 FloatRect m_objectBoundingBox;
106 FloatRect m_strokeBoundingBox; 104 FloatRect m_strokeBoundingBox;
107 bool m_objectBoundingBoxValid; 105 bool m_objectBoundingBoxValid;
108 bool m_needsBoundariesUpdate : 1; 106 bool m_needsBoundariesUpdate : 1;
109 bool m_didScreenScaleFactorChange : 1; 107 bool m_didScreenScaleFactorChange : 1;
110 mutable bool m_hasNonIsolatedBlendingDescendants : 1; 108 mutable bool m_hasNonIsolatedBlendingDescendants : 1;
111 mutable bool m_hasNonIsolatedBlendingDescendantsDirty : 1; 109 mutable bool m_hasNonIsolatedBlendingDescendantsDirty : 1;
112 }; 110 };
113 111
114 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGContainer, isSVGContainer()); 112 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGContainer, isSVGContainer());
115 113
116 } // namespace blink 114 } // namespace blink
117 115
118 #endif // LayoutSVGContainer_h 116 #endif // LayoutSVGContainer_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/svg/LayoutSVGContainer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698