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

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
« no previous file with comments | « Source/core/frame/FrameView.cpp ('k') | Source/core/rendering/svg/RenderSVGRoot.cpp » ('j') | 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 99
100 virtual LayoutRect clippedOverflowRectForRepaint(const RenderLayerModelObjec t* repaintContainer) const OVERRIDE; 100 virtual LayoutRect clippedOverflowRectForRepaint(const RenderLayerModelObjec t* repaintContainer) const OVERRIDE;
101 virtual void computeFloatRectForRepaint(const RenderLayerModelObject* repain tContainer, FloatRect& repaintRect, bool fixed) const OVERRIDE; 101 virtual void computeFloatRectForRepaint(const RenderLayerModelObject* repain tContainer, FloatRect& repaintRect, bool fixed) const OVERRIDE;
102 102
103 virtual void mapLocalToContainer(const RenderLayerModelObject* repaintContai ner, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed = 0) const OVERRIDE; 103 virtual void mapLocalToContainer(const RenderLayerModelObject* repaintContai ner, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed = 0) const OVERRIDE;
104 virtual const RenderObject* pushMappingToContainer(const RenderLayerModelObj ect* ancestorToStopAt, RenderGeometryMap&) const OVERRIDE; 104 virtual const RenderObject* pushMappingToContainer(const RenderLayerModelObj ect* ancestorToStopAt, RenderGeometryMap&) const OVERRIDE;
105 105
106 virtual bool canBeSelectionLeaf() const OVERRIDE { return false; } 106 virtual bool canBeSelectionLeaf() const OVERRIDE { return false; }
107 virtual bool canHaveChildren() const OVERRIDE { return true; } 107 virtual bool canHaveChildren() const OVERRIDE { return true; }
108 108
109 bool shouldApplyViewportClip() const;
109 void updateCachedBoundaries(); 110 void updateCachedBoundaries();
110 void buildLocalToBorderBoxTransform(); 111 void buildLocalToBorderBoxTransform();
111 112
112 RenderObjectChildList m_children; 113 RenderObjectChildList m_children;
113 IntSize m_containerSize; 114 IntSize m_containerSize;
114 FloatRect m_objectBoundingBox; 115 FloatRect m_objectBoundingBox;
115 bool m_objectBoundingBoxValid; 116 bool m_objectBoundingBoxValid;
116 FloatRect m_strokeBoundingBox; 117 FloatRect m_strokeBoundingBox;
117 FloatRect m_repaintBoundingBox; 118 FloatRect m_repaintBoundingBox;
118 mutable AffineTransform m_localToParentTransform; 119 mutable AffineTransform m_localToParentTransform;
119 AffineTransform m_localToBorderBoxTransform; 120 AffineTransform m_localToBorderBoxTransform;
120 bool m_isLayoutSizeChanged : 1; 121 bool m_isLayoutSizeChanged : 1;
121 bool m_needsBoundariesOrTransformUpdate : 1; 122 bool m_needsBoundariesOrTransformUpdate : 1;
122 bool m_hasBoxDecorations : 1; 123 bool m_hasBoxDecorations : 1;
123 }; 124 };
124 125
125 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGRoot, isSVGRoot()); 126 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGRoot, isSVGRoot());
126 127
127 } // namespace WebCore 128 } // namespace WebCore
128 129
129 #endif // RenderSVGRoot_h 130 #endif // RenderSVGRoot_h
OLDNEW
« no previous file with comments | « Source/core/frame/FrameView.cpp ('k') | Source/core/rendering/svg/RenderSVGRoot.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698