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

Unified Diff: sky/engine/core/rendering/RenderImage.h

Issue 715963003: Remove alt text from images. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: minor improvement Created 6 years, 1 month 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 | « sky/engine/core/html/HTMLImageElement.cpp ('k') | sky/engine/core/rendering/RenderImage.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/rendering/RenderImage.h
diff --git a/sky/engine/core/rendering/RenderImage.h b/sky/engine/core/rendering/RenderImage.h
index ec3382273122e149586c21530a8a639ee9a780ec..70400bbf390e0257b2cbd478565c7977c4a6986f 100644
--- a/sky/engine/core/rendering/RenderImage.h
+++ b/sky/engine/core/rendering/RenderImage.h
@@ -44,14 +44,8 @@ public:
const RenderImageResource* imageResource() const { return m_imageResource.get(); }
ImageResource* cachedImage() const { return m_imageResource ? m_imageResource->cachedImage() : 0; }
- bool setImageSizeForAltText(ImageResource* newImage = 0);
-
- void updateAltText();
-
void highQualityRepaintTimerFired(Timer<RenderImage>*);
- String altText() const { return m_altText; }
-
inline void setImageDevicePixelRatio(float factor) { m_imageDevicePixelRatio = factor; }
float imageDevicePixelRatio() const { return m_imageDevicePixelRatio; }
@@ -89,16 +83,13 @@ private:
virtual bool boxShadowShouldBeAppliedToBackground(BackgroundBleedAvoidance, InlineFlowBox*) const override final;
- IntSize imageSizeForError(ImageResource*) const;
- void paintInvalidationOrMarkForLayout(bool imageSizeChanged, const IntRect* = 0);
+ void paintInvalidationOrMarkForLayout(const IntRect* = 0);
void updateIntrinsicSizeIfNeeded(const LayoutSize&);
// 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;
float m_imageDevicePixelRatio;
« no previous file with comments | « sky/engine/core/html/HTMLImageElement.cpp ('k') | sky/engine/core/rendering/RenderImage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698