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

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

Issue 481753002: Use Shadow DOM to display fallback content for images (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated 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
Index: Source/core/rendering/RenderImage.h
diff --git a/Source/core/rendering/RenderImage.h b/Source/core/rendering/RenderImage.h
index 8a12af1b94fd0443b39e73086a9491da2e0cf0b7..cb523d3b44a60d09e1197e4c48759729c98c994e 100644
--- a/Source/core/rendering/RenderImage.h
+++ b/Source/core/rendering/RenderImage.h
@@ -51,10 +51,6 @@ 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();
-
HTMLMapElement* imageMap() const;
void areaElementFocusChanged(HTMLAreaElement*);
@@ -62,8 +58,6 @@ public:
bool isGeneratedContent() const { return m_isGeneratedContent; }
- String altText() const { return m_altText; }
-
inline void setImageDevicePixelRatio(float factor) { m_imageDevicePixelRatio = factor; }
float imageDevicePixelRatio() const { return m_imageDevicePixelRatio; }
@@ -105,14 +99,12 @@ private:
virtual bool boxShadowShouldBeAppliedToBackground(BackgroundBleedAvoidance, InlineFlowBox*) const override final;
- IntSize imageSizeForError(ImageResource*) const;
- void paintInvalidationOrMarkForLayout(bool imageSizeChanged, const IntRect* = 0);
+ void repaintOrMarkForLayout(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();
// Text to display as long as the image isn't available.
- String m_altText;
OwnPtr<RenderImageResource> m_imageResource;
bool m_didIncrementVisuallyNonEmptyPixelCount;
bool m_isGeneratedContent;

Powered by Google App Engine
This is Rietveld 408576698