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

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

Issue 1025213002: Begin tracking why layout is invalidated (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 5 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 | Annotate | Revision Log
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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 virtual void setNeedsBoundariesUpdate() override { m_needsBoundariesOrTransf ormUpdate = true; } 51 virtual void setNeedsBoundariesUpdate() override { m_needsBoundariesOrTransf ormUpdate = true; }
52 virtual void setNeedsTransformUpdate() override { m_needsBoundariesOrTransfo rmUpdate = true; } 52 virtual void setNeedsTransformUpdate() override { m_needsBoundariesOrTransfo rmUpdate = true; }
53 53
54 IntSize containerSize() const { return m_containerSize; } 54 IntSize containerSize() const { return m_containerSize; }
55 void setContainerSize(const IntSize& containerSize) 55 void setContainerSize(const IntSize& containerSize)
56 { 56 {
57 // SVGImage::draw() does a view layout prior to painting, 57 // SVGImage::draw() does a view layout prior to painting,
58 // and we need that layout to know of the new size otherwise 58 // and we need that layout to know of the new size otherwise
59 // the layout may be incorrectly using the old size. 59 // the layout may be incorrectly using the old size.
60 if (m_containerSize != containerSize) 60 if (m_containerSize != containerSize)
61 setNeedsLayoutAndFullPaintInvalidation(); 61 setNeedsLayoutAndFullPaintInvalidation(LayoutInvalidationReason::Siz eChanged);
62 m_containerSize = containerSize; 62 m_containerSize = containerSize;
63 } 63 }
64 64
65 // localToBorderBoxTransform maps local SVG viewport coordinates to local CS S box coordinates. 65 // localToBorderBoxTransform maps local SVG viewport coordinates to local CS S box coordinates.
66 const AffineTransform& localToBorderBoxTransform() const { return m_localToB orderBoxTransform; } 66 const AffineTransform& localToBorderBoxTransform() const { return m_localToB orderBoxTransform; }
67 bool shouldApplyViewportClip() const; 67 bool shouldApplyViewportClip() const;
68 68
69 virtual bool hasNonIsolatedBlendingDescendants() const override final; 69 virtual bool hasNonIsolatedBlendingDescendants() const override final;
70 70
71 virtual const char* name() const override { return "LayoutSVGRoot"; } 71 virtual const char* name() const override { return "LayoutSVGRoot"; }
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
« no previous file with comments | « Source/core/layout/svg/LayoutSVGResourceContainer.cpp ('k') | Source/core/layout/svg/SVGLayoutSupport.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698