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

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

Issue 112633004: Use a bitmask for SVG render object types (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Minor cleanups Created 7 years 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 | Annotate | Revision Log
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 bool needsBoundariesUpdate() OVERRIDE { return m_needsBoundariesUpda te; } 41 virtual bool needsBoundariesUpdate() OVERRIDE { return m_needsBoundariesUpda te; }
42 virtual void setNeedsTransformUpdate() { m_needsTransformUpdate = true; } 42 virtual void setNeedsTransformUpdate() { m_needsTransformUpdate = true; }
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 { return "RenderSVGImage"; } 50 virtual const char* renderName() const { return "RenderSVGImage"; }
51 virtual bool isSVGImage() const OVERRIDE { return true; } 51 virtual SVGType getSVGType() const OVERRIDE { return IsSVGImage; }
52 52
53 virtual const AffineTransform& localToParentTransform() const { return m_loc alTransform; } 53 virtual const AffineTransform& localToParentTransform() const { return m_loc alTransform; }
54 54
55 virtual FloatRect objectBoundingBox() const { return m_objectBoundingBox; } 55 virtual FloatRect objectBoundingBox() const { return m_objectBoundingBox; }
56 virtual FloatRect strokeBoundingBox() const { return m_objectBoundingBox; } 56 virtual FloatRect strokeBoundingBox() const { return m_objectBoundingBox; }
57 virtual FloatRect repaintRectInLocalCoordinates() const { return m_repaintBo undingBox; } 57 virtual FloatRect repaintRectInLocalCoordinates() const { return m_repaintBo undingBox; }
58 58
59 virtual void addFocusRingRects(Vector<IntRect>&, const LayoutPoint& addition alOffset, const RenderLayerModelObject* paintContainer = 0) OVERRIDE; 59 virtual void addFocusRingRects(Vector<IntRect>&, const LayoutPoint& addition alOffset, const RenderLayerModelObject* paintContainer = 0) OVERRIDE;
60 60
61 virtual void imageChanged(WrappedImagePtr, const IntRect* = 0); 61 virtual void imageChanged(WrappedImagePtr, const IntRect* = 0);
(...skipping 15 matching lines...) Expand all
77 OwnPtr<RenderImageResource> m_imageResource; 77 OwnPtr<RenderImageResource> m_imageResource;
78 78
79 OwnPtr<ImageBuffer> m_bufferedForeground; 79 OwnPtr<ImageBuffer> m_bufferedForeground;
80 }; 80 };
81 81
82 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGImage, isSVGImage()); 82 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGImage, isSVGImage());
83 83
84 } // namespace WebCore 84 } // namespace WebCore
85 85
86 #endif // RenderSVGImage_h 86 #endif // RenderSVGImage_h
OLDNEW
« no previous file with comments | « Source/core/rendering/svg/RenderSVGHiddenContainer.h ('k') | Source/core/rendering/svg/RenderSVGInline.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698