Title: [166585] trunk/Source/WebCore
- Revision
- 166585
- Author
- zandober...@gmail.com
- Date
- 2014-04-01 08:20:40 -0700 (Tue, 01 Apr 2014)
Log Message
Move the attributes HashMap out of the parseAttributes function
https://bugs.webkit.org/show_bug.cgi?id=131019
Reviewed by Andreas Kling.
* xml/parser/XMLDocumentParserLibxml2.cpp:
(WebCore::parseAttributes): Avoid copying the HashMap object that's being returned by
converting it to an xvalue through using std::move() in the return statement.
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (166584 => 166585)
--- trunk/Source/WebCore/ChangeLog 2014-04-01 15:13:40 UTC (rev 166584)
+++ trunk/Source/WebCore/ChangeLog 2014-04-01 15:20:40 UTC (rev 166585)
@@ -1,3 +1,14 @@
+2014-04-01 Zan Dobersek <zdober...@igalia.com>
+
+ Move the attributes HashMap out of the parseAttributes function
+ https://bugs.webkit.org/show_bug.cgi?id=131019
+
+ Reviewed by Andreas Kling.
+
+ * xml/parser/XMLDocumentParserLibxml2.cpp:
+ (WebCore::parseAttributes): Avoid copying the HashMap object that's being returned by
+ converting it to an xvalue through using std::move() in the return statement.
+
2014-04-01 Zalan Bujtas <za...@apple.com>
Subpixel rendering: Transition class Image (and its dependencies) from int to float to enable subpixel positioned/sized images.
Modified: trunk/Source/WebCore/xml/parser/XMLDocumentParserLibxml2.cpp (166584 => 166585)
--- trunk/Source/WebCore/xml/parser/XMLDocumentParserLibxml2.cpp 2014-04-01 15:13:40 UTC (rev 166584)
+++ trunk/Source/WebCore/xml/parser/XMLDocumentParserLibxml2.cpp 2014-04-01 15:20:40 UTC (rev 166585)
@@ -1544,7 +1544,7 @@
xmlParseChunk(parser->context(), reinterpret_cast<const char*>(StringView(parseString).upconvertedCharacters().get()), parseString.length() * sizeof(UChar), 1);
attrsOK = state.gotAttributes;
- return state.attributes;
+ return std::move(state.attributes);
}
}
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes