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

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

Issue 2529293012: Invalidate paint properties on paint offset changes (Closed)
Patch Set: Fix more underinvalidation 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
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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 } 61 }
62 void setNeedsTransformUpdate() override { 62 void setNeedsTransformUpdate() override {
63 m_needsBoundariesOrTransformUpdate = true; 63 m_needsBoundariesOrTransformUpdate = true;
64 } 64 }
65 65
66 IntSize containerSize() const { return m_containerSize; } 66 IntSize containerSize() const { return m_containerSize; }
67 void setContainerSize(const IntSize& containerSize) { 67 void setContainerSize(const IntSize& containerSize) {
68 // SVGImage::draw() does a view layout prior to painting, 68 // SVGImage::draw() does a view layout prior to painting,
69 // and we need that layout to know of the new size otherwise 69 // and we need that layout to know of the new size otherwise
70 // the layout may be incorrectly using the old size. 70 // the layout may be incorrectly using the old size.
71 if (m_containerSize != containerSize) 71 if (m_containerSize != containerSize) {
72 setNeedsLayoutAndFullPaintInvalidation( 72 setNeedsLayoutAndFullPaintInvalidation(
73 LayoutInvalidationReason::SizeChanged); 73 LayoutInvalidationReason::SizeChanged);
74 }
74 m_containerSize = containerSize; 75 m_containerSize = containerSize;
75 } 76 }
76 77
77 // localToBorderBoxTransform maps local SVG viewport coordinates to local CSS 78 // localToBorderBoxTransform maps local SVG viewport coordinates to local CSS
78 // box coordinates. 79 // box coordinates.
79 const AffineTransform& localToBorderBoxTransform() const { 80 const AffineTransform& localToBorderBoxTransform() const {
80 return m_localToBorderBoxTransform; 81 return m_localToBorderBoxTransform;
81 } 82 }
82 bool shouldApplyViewportClip() const; 83 bool shouldApplyViewportClip() const;
83 84
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 bool m_hasBoxDecorationBackground : 1; 173 bool m_hasBoxDecorationBackground : 1;
173 mutable bool m_hasNonIsolatedBlendingDescendants : 1; 174 mutable bool m_hasNonIsolatedBlendingDescendants : 1;
174 mutable bool m_hasNonIsolatedBlendingDescendantsDirty : 1; 175 mutable bool m_hasNonIsolatedBlendingDescendantsDirty : 1;
175 }; 176 };
176 177
177 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGRoot, isSVGRoot()); 178 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGRoot, isSVGRoot());
178 179
179 } // namespace blink 180 } // namespace blink
180 181
181 #endif // LayoutSVGRoot_h 182 #endif // LayoutSVGRoot_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698