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

Unified Diff: Source/core/html/HTMLLinkElement.h

Issue 196743002: Parse the link element's size attribute (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix the space Created 6 years, 9 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
« no previous file with comments | « Source/core/dom/IconURL.cpp ('k') | Source/core/html/HTMLLinkElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLLinkElement.h
diff --git a/Source/core/html/HTMLLinkElement.h b/Source/core/html/HTMLLinkElement.h
index 8508abd87859dd7fb6ec5fe4486ef293a032010f..e8a2c5d2a7b9f7520c5705f2d3cc9516acd07f7c 100644
--- a/Source/core/html/HTMLLinkElement.h
+++ b/Source/core/html/HTMLLinkElement.h
@@ -133,8 +133,8 @@ public:
IconType iconType() const;
- // the icon size string as parsed from the HTML attribute
- const AtomicString& iconSizes() const;
+ // the icon sizes as parsed from the HTML attribute
+ const Vector<IntSize>& iconSizes() const;
bool async() const;
@@ -163,6 +163,10 @@ public:
bool shouldProcessStyle() { return linkResourceToProcess() && linkStyle(); }
bool isCreatedByParser() const { return m_createdByParser; }
+ // Parse the icon size attribute into |iconSizes|, make this method public
+ // visible for testing purpose.
+ static void parseSizesAttribute(const AtomicString& value, Vector<IntSize>& iconSizes);
+
private:
virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERRIDE;
@@ -199,6 +203,7 @@ private:
String m_type;
String m_media;
RefPtr<DOMSettableTokenList> m_sizes;
+ Vector<IntSize> m_iconSizes;
LinkRelAttribute m_relAttribute;
bool m_createdByParser;
« no previous file with comments | « Source/core/dom/IconURL.cpp ('k') | Source/core/html/HTMLLinkElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698