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

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

Issue 1911473002: Rename transformToRoot:ish names to screenScaleFactorChanged:ish ones (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@svg-hiddencontainer-layout-no-xfrmchg
Patch Set: Update comment in LayoutSVGText. Created 4 years, 8 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
« 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 26 matching lines...) Expand all
37 // If you have a LayoutSVGContainer, use firstChild or lastChild instead. 37 // If you have a LayoutSVGContainer, use firstChild or lastChild instead.
38 void slowFirstChild() const = delete; 38 void slowFirstChild() const = delete;
39 void slowLastChild() const = delete; 39 void slowLastChild() const = delete;
40 40
41 LayoutObject* firstChild() const { ASSERT(children() == virtualChildren()); return children()->firstChild(); } 41 LayoutObject* firstChild() const { ASSERT(children() == virtualChildren()); return children()->firstChild(); }
42 LayoutObject* lastChild() const { ASSERT(children() == virtualChildren()); r eturn children()->lastChild(); } 42 LayoutObject* lastChild() const { ASSERT(children() == virtualChildren()); r eturn children()->lastChild(); }
43 43
44 void paint(const PaintInfo&, const LayoutPoint&) const override; 44 void paint(const PaintInfo&, const LayoutPoint&) const override;
45 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override ; 45 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override ;
46 void setNeedsBoundariesUpdate() final { m_needsBoundariesUpdate = true; } 46 void setNeedsBoundariesUpdate() final { m_needsBoundariesUpdate = true; }
47 bool didTransformToRootUpdate() const { return m_didTransformToRootUpdate; } 47 bool didScreenScaleFactorChange() const { return m_didScreenScaleFactorChang e; }
48 bool isObjectBoundingBoxValid() const { return m_objectBoundingBoxValid; } 48 bool isObjectBoundingBoxValid() const { return m_objectBoundingBoxValid; }
49 49
50 bool selfWillPaint() const; 50 bool selfWillPaint() const;
51 51
52 bool hasNonIsolatedBlendingDescendants() const final; 52 bool hasNonIsolatedBlendingDescendants() const final;
53 53
54 const char* name() const override { return "LayoutSVGContainer"; } 54 const char* name() const override { return "LayoutSVGContainer"; }
55 55
56 FloatRect objectBoundingBox() const final { return m_objectBoundingBox; } 56 FloatRect objectBoundingBox() const final { return m_objectBoundingBox; }
57 57
(...skipping 27 matching lines...) Expand all
85 85
86 private: 86 private:
87 const LayoutObjectChildList* children() const { return &m_children; } 87 const LayoutObjectChildList* children() const { return &m_children; }
88 LayoutObjectChildList* children() { return &m_children; } 88 LayoutObjectChildList* children() { return &m_children; }
89 89
90 LayoutObjectChildList m_children; 90 LayoutObjectChildList m_children;
91 FloatRect m_objectBoundingBox; 91 FloatRect m_objectBoundingBox;
92 FloatRect m_strokeBoundingBox; 92 FloatRect m_strokeBoundingBox;
93 bool m_objectBoundingBoxValid; 93 bool m_objectBoundingBoxValid;
94 bool m_needsBoundariesUpdate : 1; 94 bool m_needsBoundariesUpdate : 1;
95 bool m_didTransformToRootUpdate : 1; 95 bool m_didScreenScaleFactorChange : 1;
96 mutable bool m_hasNonIsolatedBlendingDescendants : 1; 96 mutable bool m_hasNonIsolatedBlendingDescendants : 1;
97 mutable bool m_hasNonIsolatedBlendingDescendantsDirty : 1; 97 mutable bool m_hasNonIsolatedBlendingDescendantsDirty : 1;
98 }; 98 };
99 99
100 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGContainer, isSVGContainer()); 100 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGContainer, isSVGContainer());
101 101
102 } // namespace blink 102 } // namespace blink
103 103
104 #endif // LayoutSVGContainer_h 104 #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