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

Side by Side Diff: Source/core/paint/ImagePainter.h

Issue 1334703002: NOT FOR LANDING Pass URL to Image::draw (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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/paint/BoxPainter.cpp ('k') | Source/core/paint/ImagePainter.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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ImagePainter_h 5 #ifndef ImagePainter_h
6 #define ImagePainter_h 6 #define ImagePainter_h
7 7
8 #include "platform/weborigin/KURL.h"
8 #include "wtf/Allocator.h" 9 #include "wtf/Allocator.h"
9 10
10 namespace blink { 11 namespace blink {
11 12
12 class GraphicsContext; 13 class GraphicsContext;
13 struct PaintInfo; 14 class LayoutImage;
14 class LayoutPoint; 15 class LayoutPoint;
15 class LayoutRect; 16 class LayoutRect;
16 class LayoutImage; 17 struct PaintInfo;
17 18
18 class ImagePainter { 19 class ImagePainter {
19 STACK_ALLOCATED(); 20 STACK_ALLOCATED();
20 public: 21 public:
21 ImagePainter(LayoutImage& layoutImage) : m_layoutImage(layoutImage) { } 22 ImagePainter(LayoutImage& layoutImage, const KURL& url) : m_layoutImage(layo utImage), m_url(url) { }
22 23
23 void paint(const PaintInfo&, const LayoutPoint& paintOffset); 24 void paint(const PaintInfo&, const LayoutPoint& paintOffset);
24 void paintReplaced(const PaintInfo&, const LayoutPoint& paintOffset); 25 void paintReplaced(const PaintInfo&, const LayoutPoint& paintOffset);
25 void paintIntoRect(GraphicsContext*, const LayoutRect&); 26 void paintIntoRect(GraphicsContext*, const LayoutRect&);
26 27
27 private: 28 private:
28 void paintAreaElementFocusRing(const PaintInfo&, const LayoutPoint& paintOff set); 29 void paintAreaElementFocusRing(const PaintInfo&, const LayoutPoint& paintOff set);
29 30
30 LayoutImage& m_layoutImage; 31 LayoutImage& m_layoutImage;
32 KURL m_url;
31 }; 33 };
32 34
33 } // namespace blink 35 } // namespace blink
34 36
35 #endif // ImagePainter_h 37 #endif // ImagePainter_h
OLDNEW
« no previous file with comments | « Source/core/paint/BoxPainter.cpp ('k') | Source/core/paint/ImagePainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698