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

Unified Diff: sky/engine/core/html/HTMLImageElement.h

Issue 706093002: Remove <picture> and <source>. (Closed) Base URL: git@github.com:domokit/mojo.git@master
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
Index: sky/engine/core/html/HTMLImageElement.h
diff --git a/sky/engine/core/html/HTMLImageElement.h b/sky/engine/core/html/HTMLImageElement.h
index 5c22dc3415639be6c92147984fa990daeb9d03f3..f664042925c0ed17d03c39743b6b0deb8f24dd32 100644
--- a/sky/engine/core/html/HTMLImageElement.h
+++ b/sky/engine/core/html/HTMLImageElement.h
@@ -90,8 +90,6 @@ public:
virtual FloatSize defaultDestinationSize() const override;
virtual const KURL& sourceURL() const override;
- // public so that HTMLPictureElement can call this as well.
- void selectSourceURL(ImageLoader::UpdateFromElementBehavior);
protected:
explicit HTMLImageElement(Document&, bool createdByParser = false);
@@ -100,6 +98,8 @@ protected:
private:
virtual void parseAttribute(const QualifiedName&, const AtomicString&) override;
+ void selectSourceURL(ImageLoader::UpdateFromElementBehavior);
+
virtual void attach(const AttachContext& = AttachContext()) override;
virtual RenderObject* createRenderer(RenderStyle*) override;
@@ -111,7 +111,6 @@ private:
virtual void removedFrom(ContainerNode*) override;
virtual Image* imageContents() override;
- ImageCandidate findBestFitImageFromPictureParent();
void setBestFitURLAndDPRFromImageCandidate(const ImageCandidate&);
HTMLImageLoader& imageLoader() const { return *m_imageLoader; }
void notifyViewportChanged();

Powered by Google App Engine
This is Rietveld 408576698