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

Unified Diff: third_party/WebKit/Source/core/layout/ImageQualityController.h

Issue 1512803004: Use refs for GraphicsContext (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ScrollbarTheme
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/layout/ImageQualityController.h
diff --git a/third_party/WebKit/Source/core/layout/ImageQualityController.h b/third_party/WebKit/Source/core/layout/ImageQualityController.h
index 1cbb2ef6e2963c5fe43abbe553f995c3daafac67..328750184526563b1bc0bbd0efdf3d8ae92fcd85 100644
--- a/third_party/WebKit/Source/core/layout/ImageQualityController.h
+++ b/third_party/WebKit/Source/core/layout/ImageQualityController.h
@@ -53,19 +53,19 @@ public:
static ImageQualityController* imageQualityController();
- static void remove(LayoutObject*);
+ static void remove(LayoutObject&);
- InterpolationQuality chooseInterpolationQuality(GraphicsContext*, const LayoutObject*, Image*, const void* layer, const LayoutSize&);
Xianzhu 2015/12/10 16:55:36 The GraphicsContext parameter was not used.
+ InterpolationQuality chooseInterpolationQuality(const LayoutObject&, Image*, const void* layer, const LayoutSize&);
private:
ImageQualityController();
- static bool has(const LayoutObject*);
- void set(const LayoutObject*, LayerSizeMap* innerMap, const void* layer, const LayoutSize&);
+ static bool has(const LayoutObject&);
+ void set(const LayoutObject&, LayerSizeMap* innerMap, const void* layer, const LayoutSize&);
- bool shouldPaintAtLowQuality(GraphicsContext*, const LayoutObject*, Image*, const void* layer, const LayoutSize&);
- void removeLayer(const LayoutObject*, LayerSizeMap* innerMap, const void* layer);
- void objectDestroyed(const LayoutObject*);
+ bool shouldPaintAtLowQuality(const LayoutObject&, Image*, const void* layer, const LayoutSize&);
+ void removeLayer(const LayoutObject&, LayerSizeMap* innerMap, const void* layer);
+ void objectDestroyed(const LayoutObject&);
bool isEmpty() { return m_objectLayerSizeMap.isEmpty(); }
void highQualityRepaintTimerFired(Timer<ImageQualityController>*);

Powered by Google App Engine
This is Rietveld 408576698