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

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

Issue 2460983002: Use LayoutBox::paintedOutputOfObjectHasNoEffectregardlessOfSize() for SVGRoot (Closed)
Patch Set: Rebase Created 4 years, 1 month 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 | « third_party/WebKit/Source/core/layout/LayoutReplaced.h ('k') | no next file » | 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 return m_paintInvalidationBoundingBox; 129 return m_paintInvalidationBoundingBox;
130 } 130 }
131 131
132 bool nodeAtPoint(HitTestResult&, 132 bool nodeAtPoint(HitTestResult&,
133 const HitTestLocation& locationInContainer, 133 const HitTestLocation& locationInContainer,
134 const LayoutPoint& accumulatedOffset, 134 const LayoutPoint& accumulatedOffset,
135 HitTestAction) override; 135 HitTestAction) override;
136 136
137 LayoutRect localOverflowRectForPaintInvalidation() const override; 137 LayoutRect localOverflowRectForPaintInvalidation() const override;
138 138
139 bool paintedOutputOfObjectHasNoEffectRegardlessOfSize() const final {
140 // The rule is the same as LayoutBox's instead of LayoutReplaced's.
141 return LayoutBox::paintedOutputOfObjectHasNoEffectRegardlessOfSize();
142 }
143
139 void mapLocalToAncestor( 144 void mapLocalToAncestor(
140 const LayoutBoxModelObject* ancestor, 145 const LayoutBoxModelObject* ancestor,
141 TransformState&, 146 TransformState&,
142 MapCoordinatesFlags = ApplyContainerFlip) const override; 147 MapCoordinatesFlags = ApplyContainerFlip) const override;
143 const LayoutObject* pushMappingToContainer( 148 const LayoutObject* pushMappingToContainer(
144 const LayoutBoxModelObject* ancestorToStopAt, 149 const LayoutBoxModelObject* ancestorToStopAt,
145 LayoutGeometryMap&) const override; 150 LayoutGeometryMap&) const override;
146 151
147 bool canBeSelectionLeaf() const override { return false; } 152 bool canBeSelectionLeaf() const override { return false; }
148 bool canHaveChildren() const override { return true; } 153 bool canHaveChildren() const override { return true; }
(...skipping 19 matching lines...) Expand all
168 bool m_hasBoxDecorationBackground : 1; 173 bool m_hasBoxDecorationBackground : 1;
169 mutable bool m_hasNonIsolatedBlendingDescendants : 1; 174 mutable bool m_hasNonIsolatedBlendingDescendants : 1;
170 mutable bool m_hasNonIsolatedBlendingDescendantsDirty : 1; 175 mutable bool m_hasNonIsolatedBlendingDescendantsDirty : 1;
171 }; 176 };
172 177
173 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGRoot, isSVGRoot()); 178 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGRoot, isSVGRoot());
174 179
175 } // namespace blink 180 } // namespace blink
176 181
177 #endif // LayoutSVGRoot_h 182 #endif // LayoutSVGRoot_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutReplaced.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698