Title: [208710] trunk/Source/WebCore
Revision
208710
Author
[email protected]
Date
2016-11-14 14:20:59 -0800 (Mon, 14 Nov 2016)

Log Message

Inline QualifiedName::toString() method
https://bugs.webkit.org/show_bug.cgi?id=164726

Reviewed by Ryosuke Niwa.

Inline QualifiedName::toString() method to limit performance impact of r208674.

* dom/QualifiedName.cpp:
(WebCore::QualifiedName::toString): Deleted.
* dom/QualifiedName.h:
(WebCore::QualifiedName::toString):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (208709 => 208710)


--- trunk/Source/WebCore/ChangeLog	2016-11-14 22:18:14 UTC (rev 208709)
+++ trunk/Source/WebCore/ChangeLog	2016-11-14 22:20:59 UTC (rev 208710)
@@ -1,3 +1,17 @@
+2016-11-14  Chris Dumez  <[email protected]>
+
+        Inline QualifiedName::toString() method
+        https://bugs.webkit.org/show_bug.cgi?id=164726
+
+        Reviewed by Ryosuke Niwa.
+
+        Inline QualifiedName::toString() method to limit performance impact of r208674.
+
+        * dom/QualifiedName.cpp:
+        (WebCore::QualifiedName::toString): Deleted.
+        * dom/QualifiedName.h:
+        (WebCore::QualifiedName::toString):
+
 2016-11-14  Dave Hyatt  <[email protected]>
 
         [CSS Parser] Support the font-synthesis property

Modified: trunk/Source/WebCore/dom/QualifiedName.cpp (208709 => 208710)


--- trunk/Source/WebCore/dom/QualifiedName.cpp	2016-11-14 22:18:14 UTC (rev 208709)
+++ trunk/Source/WebCore/dom/QualifiedName.cpp	2016-11-14 22:20:59 UTC (rev 208710)
@@ -90,14 +90,6 @@
     qualifiedNameCache().remove(this);
 }
 
-String QualifiedName::toString() const
-{
-    if (!hasPrefix())
-        return localName();
-
-    return prefix().string() + ':' + localName().string();
-}
-
 // Global init routines
 DEFINE_GLOBAL(QualifiedName, anyName, nullAtom, starAtom, starAtom)
 

Modified: trunk/Source/WebCore/dom/QualifiedName.h (208709 => 208710)


--- trunk/Source/WebCore/dom/QualifiedName.h	2016-11-14 22:18:14 UTC (rev 208709)
+++ trunk/Source/WebCore/dom/QualifiedName.h	2016-11-14 22:20:59 UTC (rev 208710)
@@ -143,6 +143,14 @@
 void createQualifiedName(void* targetAddress, StringImpl* name);
 void createQualifiedName(void* targetAddress, StringImpl* name, const AtomicString& nameNamespace);
 
+inline String QualifiedName::toString() const
+{
+    if (!hasPrefix())
+        return localName();
+
+    return prefix().string() + ':' + localName().string();
+}
+
 } // namespace WebCore
 
 namespace WTF {
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to