2011-04-25 Adam Klein <adamk@chromium.org>
authoradamk@chromium.org <adamk@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 25 Apr 2011 23:55:41 +0000 (23:55 +0000)
committeradamk@chromium.org <adamk@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 25 Apr 2011 23:55:41 +0000 (23:55 +0000)
        Unreviewed, rolling out r84844.
        http://trac.webkit.org/changeset/84844
        https://bugs.webkit.org/show_bug.cgi?id=59395

        Checked in too much.

        * rendering/style/SVGRenderStyleDefs.cpp:
        (WebCore::StyleShadowSVGData::StyleShadowSVGData):
        * svg/SVGDocumentExtensions.cpp:
        (WebCore::SVGDocumentExtensions::removePendingResource):
        * svg/SVGSVGElement.cpp:
        (WebCore::SVGSVGElement::SVGSVGElement):
        * svg/SVGStyledTransformableElement.cpp:
        (WebCore::SVGStyledTransformableElement::supplementalTransform):
        * svg/SVGTextElement.cpp:
        (WebCore::SVGTextElement::supplementalTransform):
        * svg/graphics/SVGImage.cpp:
        (WebCore::SVGImage::dataChanged):

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

Source/WebCore/ChangeLog
Source/WebCore/rendering/style/SVGRenderStyleDefs.cpp
Source/WebCore/svg/SVGDocumentExtensions.cpp
Source/WebCore/svg/SVGSVGElement.cpp
Source/WebCore/svg/SVGStyledTransformableElement.cpp
Source/WebCore/svg/SVGTextElement.cpp
Source/WebCore/svg/graphics/SVGImage.cpp

index cd70af5f6b1139ba01b917f5a426fdd90c662e53..71f5cf33a19122d3b959223e42ad42db707da36e 100644 (file)
@@ -1,3 +1,24 @@
+2011-04-25  Adam Klein  <adamk@chromium.org>
+
+        Unreviewed, rolling out r84844.
+        http://trac.webkit.org/changeset/84844
+        https://bugs.webkit.org/show_bug.cgi?id=59395
+
+        Checked in too much.
+
+        * rendering/style/SVGRenderStyleDefs.cpp:
+        (WebCore::StyleShadowSVGData::StyleShadowSVGData):
+        * svg/SVGDocumentExtensions.cpp:
+        (WebCore::SVGDocumentExtensions::removePendingResource):
+        * svg/SVGSVGElement.cpp:
+        (WebCore::SVGSVGElement::SVGSVGElement):
+        * svg/SVGStyledTransformableElement.cpp:
+        (WebCore::SVGStyledTransformableElement::supplementalTransform):
+        * svg/SVGTextElement.cpp:
+        (WebCore::SVGTextElement::supplementalTransform):
+        * svg/graphics/SVGImage.cpp:
+        (WebCore::SVGImage::dataChanged):
+
 2011-04-25  Adrienne Walker  <enne@google.com>
 
         Reviewed by David Levin.
index 2bb049915093b9ee0ac31ce54f93feabc8f84163..fb23e149e47ab83b24ad32ae42206edeb8d82400 100644 (file)
@@ -163,7 +163,7 @@ StyleShadowSVGData::StyleShadowSVGData()
 
 StyleShadowSVGData::StyleShadowSVGData(const StyleShadowSVGData& other)
     : RefCounted<StyleShadowSVGData>()
-    , shadow(other.shadow ? adoptPtr(new ShadowData(*other.shadow)) : PassOwnPtr<ShadowData>())
+    , shadow(other.shadow ? new ShadowData(*other.shadow) : 0)
 {
 }
 
index 5c9d68c194cf170d740b20ebcaf91d03824bddeb..f71ebcbc22dc887bcf5b5d5874b4679b8281d33b 100644 (file)
@@ -21,9 +21,6 @@
 
 #include "config.h"
 
-#define ADAMK
-#include "OwnPtr.h"
-#undef ADAMK
 #if ENABLE(SVG)
 #include "SVGDocumentExtensions.h"
 
@@ -243,7 +240,7 @@ PassOwnPtr<HashSet<RefPtr<SVGStyledElement> > > SVGDocumentExtensions::removePen
 {
     ASSERT(m_pendingResources.contains(id));
 
-    OwnPtr<SVGPendingElements> set(adoptPtr(m_pendingResources.get(id)));
+    OwnPtr<SVGPendingElements> set(m_pendingResources.get(id));
     m_pendingResources.remove(id);
     return set.release();
 }
index 8f86cde8a9801e30ae78c27ae9528eec4e49cd5c..0778bb70bdf646452b9dfd1f1f6ee3e567fcc11f 100644 (file)
@@ -71,6 +71,7 @@ inline SVGSVGElement::SVGSVGElement(const QualifiedName& tagName, Document* doc)
     , m_useCurrentView(false)
     , m_timeContainer(SMILTimeContainer::create(this))
     , m_scale(1)
+    , m_viewSpec(0)
     , m_containerSize(300, 150)
     , m_hasSetContainerSize(false)
 {
index d349d7c1bc9be805df2083fb58e52e40827b1ea8..1e32f9a9697bb3065a0c31af4dd0e6b9bb5f2808 100644 (file)
@@ -65,7 +65,7 @@ AffineTransform SVGStyledTransformableElement::animatedLocalTransform() const
 AffineTransform* SVGStyledTransformableElement::supplementalTransform()
 {
     if (!m_supplementalTransform)
-        m_supplementalTransform = adoptPtr(new AffineTransform);
+        m_supplementalTransform.set(new AffineTransform());
     return m_supplementalTransform.get();
 }
 
index 8bd439a4694dce3408680f08443ada5c772bee71..3bb9b5ee684d70a706be11e1179f5bb2aed1f29d 100644 (file)
@@ -97,7 +97,7 @@ AffineTransform SVGTextElement::animatedLocalTransform() const
 AffineTransform* SVGTextElement::supplementalTransform()
 {
     if (!m_supplementalTransform)
-        m_supplementalTransform = adoptPtr(new AffineTransform);
+        m_supplementalTransform.set(new AffineTransform());
     return m_supplementalTransform.get();
 }
 
index e7faf25ba07426f86d6c633332e190d03f774b2f..71806f3af2011ebb391e271096a7199efc8f1ea4 100644 (file)
@@ -268,7 +268,7 @@ bool SVGImage::dataChanged(bool allDataReceived)
         // This will become an issue when SVGImage will be able to load other
         // SVGImage objects, but we're safe now, because SVGImage can only be
         // loaded by a top-level document.
-        m_page = adoptPtr(new Page(pageClients));
+        m_page.set(new Page(pageClients));
         m_page->settings()->setMediaEnabled(false);
         m_page->settings()->setJavaScriptEnabled(false);
         m_page->settings()->setPluginsEnabled(false);