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

Side by Side Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp

Issue 1706083002: Split ImageResourceClient into ResourceClient and ImageResourceObserver [1/2] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 9 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 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 29 matching lines...) Expand all
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 LayoutSVGImage::LayoutSVGImage(SVGImageElement* impl) 44 LayoutSVGImage::LayoutSVGImage(SVGImageElement* impl)
45 : LayoutSVGModelObject(impl) 45 : LayoutSVGModelObject(impl)
46 , m_needsBoundariesUpdate(true) 46 , m_needsBoundariesUpdate(true)
47 , m_needsTransformUpdate(true) 47 , m_needsTransformUpdate(true)
48 , m_imageResource(LayoutImageResource::create()) 48 , m_imageResource(LayoutImageResource::create())
49 { 49 {
50 m_imageResource->initialize(this); 50 m_imageResource->initialize(this, nullptr);
51 } 51 }
52 52
53 LayoutSVGImage::~LayoutSVGImage() 53 LayoutSVGImage::~LayoutSVGImage()
54 { 54 {
55 } 55 }
56 56
57 void LayoutSVGImage::willBeDestroyed() 57 void LayoutSVGImage::willBeDestroyed()
58 { 58 {
59 ImageQualityController::remove(*this); 59 ImageQualityController::remove(*this);
60 m_imageResource->shutdown(); 60 m_imageResource->shutdown();
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 setShouldDoFullPaintInvalidation(); 146 setShouldDoFullPaintInvalidation();
147 } 147 }
148 148
149 void LayoutSVGImage::addOutlineRects(Vector<LayoutRect>& rects, const LayoutPoin t&, IncludeBlockVisualOverflowOrNot) const 149 void LayoutSVGImage::addOutlineRects(Vector<LayoutRect>& rects, const LayoutPoin t&, IncludeBlockVisualOverflowOrNot) const
150 { 150 {
151 // this is called from paint() after the localTransform has already been app lied 151 // this is called from paint() after the localTransform has already been app lied
152 rects.append(LayoutRect(paintInvalidationRectInLocalSVGCoordinates())); 152 rects.append(LayoutRect(paintInvalidationRectInLocalSVGCoordinates()));
153 } 153 }
154 154
155 } // namespace blink 155 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutObject.cpp ('k') | third_party/WebKit/Source/core/loader/ImageLoader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698