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

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

Issue 108203005: Remove ancestor walk for non-SVG RenderObjects in willBeRemovedFromTree() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Minor cleanup 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 20 matching lines...) Expand all
31 class RenderImageResource; 31 class RenderImageResource;
32 class SVGImageElement; 32 class SVGImageElement;
33 33
34 class RenderSVGImage FINAL : public RenderSVGModelObject { 34 class RenderSVGImage FINAL : public RenderSVGModelObject {
35 public: 35 public:
36 explicit RenderSVGImage(SVGImageElement*); 36 explicit RenderSVGImage(SVGImageElement*);
37 virtual ~RenderSVGImage(); 37 virtual ~RenderSVGImage();
38 38
39 bool updateImageViewport(); 39 bool updateImageViewport();
40 virtual void setNeedsBoundariesUpdate() { m_needsBoundariesUpdate = true; } 40 virtual void setNeedsBoundariesUpdate() { m_needsBoundariesUpdate = true; }
41 virtual bool needsBoundariesUpdate() OVERRIDE { return m_needsBoundariesUpda te; }
42 virtual void setNeedsTransformUpdate() { m_needsTransformUpdate = true; } 41 virtual void setNeedsTransformUpdate() { m_needsTransformUpdate = true; }
43 42
44 RenderImageResource* imageResource() { return m_imageResource.get(); } 43 RenderImageResource* imageResource() { return m_imageResource.get(); }
45 44
46 // Note: Assumes the PaintInfo context has had all local transforms applied. 45 // Note: Assumes the PaintInfo context has had all local transforms applied.
47 void paintForeground(PaintInfo&); 46 void paintForeground(PaintInfo&);
48 47
49 private: 48 private:
50 virtual const char* renderName() const { return "RenderSVGImage"; } 49 virtual const char* renderName() const OVERRIDE FINAL { return "RenderSVGIma ge"; }
51 virtual bool isSVGImage() const OVERRIDE { return true; } 50 virtual bool isSVGImage() const OVERRIDE FINAL { return true; }
52 51
53 virtual const AffineTransform& localToParentTransform() const { return m_loc alTransform; } 52 virtual const AffineTransform& localToParentTransform() const { return m_loc alTransform; }
54 53
55 virtual FloatRect objectBoundingBox() const { return m_objectBoundingBox; } 54 virtual FloatRect objectBoundingBox() const { return m_objectBoundingBox; }
56 virtual FloatRect strokeBoundingBox() const { return m_objectBoundingBox; } 55 virtual FloatRect strokeBoundingBox() const { return m_objectBoundingBox; }
57 virtual FloatRect repaintRectInLocalCoordinates() const { return m_repaintBo undingBox; } 56 virtual FloatRect repaintRectInLocalCoordinates() const { return m_repaintBo undingBox; }
58 57
59 virtual void addFocusRingRects(Vector<IntRect>&, const LayoutPoint& addition alOffset, const RenderLayerModelObject* paintContainer = 0) OVERRIDE; 58 virtual void addFocusRingRects(Vector<IntRect>&, const LayoutPoint& addition alOffset, const RenderLayerModelObject* paintContainer = 0) OVERRIDE;
60 59
61 virtual void imageChanged(WrappedImagePtr, const IntRect* = 0); 60 virtual void imageChanged(WrappedImagePtr, const IntRect* = 0);
(...skipping 15 matching lines...) Expand all
77 OwnPtr<RenderImageResource> m_imageResource; 76 OwnPtr<RenderImageResource> m_imageResource;
78 77
79 OwnPtr<ImageBuffer> m_bufferedForeground; 78 OwnPtr<ImageBuffer> m_bufferedForeground;
80 }; 79 };
81 80
82 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGImage, isSVGImage()); 81 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGImage, isSVGImage());
83 82
84 } // namespace WebCore 83 } // namespace WebCore
85 84
86 #endif // RenderSVGImage_h 85 #endif // RenderSVGImage_h
OLDNEW
« no previous file with comments | « Source/core/rendering/svg/RenderSVGGradientStop.h ('k') | Source/core/rendering/svg/RenderSVGInline.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698