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

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: RenderObject: Cut down vtbls a bit 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
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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 79
80 private: 80 private:
81 // Hit-detection separated for the fill and the stroke 81 // Hit-detection separated for the fill and the stroke
82 bool fillContains(const FloatPoint&, bool requiresFill = true, const WindRul e fillRule = RULE_NONZERO); 82 bool fillContains(const FloatPoint&, bool requiresFill = true, const WindRul e fillRule = RULE_NONZERO);
83 bool strokeContains(const FloatPoint&, bool requiresStroke = true); 83 bool strokeContains(const FloatPoint&, bool requiresStroke = true);
84 84
85 virtual FloatRect paintInvalidationRectInLocalCoordinates() const OVERRIDE F INAL { return m_paintInvalidationBoundingBox; } 85 virtual FloatRect paintInvalidationRectInLocalCoordinates() const OVERRIDE F INAL { return m_paintInvalidationBoundingBox; }
86 virtual const AffineTransform& localToParentTransform() const OVERRIDE FINAL { return m_localTransform; } 86 virtual const AffineTransform& localToParentTransform() const OVERRIDE FINAL { return m_localTransform; }
87 virtual AffineTransform localTransform() const OVERRIDE FINAL { return m_loc alTransform; } 87 virtual AffineTransform localTransform() const OVERRIDE FINAL { return m_loc alTransform; }
88 88
89 virtual bool isSVGShape() const OVERRIDE FINAL { return true; } 89 virtual bool isOfType(RenderObjectType type) const OVERRIDE { return type == RenderObjectSVGShape || RenderSVGModelObject::isOfType(type); }
90 virtual const char* renderName() const OVERRIDE { return "RenderSVGShape"; } 90 virtual const char* renderName() const OVERRIDE { return "RenderSVGShape"; }
91 91
92 virtual void layout() OVERRIDE FINAL; 92 virtual void layout() OVERRIDE FINAL;
93 virtual void paint(PaintInfo&, const LayoutPoint&) OVERRIDE FINAL; 93 virtual void paint(PaintInfo&, const LayoutPoint&) OVERRIDE FINAL;
94 virtual void addFocusRingRects(Vector<LayoutRect>&, const LayoutPoint& addit ionalOffset, const RenderLayerModelObject* paintContainer) const OVERRIDE FINAL; 94 virtual void addFocusRingRects(Vector<LayoutRect>&, const LayoutPoint& addit ionalOffset, const RenderLayerModelObject* paintContainer) const OVERRIDE FINAL;
95 95
96 virtual bool nodeAtFloatPoint(const HitTestRequest&, HitTestResult&, const F loatPoint& pointInParent, HitTestAction) OVERRIDE FINAL; 96 virtual bool nodeAtFloatPoint(const HitTestRequest&, HitTestResult&, const F loatPoint& pointInParent, HitTestAction) OVERRIDE FINAL;
97 97
98 virtual FloatRect objectBoundingBox() const OVERRIDE FINAL { return m_fillBo undingBox; } 98 virtual FloatRect objectBoundingBox() const OVERRIDE FINAL { return m_fillBo undingBox; }
99 virtual FloatRect strokeBoundingBox() const OVERRIDE FINAL { return m_stroke BoundingBox; } 99 virtual FloatRect strokeBoundingBox() const OVERRIDE FINAL { return m_stroke BoundingBox; }
(...skipping 20 matching lines...) Expand all
120 bool m_needsBoundariesUpdate : 1; 120 bool m_needsBoundariesUpdate : 1;
121 bool m_needsShapeUpdate : 1; 121 bool m_needsShapeUpdate : 1;
122 bool m_needsTransformUpdate : 1; 122 bool m_needsTransformUpdate : 1;
123 }; 123 };
124 124
125 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGShape, isSVGShape()); 125 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGShape, isSVGShape());
126 126
127 } 127 }
128 128
129 #endif 129 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698