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

Unified Diff: Source/core/rendering/ImageQualityController.h

Issue 899163003: Move rendering/RenderObject to layout/LayoutObject. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/rendering/FilterEffectRenderer.cpp ('k') | Source/core/rendering/ImageQualityController.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/ImageQualityController.h
diff --git a/Source/core/rendering/ImageQualityController.h b/Source/core/rendering/ImageQualityController.h
index cdcba61657b6f8a67555d5e01c2ac2f815b0ecd4..94bae0d3b8e4c43d856d1f66cf6c25554b540a32 100644
--- a/Source/core/rendering/ImageQualityController.h
+++ b/Source/core/rendering/ImageQualityController.h
@@ -31,7 +31,7 @@
#ifndef ImageQualityController_h
#define ImageQualityController_h
-#include "core/rendering/RenderObject.h"
+#include "core/layout/LayoutObject.h"
#include "platform/geometry/IntSize.h"
#include "platform/geometry/LayoutSize.h"
#include "platform/graphics/Image.h"
@@ -42,7 +42,7 @@
namespace blink {
typedef HashMap<const void*, LayoutSize> LayerSizeMap;
-typedef HashMap<RenderObject*, LayerSizeMap> ObjectLayerSizeMap;
+typedef HashMap<LayoutObject*, LayerSizeMap> ObjectLayerSizeMap;
class ImageQualityController final {
WTF_MAKE_NONCOPYABLE(ImageQualityController); WTF_MAKE_FAST_ALLOCATED;
@@ -51,21 +51,21 @@ public:
static ImageQualityController* imageQualityController();
- static void remove(RenderObject*);
+ static void remove(LayoutObject*);
- InterpolationQuality chooseInterpolationQuality(GraphicsContext*, RenderObject*, Image*, const void* layer, const LayoutSize&);
+ InterpolationQuality chooseInterpolationQuality(GraphicsContext*, LayoutObject*, Image*, const void* layer, const LayoutSize&);
// For testing.
- static bool has(RenderObject*);
+ static bool has(LayoutObject*);
// This is public for testing. Do not call this from other classes.
- void set(RenderObject*, LayerSizeMap* innerMap, const void* layer, const LayoutSize&);
+ void set(LayoutObject*, LayerSizeMap* innerMap, const void* layer, const LayoutSize&);
private:
ImageQualityController();
- bool shouldPaintAtLowQuality(GraphicsContext*, RenderObject*, Image*, const void* layer, const LayoutSize&);
- void removeLayer(RenderObject*, LayerSizeMap* innerMap, const void* layer);
- void objectDestroyed(RenderObject*);
+ bool shouldPaintAtLowQuality(GraphicsContext*, LayoutObject*, Image*, const void* layer, const LayoutSize&);
+ void removeLayer(LayoutObject*, LayerSizeMap* innerMap, const void* layer);
+ void objectDestroyed(LayoutObject*);
bool isEmpty() { return m_objectLayerSizeMap.isEmpty(); }
void highQualityRepaintTimerFired(Timer<ImageQualityController>*);
« no previous file with comments | « Source/core/rendering/FilterEffectRenderer.cpp ('k') | Source/core/rendering/ImageQualityController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698