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

Unified Diff: third_party/WebKit/Source/core/html/HTMLImageElement.h

Issue 2627953003: Make `getComputedStyle` return the correct style for collapsed <img> elements. (Closed)
Patch Set: Rebase. Created 3 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
Index: third_party/WebKit/Source/core/html/HTMLImageElement.h
diff --git a/third_party/WebKit/Source/core/html/HTMLImageElement.h b/third_party/WebKit/Source/core/html/HTMLImageElement.h
index b831d14ff1e09f44543b7577b02c014ae1db739c..37bf7e4034697eb37bf8e706420fb3a765a5e852 100644
--- a/third_party/WebKit/Source/core/html/HTMLImageElement.h
+++ b/third_party/WebKit/Source/core/html/HTMLImageElement.h
@@ -114,6 +114,7 @@ class CORE_EXPORT HTMLImageElement final
virtual void ensureCollapsedOrFallbackContent();
virtual void ensureFallbackForGeneratedContent();
virtual void ensurePrimaryContent();
+ bool isCollapsed() const;
// CanvasImageSource implementation
PassRefPtr<Image> getSourceImageForCanvas(SourceImageStatus*,
@@ -187,7 +188,6 @@ class CORE_EXPORT HTMLImageElement final
void setLayoutDisposition(LayoutDisposition, bool forceReattach = false);
void attachLayoutTree(const AttachContext& = AttachContext()) override;
- bool layoutObjectIsNeeded(const ComputedStyle&) override;
LayoutObject* createLayoutObject(const ComputedStyle&) override;
bool canStartSelection() const override { return false; }

Powered by Google App Engine
This is Rietveld 408576698