Title: [102092] trunk/Source/WebCore
Revision
102092
Author
[email protected]
Date
2011-12-05 21:30:08 -0800 (Mon, 05 Dec 2011)

Log Message

https://bugs.webkit.org/show_bug.cgi?id=73683
Implement KeyframeValueList::operator=() and KeyframeValueList::swap().

Patch by Yong Li <[email protected]> on 2011-12-05
Reviewed by Darin Adler.

No new tests as no functional change.

* platform/graphics/GraphicsLayer.h:
(WebCore::KeyframeValueList::operator=): Added
(WebCore::KeyframeValueList::swap): Added

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (102091 => 102092)


--- trunk/Source/WebCore/ChangeLog	2011-12-06 05:05:06 UTC (rev 102091)
+++ trunk/Source/WebCore/ChangeLog	2011-12-06 05:30:08 UTC (rev 102092)
@@ -1,3 +1,16 @@
+2011-12-05  Yong Li  <[email protected]>
+
+        https://bugs.webkit.org/show_bug.cgi?id=73683
+        Implement KeyframeValueList::operator=() and KeyframeValueList::swap().
+
+        Reviewed by Darin Adler.
+
+        No new tests as no functional change.
+
+        * platform/graphics/GraphicsLayer.h: 
+        (WebCore::KeyframeValueList::operator=): Added
+        (WebCore::KeyframeValueList::swap): Added
+
 2011-12-05  Adrienne Walker  <[email protected]>
 
         [chromium] setNeedsCommit on non-composited host layers should trigger commit

Modified: trunk/Source/WebCore/platform/graphics/GraphicsLayer.h (102091 => 102092)


--- trunk/Source/WebCore/platform/graphics/GraphicsLayer.h	2011-12-06 05:05:06 UTC (rev 102091)
+++ trunk/Source/WebCore/platform/graphics/GraphicsLayer.h	2011-12-06 05:30:08 UTC (rev 102092)
@@ -170,7 +170,20 @@
     {
         deleteAllValues(m_values);
     }
-    
+
+    KeyframeValueList& operator=(const KeyframeValueList& other)
+    {
+        KeyframeValueList copy(other);
+        swap(copy);
+        return *this;
+    }
+
+    void swap(KeyframeValueList& other)
+    {
+        std::swap(m_property, other.m_property);
+        m_values.swap(other.m_values);
+    }
+
     AnimatedPropertyID property() const { return m_property; }
 
     size_t size() const { return m_values.size(); }
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to