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

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

Issue 594043005: Move paint code from RenderImage/RenderVideo into ImagePainter/VideoPainter. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed comments. Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/paint/VideoPainter.cpp ('k') | Source/core/rendering/RenderImage.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderImage.h
diff --git a/Source/core/rendering/RenderImage.h b/Source/core/rendering/RenderImage.h
index 33adcf0adde82c3bdc3609b9b85c75bc784c940e..f1a26af446041d2f441710a202728f6cdc93e57b 100644
--- a/Source/core/rendering/RenderImage.h
+++ b/Source/core/rendering/RenderImage.h
@@ -35,6 +35,10 @@ class HTMLMapElement;
class RenderImage : public RenderReplaced {
public:
+ // These are the paddings to use when displaying either alt text or an image.
+ static const unsigned short paddingWidth = 4;
+ static const unsigned short paddingHeight = 4;
+
RenderImage(Element*);
virtual ~RenderImage();
virtual void destroy() OVERRIDE;
@@ -78,7 +82,6 @@ protected:
virtual void imageChanged(WrappedImagePtr, const IntRect* = 0) OVERRIDE;
- void paintIntoRect(GraphicsContext*, const LayoutRect&);
virtual void paint(PaintInfo&, const LayoutPoint&) OVERRIDE FINAL;
virtual void layout() OVERRIDE;
virtual bool updateImageLoadingPriorities() OVERRIDE FINAL;
@@ -107,8 +110,6 @@ private:
// Update the size of the image to be rendered. Object-fit may cause this to be different from the CSS box's content rect.
void updateInnerContentRect();
- void paintAreaElementFocusRing(PaintInfo&);
-
// Text to display as long as the image isn't available.
String m_altText;
OwnPtr<RenderImageResource> m_imageResource;
« no previous file with comments | « Source/core/paint/VideoPainter.cpp ('k') | Source/core/rendering/RenderImage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698