Title: [103161] trunk/Source/WebCore
- Revision
- 103161
- Author
- kl...@webkit.org
- Date
- 2011-12-17 19:26:00 -0800 (Sat, 17 Dec 2011)
Log Message
CSSPrimitiveValue: Inline getIdent().
<http://webkit.org/b/74793>
Reviewed by Antti Koivisto.
Inline the trivial getIdent(), the same as its getFoo() siblings.
* css/CSSPrimitiveValue.cpp:
* css/CSSPrimitiveValue.h:
(WebCore::CSSPrimitiveValue::getIdent):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (103160 => 103161)
--- trunk/Source/WebCore/ChangeLog 2011-12-18 03:17:27 UTC (rev 103160)
+++ trunk/Source/WebCore/ChangeLog 2011-12-18 03:26:00 UTC (rev 103161)
@@ -1,5 +1,18 @@
2011-12-17 Andreas Kling <kl...@webkit.org>
+ CSSPrimitiveValue: Inline getIdent().
+ <http://webkit.org/b/74793>
+
+ Reviewed by Antti Koivisto.
+
+ Inline the trivial getIdent(), the same as its getFoo() siblings.
+
+ * css/CSSPrimitiveValue.cpp:
+ * css/CSSPrimitiveValue.h:
+ (WebCore::CSSPrimitiveValue::getIdent):
+
+2011-12-17 Andreas Kling <kl...@webkit.org>
+
CSSStyleSelector: Clean up matchRules().
<http://webkit.org/b/74794>
Modified: trunk/Source/WebCore/css/CSSPrimitiveValue.cpp (103160 => 103161)
--- trunk/Source/WebCore/css/CSSPrimitiveValue.cpp 2011-12-18 03:17:27 UTC (rev 103160)
+++ trunk/Source/WebCore/css/CSSPrimitiveValue.cpp 2011-12-18 03:26:00 UTC (rev 103161)
@@ -673,13 +673,6 @@
return m_value.pair;
}
-int CSSPrimitiveValue::getIdent() const
-{
- if (m_primitiveUnitType != CSS_IDENT)
- return 0;
- return m_value.ident;
-}
-
static String formatNumber(double number)
{
DecimalNumber decimal(number);
Modified: trunk/Source/WebCore/css/CSSPrimitiveValue.h (103160 => 103161)
--- trunk/Source/WebCore/css/CSSPrimitiveValue.h 2011-12-18 03:17:27 UTC (rev 103160)
+++ trunk/Source/WebCore/css/CSSPrimitiveValue.h 2011-12-18 03:26:00 UTC (rev 103161)
@@ -204,7 +204,8 @@
CSSWrapShape* getShapeValue() const { return m_primitiveUnitType != CSS_SHAPE ? 0 : m_value.shape; }
- int getIdent() const;
+ int getIdent() const { return m_primitiveUnitType == CSS_IDENT ? m_value.ident : 0; }
+
template<typename T> inline operator T() const; // Defined in CSSPrimitiveValueMappings.h
String customCssText() const;
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes