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

Unified Diff: Source/core/html/HTMLSourceElement.cpp

Issue 267693002: Add picture related attributes to Source (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 6 years, 7 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: Source/core/html/HTMLSourceElement.cpp
diff --git a/Source/core/html/HTMLSourceElement.cpp b/Source/core/html/HTMLSourceElement.cpp
index 6c613b47a50fc021c7edb8c8a910331f38f80fc6..8d0b6609b9ee16e0527d6a9fd7b11010eb5c08dd 100644
--- a/Source/core/html/HTMLSourceElement.cpp
+++ b/Source/core/html/HTMLSourceElement.cpp
@@ -89,6 +89,21 @@ const AtomicString& HTMLSourceElement::type() const
return getAttribute(typeAttr);
}
+const AtomicString& HTMLSourceElement::media() const
+{
+ return getAttribute(mediaAttr);
+}
+
+const AtomicString& HTMLSourceElement::srcset() const
+{
+ return getAttribute(srcsetAttr);
+}
+
+const AtomicString& HTMLSourceElement::sizes() const
+{
+ return getAttribute(sizesAttr);
+}
+
void HTMLSourceElement::setType(const AtomicString& type)
{
setAttribute(typeAttr, type);

Powered by Google App Engine
This is Rietveld 408576698