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

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

Issue 696123002: Revert of Use Shadow DOM to display fallback content for images (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 | « Source/core/rendering/RenderBox.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 5bd138d36a2af227bfb45d205ea31f6549a3263d..6c5c128f900015fe33ef1c18809117edbb836949 100644
--- a/Source/core/rendering/RenderImage.h
+++ b/Source/core/rendering/RenderImage.h
@@ -51,12 +51,18 @@
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*);
void setIsGeneratedContent(bool generated = true) { m_isGeneratedContent = generated; }
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; }
@@ -97,12 +103,14 @@
virtual bool boxShadowShouldBeAppliedToBackground(BackgroundBleedAvoidance, InlineFlowBox*) const override final;
- void repaintOrMarkForLayout(const IntRect* = 0);
+ IntSize imageSizeForError(ImageResource*) const;
+ void paintInvalidationOrMarkForLayout(bool imageSizeChanged, 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;
« no previous file with comments | « Source/core/rendering/RenderBox.cpp ('k') | Source/core/rendering/RenderImage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698