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

Side by Side Diff: Source/core/rendering/svg/RenderSVGImage.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) 2006 Alexander Kellett <lypanov@kde.org> 2 * Copyright (C) 2006 Alexander Kellett <lypanov@kde.org>
3 * Copyright (C) 2006, 2009 Apple Inc. All rights reserved. 3 * Copyright (C) 2006, 2009 Apple Inc. All rights reserved.
4 * Copyright (C) 2007 Rob Buis <buis@kde.org> 4 * Copyright (C) 2007 Rob Buis <buis@kde.org>
5 * Copyright (C) 2009 Google, Inc. 5 * Copyright (C) 2009 Google, Inc.
6 * Copyright (C) 2010 Patrick Gansterer <paroga@paroga.com> 6 * Copyright (C) 2010 Patrick Gansterer <paroga@paroga.com>
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 30 matching lines...) Expand all
41 virtual void setNeedsBoundariesUpdate() OVERRIDE { m_needsBoundariesUpdate = true; } 41 virtual void setNeedsBoundariesUpdate() OVERRIDE { m_needsBoundariesUpdate = true; }
42 virtual void setNeedsTransformUpdate() OVERRIDE { m_needsTransformUpdate = t rue; } 42 virtual void setNeedsTransformUpdate() OVERRIDE { m_needsTransformUpdate = t rue; }
43 43
44 RenderImageResource* imageResource() { return m_imageResource.get(); } 44 RenderImageResource* imageResource() { return m_imageResource.get(); }
45 45
46 // Note: Assumes the PaintInfo context has had all local transforms applied. 46 // Note: Assumes the PaintInfo context has had all local transforms applied.
47 void paintForeground(PaintInfo&); 47 void paintForeground(PaintInfo&);
48 48
49 private: 49 private:
50 virtual const char* renderName() const OVERRIDE { return "RenderSVGImage"; } 50 virtual const char* renderName() const OVERRIDE { return "RenderSVGImage"; }
51 virtual bool isSVGImage() const OVERRIDE { return true; } 51 virtual bool isOfType(RenderObjectType type) const OVERRIDE { return type == RenderObjectSVGImage || RenderSVGModelObject::isOfType(type); }
52 52
53 virtual const AffineTransform& localToParentTransform() const OVERRIDE { ret urn m_localTransform; } 53 virtual const AffineTransform& localToParentTransform() const OVERRIDE { ret urn m_localTransform; }
54 54
55 virtual FloatRect objectBoundingBox() const OVERRIDE { return m_objectBoundi ngBox; } 55 virtual FloatRect objectBoundingBox() const OVERRIDE { return m_objectBoundi ngBox; }
56 virtual FloatRect strokeBoundingBox() const OVERRIDE { return m_objectBoundi ngBox; } 56 virtual FloatRect strokeBoundingBox() const OVERRIDE { return m_objectBoundi ngBox; }
57 virtual FloatRect paintInvalidationRectInLocalCoordinates() const OVERRIDE { return m_paintInvalidationBoundingBox; } 57 virtual FloatRect paintInvalidationRectInLocalCoordinates() const OVERRIDE { return m_paintInvalidationBoundingBox; }
58 58
59 virtual void addFocusRingRects(Vector<LayoutRect>&, const LayoutPoint& addit ionalOffset, const RenderLayerModelObject* paintContainer) const OVERRIDE; 59 virtual void addFocusRingRects(Vector<LayoutRect>&, const LayoutPoint& addit ionalOffset, const RenderLayerModelObject* paintContainer) const OVERRIDE;
60 60
61 virtual void imageChanged(WrappedImagePtr, const IntRect* = 0) OVERRIDE; 61 virtual void imageChanged(WrappedImagePtr, const IntRect* = 0) OVERRIDE;
(...skipping 16 matching lines...) Expand all
78 OwnPtr<RenderImageResource> m_imageResource; 78 OwnPtr<RenderImageResource> m_imageResource;
79 79
80 OwnPtr<ImageBuffer> m_bufferedForeground; 80 OwnPtr<ImageBuffer> m_bufferedForeground;
81 }; 81 };
82 82
83 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGImage, isSVGImage()); 83 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGImage, isSVGImage());
84 84
85 } // namespace blink 85 } // namespace blink
86 86
87 #endif // RenderSVGImage_h 87 #endif // RenderSVGImage_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698