Build fix to my previous checkin, for Windows Chromium
authorsnej@chromium.org <snej@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 18 Nov 2009 22:08:13 +0000 (22:08 +0000)
committersnej@chromium.org <snej@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 18 Nov 2009 22:08:13 +0000 (22:08 +0000)
* svg/SVGAnimatedProperty.h:
(WebCore::PropertySynchronizer::synchronize): Fix implicit-conversion error on AtomicString.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51135 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/svg/SVGAnimatedProperty.h

index 88d3fc51a844d26b8ab70b56c30121b1eb1dbc80..5c874fcfe8057f6405d168f15d6dbc84f9b6a6d0 100644 (file)
@@ -1,3 +1,10 @@
+2009-11-18  Jens Alfke  <snej@chromium.org>
+
+        Build fix to my previous checkin, for Windows Chromium
+
+        * svg/SVGAnimatedProperty.h:
+        (WebCore::PropertySynchronizer::synchronize): Fix implicit-conversion error on AtomicString.
+
 2009-11-18  Joseph Pecoraro  <joepeck@webkit.org>
 
         Reviewed by Pavel Feldman.
index 5ae677fb2d65183c772c9ed5e5ceff57e73d1aba..984046fbe3c59878f7d95be6633c821ceb3b1031 100644 (file)
@@ -474,7 +474,7 @@ namespace WebCore {
     struct PropertySynchronizer<OwnerElement, DecoratedType, true> : Noncopyable {
         static void synchronize(const OwnerElement* ownerElement, const QualifiedName& attributeName, DecoratedType baseValue)
         {
-            String value(SVGAnimatedTypeValue<DecoratedType>::toString(baseValue));
+            AtomicString value(SVGAnimatedTypeValue<DecoratedType>::toString(baseValue));
 
             NamedNodeMap* namedAttrMap = ownerElement->attributes(false); 
             Attribute* old = namedAttrMap->getAttributeItem(attributeName);
@@ -483,7 +483,7 @@ namespace WebCore {
             else if (!old && !value.isNull()) 
                 namedAttrMap->addAttribute(const_cast<OwnerElement*>(ownerElement)->createAttribute(attributeName, value));
             else if (old && !value.isNull()) 
-                old->setValue(AtomicString(value)); 
+                old->setValue(value); 
         }
     };