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

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

Issue 2400783002: Reformat comments in core/layout/svg (Closed)
Patch Set: Created 4 years, 2 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 m_containerSize = containerSize; 74 m_containerSize = containerSize;
75 } 75 }
76 76
77 // localToBorderBoxTransform maps local SVG viewport coordinates to local CSS box coordinates. 77 // localToBorderBoxTransform maps local SVG viewport coordinates to local CSS
78 // box coordinates.
78 const AffineTransform& localToBorderBoxTransform() const { 79 const AffineTransform& localToBorderBoxTransform() const {
79 return m_localToBorderBoxTransform; 80 return m_localToBorderBoxTransform;
80 } 81 }
81 bool shouldApplyViewportClip() const; 82 bool shouldApplyViewportClip() const;
82 83
83 LayoutRect visualOverflowRect() const override; 84 LayoutRect visualOverflowRect() const override;
84 LayoutRect overflowClipRect( 85 LayoutRect overflowClipRect(
85 const LayoutPoint& location, 86 const LayoutPoint& location,
86 OverlayScrollbarClipBehavior = IgnoreOverlayScrollbarSize) const override; 87 OverlayScrollbarClipBehavior = IgnoreOverlayScrollbarSize) const override;
87 88
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 bool m_hasBoxDecorationBackground : 1; 168 bool m_hasBoxDecorationBackground : 1;
168 mutable bool m_hasNonIsolatedBlendingDescendants : 1; 169 mutable bool m_hasNonIsolatedBlendingDescendants : 1;
169 mutable bool m_hasNonIsolatedBlendingDescendantsDirty : 1; 170 mutable bool m_hasNonIsolatedBlendingDescendantsDirty : 1;
170 }; 171 };
171 172
172 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGRoot, isSVGRoot()); 173 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGRoot, isSVGRoot());
173 174
174 } // namespace blink 175 } // namespace blink
175 176
176 #endif // LayoutSVGRoot_h 177 #endif // LayoutSVGRoot_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698