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

Side by Side Diff: Source/core/rendering/svg/RenderSVGRoot.h

Issue 220853002: SVG does not respect overflow:visible. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 6 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
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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 103
104 virtual LayoutRect clippedOverflowRectForRepaint(const RenderLayerModelObjec t* repaintContainer) const OVERRIDE; 104 virtual LayoutRect clippedOverflowRectForRepaint(const RenderLayerModelObjec t* repaintContainer) const OVERRIDE;
105 virtual void computeFloatRectForRepaint(const RenderLayerModelObject* repain tContainer, FloatRect& repaintRect, bool fixed) const OVERRIDE; 105 virtual void computeFloatRectForRepaint(const RenderLayerModelObject* repain tContainer, FloatRect& repaintRect, bool fixed) const OVERRIDE;
106 106
107 virtual void mapLocalToContainer(const RenderLayerModelObject* repaintContai ner, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed = 0) const OVERRIDE; 107 virtual void mapLocalToContainer(const RenderLayerModelObject* repaintContai ner, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed = 0) const OVERRIDE;
108 virtual const RenderObject* pushMappingToContainer(const RenderLayerModelObj ect* ancestorToStopAt, RenderGeometryMap&) const OVERRIDE; 108 virtual const RenderObject* pushMappingToContainer(const RenderLayerModelObj ect* ancestorToStopAt, RenderGeometryMap&) const OVERRIDE;
109 109
110 virtual bool canBeSelectionLeaf() const OVERRIDE { return false; } 110 virtual bool canBeSelectionLeaf() const OVERRIDE { return false; }
111 virtual bool canHaveChildren() const OVERRIDE { return true; } 111 virtual bool canHaveChildren() const OVERRIDE { return true; }
112 112
113 bool applyViewportClip() const;
113 void updateCachedBoundaries(); 114 void updateCachedBoundaries();
114 void buildLocalToBorderBoxTransform(); 115 void buildLocalToBorderBoxTransform();
115 116
116 RenderObjectChildList m_children; 117 RenderObjectChildList m_children;
117 IntSize m_containerSize; 118 IntSize m_containerSize;
118 FloatRect m_objectBoundingBox; 119 FloatRect m_objectBoundingBox;
119 bool m_objectBoundingBoxValid; 120 bool m_objectBoundingBoxValid;
120 FloatRect m_strokeBoundingBox; 121 FloatRect m_strokeBoundingBox;
121 FloatRect m_repaintBoundingBox; 122 FloatRect m_repaintBoundingBox;
122 mutable AffineTransform m_localToParentTransform; 123 mutable AffineTransform m_localToParentTransform;
123 AffineTransform m_localToBorderBoxTransform; 124 AffineTransform m_localToBorderBoxTransform;
124 bool m_isLayoutSizeChanged : 1; 125 bool m_isLayoutSizeChanged : 1;
125 bool m_needsBoundariesOrTransformUpdate : 1; 126 bool m_needsBoundariesOrTransformUpdate : 1;
126 }; 127 };
127 128
128 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGRoot, isSVGRoot()); 129 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGRoot, isSVGRoot());
129 130
130 } // namespace WebCore 131 } // namespace WebCore
131 132
132 #endif // RenderSVGRoot_h 133 #endif // RenderSVGRoot_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698