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

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

Issue 9617034: Merge 109104 - Percent width/height SVG not always scaled on window resize (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1025/
Patch Set: Created 8 years, 9 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 const RenderObjectChildList* children() const { return &m_children; } 46 const RenderObjectChildList* children() const { return &m_children; }
47 RenderObjectChildList* children() { return &m_children; } 47 RenderObjectChildList* children() { return &m_children; }
48 48
49 bool isLayoutSizeChanged() const { return m_isLayoutSizeChanged; } 49 bool isLayoutSizeChanged() const { return m_isLayoutSizeChanged; }
50 virtual void setNeedsBoundariesUpdate() { m_needsBoundariesOrTransformUpdate = true; } 50 virtual void setNeedsBoundariesUpdate() { m_needsBoundariesOrTransformUpdate = true; }
51 virtual void setNeedsTransformUpdate() { m_needsBoundariesOrTransformUpdate = true; } 51 virtual void setNeedsTransformUpdate() { m_needsBoundariesOrTransformUpdate = true; }
52 52
53 IntSize containerSize() const { return m_containerSize; } 53 IntSize containerSize() const { return m_containerSize; }
54 void setContainerSize(const IntSize& containerSize) { m_containerSize = cont ainerSize; } 54 void setContainerSize(const IntSize& containerSize) { m_containerSize = cont ainerSize; }
55 55
56 virtual bool hasRelativeDimensions() const;
57
56 private: 58 private:
57 virtual RenderObjectChildList* virtualChildren() { return children(); } 59 virtual RenderObjectChildList* virtualChildren() { return children(); }
58 virtual const RenderObjectChildList* virtualChildren() const { return childr en(); } 60 virtual const RenderObjectChildList* virtualChildren() const { return childr en(); }
59 virtual bool canHaveChildren() const { return true; } 61 virtual bool canHaveChildren() const { return true; }
60 62
61 virtual bool isSVGRoot() const { return true; } 63 virtual bool isSVGRoot() const { return true; }
62 virtual const char* renderName() const { return "RenderSVGRoot"; } 64 virtual const char* renderName() const { return "RenderSVGRoot"; }
63 65
64 virtual LayoutUnit computeReplacedLogicalWidth(bool includeMaxWidth = true) const; 66 virtual LayoutUnit computeReplacedLogicalWidth(bool includeMaxWidth = true) const;
65 virtual LayoutUnit computeReplacedLogicalHeight() const; 67 virtual LayoutUnit computeReplacedLogicalHeight() const;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 return static_cast<const RenderSVGRoot*>(object); 116 return static_cast<const RenderSVGRoot*>(object);
115 } 117 }
116 118
117 // This will catch anyone doing an unnecessary cast. 119 // This will catch anyone doing an unnecessary cast.
118 void toRenderSVGRoot(const RenderSVGRoot*); 120 void toRenderSVGRoot(const RenderSVGRoot*);
119 121
120 } // namespace WebCore 122 } // namespace WebCore
121 123
122 #endif // ENABLE(SVG) 124 #endif // ENABLE(SVG)
123 #endif // RenderSVGRoot_h 125 #endif // RenderSVGRoot_h
OLDNEW
« no previous file with comments | « Source/WebCore/rendering/RenderReplaced.cpp ('k') | Source/WebCore/rendering/svg/RenderSVGRoot.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698