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; |