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

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

Issue 613783002: Smaller vtbls in RenderObject (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase better. Created 6 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
« no previous file with comments | « Source/core/rendering/svg/RenderSVGRoot.h ('k') | Source/core/rendering/svg/RenderSVGText.h » ('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 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org>
4 * Copyright (C) 2005 Eric Seidel <eric@webkit.org> 4 * Copyright (C) 2005 Eric Seidel <eric@webkit.org>
5 * Copyright (C) 2006 Apple Computer, Inc 5 * Copyright (C) 2006 Apple Computer, Inc
6 * Copyright (C) 2009 Google, Inc. 6 * Copyright (C) 2009 Google, Inc.
7 * Copyright (C) 2011 Renata Hodovan <reni@webkit.org> 7 * Copyright (C) 2011 Renata Hodovan <reni@webkit.org>
8 * Copyright (C) 2011 University of Szeged 8 * Copyright (C) 2011 University of Szeged
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 78
79 private: 79 private:
80 // Hit-detection separated for the fill and the stroke 80 // Hit-detection separated for the fill and the stroke
81 bool fillContains(const FloatPoint&, bool requiresFill = true, const WindRul e fillRule = RULE_NONZERO); 81 bool fillContains(const FloatPoint&, bool requiresFill = true, const WindRul e fillRule = RULE_NONZERO);
82 bool strokeContains(const FloatPoint&, bool requiresStroke = true); 82 bool strokeContains(const FloatPoint&, bool requiresStroke = true);
83 83
84 virtual FloatRect paintInvalidationRectInLocalCoordinates() const override f inal { return m_paintInvalidationBoundingBox; } 84 virtual FloatRect paintInvalidationRectInLocalCoordinates() const override f inal { return m_paintInvalidationBoundingBox; }
85 virtual const AffineTransform& localToParentTransform() const override final { return m_localTransform; } 85 virtual const AffineTransform& localToParentTransform() const override final { return m_localTransform; }
86 virtual AffineTransform localTransform() const override final { return m_loc alTransform; } 86 virtual AffineTransform localTransform() const override final { return m_loc alTransform; }
87 87
88 virtual bool isSVGShape() const override final { return true; } 88 virtual bool isOfType(RenderObjectType type) const override { return type == RenderObjectSVGShape || RenderSVGModelObject::isOfType(type); }
89 virtual const char* renderName() const override { return "RenderSVGShape"; } 89 virtual const char* renderName() const override { return "RenderSVGShape"; }
90 90
91 virtual void layout() override final; 91 virtual void layout() override final;
92 virtual void paint(PaintInfo&, const LayoutPoint&) override final; 92 virtual void paint(PaintInfo&, const LayoutPoint&) override final;
93 virtual void addFocusRingRects(Vector<LayoutRect>&, const LayoutPoint& addit ionalOffset, const RenderLayerModelObject* paintContainer) const override final; 93 virtual void addFocusRingRects(Vector<LayoutRect>&, const LayoutPoint& addit ionalOffset, const RenderLayerModelObject* paintContainer) const override final;
94 94
95 virtual bool nodeAtFloatPoint(const HitTestRequest&, HitTestResult&, const F loatPoint& pointInParent, HitTestAction) override final; 95 virtual bool nodeAtFloatPoint(const HitTestRequest&, HitTestResult&, const F loatPoint& pointInParent, HitTestAction) override final;
96 96
97 virtual FloatRect objectBoundingBox() const override final { return m_fillBo undingBox; } 97 virtual FloatRect objectBoundingBox() const override final { return m_fillBo undingBox; }
98 virtual FloatRect strokeBoundingBox() const override final { return m_stroke BoundingBox; } 98 virtual FloatRect strokeBoundingBox() const override final { return m_stroke BoundingBox; }
(...skipping 18 matching lines...) Expand all
117 bool m_needsBoundariesUpdate : 1; 117 bool m_needsBoundariesUpdate : 1;
118 bool m_needsShapeUpdate : 1; 118 bool m_needsShapeUpdate : 1;
119 bool m_needsTransformUpdate : 1; 119 bool m_needsTransformUpdate : 1;
120 }; 120 };
121 121
122 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGShape, isSVGShape()); 122 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGShape, isSVGShape());
123 123
124 } 124 }
125 125
126 #endif 126 #endif
OLDNEW
« no previous file with comments | « Source/core/rendering/svg/RenderSVGRoot.h ('k') | Source/core/rendering/svg/RenderSVGText.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698