Index: Source/core/html/HTMLLinkElement.h |
diff --git a/Source/core/html/HTMLLinkElement.h b/Source/core/html/HTMLLinkElement.h |
index a309741d438a92285273da75aeeb5a17810efa94..c06f4c46f56ccc7554a341871b71f163e5089dd4 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; |
CSSStyleSheet* sheet() const { return linkStyle() ? linkStyle()->sheet() : 0; } |
Document* import() const; |
@@ -161,6 +161,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; |
@@ -197,6 +201,7 @@ private: |
String m_type; |
String m_media; |
RefPtr<DOMSettableTokenList> m_sizes; |
+ Vector<IntSize> m_iconSizes; |
LinkRelAttribute m_relAttribute; |
bool m_createdByParser; |