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

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

Issue 923953002: Move rendering/RenderImage* to layout/LayoutImage* (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 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/RenderSVGImage.h ('k') | Source/core/svg/SVGImageElement.cpp » ('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) 2006 Alexander Kellett <lypanov@kde.org> 2 * Copyright (C) 2006 Alexander Kellett <lypanov@kde.org>
3 * Copyright (C) 2006 Apple Computer, Inc. 3 * Copyright (C) 2006 Apple Computer, Inc.
4 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> 4 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org>
5 * Copyright (C) 2007, 2008, 2009 Rob Buis <buis@kde.org> 5 * Copyright (C) 2007, 2008, 2009 Rob Buis <buis@kde.org>
6 * Copyright (C) 2009 Google, Inc. 6 * Copyright (C) 2009 Google, Inc.
7 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> 7 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org>
8 * Copyright (C) 2010 Patrick Gansterer <paroga@paroga.com> 8 * Copyright (C) 2010 Patrick Gansterer <paroga@paroga.com>
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 10 matching lines...) Expand all
21 * along with this library; see the file COPYING.LIB. If not, write to 21 * along with this library; see the file COPYING.LIB. If not, write to
22 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 22 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
23 * Boston, MA 02110-1301, USA. 23 * Boston, MA 02110-1301, USA.
24 */ 24 */
25 25
26 #include "config.h" 26 #include "config.h"
27 27
28 #include "core/rendering/svg/RenderSVGImage.h" 28 #include "core/rendering/svg/RenderSVGImage.h"
29 29
30 #include "core/layout/ImageQualityController.h" 30 #include "core/layout/ImageQualityController.h"
31 #include "core/layout/LayoutImageResource.h"
31 #include "core/layout/PointerEventsHitRules.h" 32 #include "core/layout/PointerEventsHitRules.h"
32 #include "core/layout/svg/LayoutSVGResourceContainer.h" 33 #include "core/layout/svg/LayoutSVGResourceContainer.h"
33 #include "core/layout/svg/SVGLayoutSupport.h" 34 #include "core/layout/svg/SVGLayoutSupport.h"
34 #include "core/layout/svg/SVGResources.h" 35 #include "core/layout/svg/SVGResources.h"
35 #include "core/layout/svg/SVGResourcesCache.h" 36 #include "core/layout/svg/SVGResourcesCache.h"
36 #include "core/paint/SVGImagePainter.h" 37 #include "core/paint/SVGImagePainter.h"
37 #include "core/rendering/RenderImageResource.h"
38 #include "core/svg/SVGImageElement.h" 38 #include "core/svg/SVGImageElement.h"
39 #include "platform/LengthFunctions.h" 39 #include "platform/LengthFunctions.h"
40 #include "third_party/skia/include/core/SkPicture.h" 40 #include "third_party/skia/include/core/SkPicture.h"
41 41
42 namespace blink { 42 namespace blink {
43 43
44 RenderSVGImage::RenderSVGImage(SVGImageElement* impl) 44 RenderSVGImage::RenderSVGImage(SVGImageElement* impl)
45 : RenderSVGModelObject(impl) 45 : RenderSVGModelObject(impl)
46 , m_needsBoundariesUpdate(true) 46 , m_needsBoundariesUpdate(true)
47 , m_needsTransformUpdate(true) 47 , m_needsTransformUpdate(true)
48 , m_imageResource(RenderImageResource::create()) 48 , m_imageResource(LayoutImageResource::create())
49 { 49 {
50 m_imageResource->initialize(this); 50 m_imageResource->initialize(this);
51 } 51 }
52 52
53 RenderSVGImage::~RenderSVGImage() 53 RenderSVGImage::~RenderSVGImage()
54 { 54 {
55 } 55 }
56 56
57 void RenderSVGImage::destroy() 57 void RenderSVGImage::destroy()
58 { 58 {
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 193
194 void RenderSVGImage::addFocusRingRects(Vector<LayoutRect>& rects, const LayoutPo int&) const 194 void RenderSVGImage::addFocusRingRects(Vector<LayoutRect>& rects, const LayoutPo int&) const
195 { 195 {
196 // this is called from paint() after the localTransform has already been app lied 196 // this is called from paint() after the localTransform has already been app lied
197 LayoutRect contentRect = LayoutRect(paintInvalidationRectInLocalCoordinates( )); 197 LayoutRect contentRect = LayoutRect(paintInvalidationRectInLocalCoordinates( ));
198 if (!contentRect.isEmpty()) 198 if (!contentRect.isEmpty())
199 rects.append(contentRect); 199 rects.append(contentRect);
200 } 200 }
201 201
202 } // namespace blink 202 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/rendering/svg/RenderSVGImage.h ('k') | Source/core/svg/SVGImageElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698