Title: [124616] trunk/Source/WebCore
- Revision
- 124616
- Author
- [email protected]
- Date
- 2012-08-03 08:22:29 -0700 (Fri, 03 Aug 2012)
Log Message
Initialize the Event Names' string from read only memory
https://bugs.webkit.org/show_bug.cgi?id=92435
Patch by Benjamin Poulain <[email protected]> on 2012-08-03
Reviewed by Anders Carlsson.
Similarily to r123689, we can initialize the event names' string from memory without copying the data.
This saves us memory and initialization time.
* dom/EventNames.cpp:
(WebCore):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (124615 => 124616)
--- trunk/Source/WebCore/ChangeLog 2012-08-03 15:19:17 UTC (rev 124615)
+++ trunk/Source/WebCore/ChangeLog 2012-08-03 15:22:29 UTC (rev 124616)
@@ -1,3 +1,16 @@
+2012-08-03 Benjamin Poulain <[email protected]>
+
+ Initialize the Event Names' string from read only memory
+ https://bugs.webkit.org/show_bug.cgi?id=92435
+
+ Reviewed by Anders Carlsson.
+
+ Similarily to r123689, we can initialize the event names' string from memory without copying the data.
+ This saves us memory and initialization time.
+
+ * dom/EventNames.cpp:
+ (WebCore):
+
2012-08-03 Philippe Normand <[email protected]>
[GTK][jhbuild] Switch to GStreamer 0.11 build
Modified: trunk/Source/WebCore/dom/EventNames.cpp (124615 => 124616)
--- trunk/Source/WebCore/dom/EventNames.cpp 2012-08-03 15:19:17 UTC (rev 124615)
+++ trunk/Source/WebCore/dom/EventNames.cpp 2012-08-03 15:22:29 UTC (rev 124616)
@@ -24,10 +24,10 @@
namespace WebCore {
#define INITIALIZE_EVENT_NAME(name) \
- , name##Event(#name)
+ , name##Event(#name, AtomicString::ConstructFromLiteral)
#define INITIALIZE_EVENT_INTERFACE(name) \
- , interfaceFor##name(#name)
+ , interfaceFor##name(#name, AtomicString::ConstructFromLiteral)
EventNames::EventNames()
: dummy(0)
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes