[SCM] WebKit Debian packaging branch, webkit-1.3, updated. upstream/1.3.7-4207-g178b198

aroben at apple.com aroben at apple.com
Sun Feb 20 23:27:38 UTC 2011


The following commit has been merged in the webkit-1.3 branch:
commit bc7c2770540d60657f4007d802ebb15a232dc699
Author: aroben at apple.com <aroben at apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Thu Jan 20 17:12:56 2011 +0000

    Remove WKCACFContextFlusher
    
    It wasn't doing anything.
    
    Fixes <http://webkit.org/b/52752> WKCACFContextFlusher is unused
    
    Reviewed by Simon Fraser.
    
    * WebCore.vcproj/WebCore.vcproj: Removed WKCACFContextFlusher. Also let VS have its way with
    the file.
    
    * platform/graphics/win/WKCACFContextFlusher.cpp: Removed.
    * platform/graphics/win/WKCACFContextFlusher.h: Removed.
    
    * platform/graphics/win/WKCACFLayerRenderer.cpp:
    (WebCore::WKCACFLayerRenderer::~WKCACFLayerRenderer):
    (WebCore::WKCACFLayerRenderer::layerTreeDidChange):
    Stop telling WKCACFContextFlusher about our context, since it never did anything with it.
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76258 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/Source/WebCore/ChangeLog b/Source/WebCore/ChangeLog
index 927322d..35fb363 100644
--- a/Source/WebCore/ChangeLog
+++ b/Source/WebCore/ChangeLog
@@ -1,5 +1,26 @@
 2011-01-19  Adam Roben  <aroben at apple.com>
 
+        Remove WKCACFContextFlusher
+
+        It wasn't doing anything.
+
+        Fixes <http://webkit.org/b/52752> WKCACFContextFlusher is unused
+
+        Reviewed by Simon Fraser.
+
+        * WebCore.vcproj/WebCore.vcproj: Removed WKCACFContextFlusher. Also let VS have its way with
+        the file.
+
+        * platform/graphics/win/WKCACFContextFlusher.cpp: Removed.
+        * platform/graphics/win/WKCACFContextFlusher.h: Removed.
+
+        * platform/graphics/win/WKCACFLayerRenderer.cpp:
+        (WebCore::WKCACFLayerRenderer::~WKCACFLayerRenderer):
+        (WebCore::WKCACFLayerRenderer::layerTreeDidChange):
+        Stop telling WKCACFContextFlusher about our context, since it never did anything with it.
+
+2011-01-19  Adam Roben  <aroben at apple.com>
+
         Only flush our own context when we get resized
 
         Fixes <http://webkit.org/b/52751> All WKCACFContexts with uncommitted
diff --git a/Source/WebCore/WebCore.vcproj/WebCore.vcproj b/Source/WebCore/WebCore.vcproj/WebCore.vcproj
index e1a13a5..5c30699 100755
--- a/Source/WebCore/WebCore.vcproj/WebCore.vcproj
+++ b/Source/WebCore/WebCore.vcproj/WebCore.vcproj
@@ -558,6 +558,10 @@
 				>
 			</File>
 			<File
+				RelativePath="$(ConfigurationBuildDir)\obj\$(ProjectName)\DerivedSources\InjectedScriptSource.h"
+				>
+			</File>
+			<File
 				RelativePath="$(ConfigurationBuildDir)\obj\$(ProjectName)\DerivedSources\InspectorBackendDispatcher.cpp"
 				>
 			</File>
@@ -574,10 +578,6 @@
 				>
 			</File>
 			<File
-				RelativePath="$(ConfigurationBuildDir)\obj\$(ProjectName)\DerivedSources\InjectedScriptSource.h"
-				>
-			</File>
-			<File
 				RelativePath="$(ConfigurationBuildDir)\obj\WebCore\DerivedSources\JSAbstractWorker.cpp"
 				>
 				<FileConfiguration
@@ -24898,10 +24898,6 @@
 			Name="loader"
 			>
 			<File
-				RelativePath="..\loader\ResourceLoadScheduler.h"
-				>
-			</File>
-			<File
 				RelativePath="..\loader\CrossOriginAccessControl.cpp"
 				>
 			</File>
@@ -25130,6 +25126,10 @@
 				>
 			</File>
 			<File
+				RelativePath="..\loader\ResourceLoadScheduler.h"
+				>
+			</File>
+			<File
 				RelativePath="..\loader\SinkDocument.cpp"
 				>
 			</File>
@@ -25477,7 +25477,7 @@
 				RelativePath="..\platform\ContentType.h"
 				>
 			</File>
-            <File
+			<File
 				RelativePath="..\platform\ContextMenu.cpp"
 				>
 			</File>
@@ -25485,7 +25485,7 @@
 				RelativePath="..\platform\ContextMenu.h"
 				>
 			</File>
-            <File
+			<File
 				RelativePath="..\platform\ContextMenuItem.cpp"
 				>
 			</File>
@@ -27396,46 +27396,6 @@
 						>
 					</File>
 					<File
-						RelativePath="..\platform\graphics\win\WKCACFContextFlusher.cpp"
-						>
-						<FileConfiguration
-							Name="Debug_Cairo_CFLite|Win32"
-							ExcludedFromBuild="true"
-							>
-							<Tool
-								Name="VCCLCompilerTool"
-							/>
-						</FileConfiguration>
-						<FileConfiguration
-							Name="Release_Cairo_CFLite|Win32"
-							ExcludedFromBuild="true"
-							>
-							<Tool
-								Name="VCCLCompilerTool"
-							/>
-						</FileConfiguration>
-					</File>
-					<File
-						RelativePath="..\platform\graphics\win\WKCACFContextFlusher.h"
-						>
-						<FileConfiguration
-							Name="Debug_Cairo_CFLite|Win32"
-							ExcludedFromBuild="true"
-							>
-							<Tool
-								Name="VCCustomBuildTool"
-							/>
-						</FileConfiguration>
-						<FileConfiguration
-							Name="Release_Cairo_CFLite|Win32"
-							ExcludedFromBuild="true"
-							>
-							<Tool
-								Name="VCCustomBuildTool"
-							/>
-						</FileConfiguration>
-					</File>
-					<File
 						RelativePath="..\platform\graphics\win\WKCACFLayerRenderer.cpp"
 						>
 						<FileConfiguration
@@ -28952,7 +28912,7 @@
 						</File>
 					</Filter>
 				</Filter>
-            </Filter>
+			</Filter>
 			<Filter
 				Name="network"
 				>
@@ -38528,88 +38488,88 @@
 				>
 			</File>
 			<Filter
-			    Name="mathml"
-			    >
-			    <File
-				    RelativePath="..\rendering\mathml\RenderMathMLBlock.cpp"
-				    >
-			    </File>
-			    <File
-				    RelativePath="..\rendering\mathml\RenderMathMLBlock.h"
-				    >
-			    </File>
-			    <File
-				    RelativePath="..\rendering\mathml\RenderMathMLFenced.cpp"
-				    >
-			    </File>
-			    <File
-				    RelativePath="..\rendering\mathml\RenderMathMLFenced.h"
-				    >
-			    </File>
-			    <File
-				    RelativePath="..\rendering\mathml\RenderMathMLFraction.cpp"
-				    >
-			    </File>
-			    <File
-				    RelativePath="..\rendering\mathml\RenderMathMLFraction.h"
-				    >
-			    </File>
-			    <File
-				    RelativePath="..\rendering\mathml\RenderMathMLMath.cpp"
-				    >
-			    </File>
-			    <File
-				    RelativePath="..\rendering\mathml\RenderMathMLMath.h"
-				    >
-			    </File>
-			    <File
-				    RelativePath="..\rendering\mathml\RenderMathMLOperator.cpp"
-				    >
-			    </File>
-			    <File
-				    RelativePath="..\rendering\mathml\RenderMathMLOperator.h"
-				    >
-			    </File>
-			    <File
-				    RelativePath="..\rendering\mathml\RenderMathMLRoot.cpp"
-				    >
-			    </File>
-			    <File
-				    RelativePath="..\rendering\mathml\RenderMathMLRoot.h"
-				    >
-			    </File>
-			    <File
-				    RelativePath="..\rendering\mathml\RenderMathMLRow.cpp"
-				    >
-			    </File>
-			    <File
-				    RelativePath="..\rendering\mathml\RenderMathMLRow.h"
-				    >
-			    </File>
-			    <File
-				    RelativePath="..\rendering\mathml\RenderMathMLSquareRoot.cpp"
-				    >
-			    </File>
-			    <File
-				    RelativePath="..\rendering\mathml\RenderMathMLSquareRoot.h"
-				    >
-			    </File>
-			    <File
-				    RelativePath="..\rendering\mathml\RenderMathMLSubSup.cpp"
-				    >
-			    </File>
-			    <File
-				    RelativePath="..\rendering\mathml\RenderMathMLSubSup.h"
-				    >
-			    </File>
-			    <File
-				    RelativePath="..\rendering\mathml\RenderMathMLUnderOver.cpp"
-				    >
-			    </File>
-			    <File
-				    RelativePath="..\rendering\mathml\RenderMathMLUnderOver.h"
-				    >
-			    </File>
+				Name="mathml"
+				>
+				<File
+					RelativePath="..\rendering\mathml\RenderMathMLBlock.cpp"
+					>
+				</File>
+				<File
+					RelativePath="..\rendering\mathml\RenderMathMLBlock.h"
+					>
+				</File>
+				<File
+					RelativePath="..\rendering\mathml\RenderMathMLFenced.cpp"
+					>
+				</File>
+				<File
+					RelativePath="..\rendering\mathml\RenderMathMLFenced.h"
+					>
+				</File>
+				<File
+					RelativePath="..\rendering\mathml\RenderMathMLFraction.cpp"
+					>
+				</File>
+				<File
+					RelativePath="..\rendering\mathml\RenderMathMLFraction.h"
+					>
+				</File>
+				<File
+					RelativePath="..\rendering\mathml\RenderMathMLMath.cpp"
+					>
+				</File>
+				<File
+					RelativePath="..\rendering\mathml\RenderMathMLMath.h"
+					>
+				</File>
+				<File
+					RelativePath="..\rendering\mathml\RenderMathMLOperator.cpp"
+					>
+				</File>
+				<File
+					RelativePath="..\rendering\mathml\RenderMathMLOperator.h"
+					>
+				</File>
+				<File
+					RelativePath="..\rendering\mathml\RenderMathMLRoot.cpp"
+					>
+				</File>
+				<File
+					RelativePath="..\rendering\mathml\RenderMathMLRoot.h"
+					>
+				</File>
+				<File
+					RelativePath="..\rendering\mathml\RenderMathMLRow.cpp"
+					>
+				</File>
+				<File
+					RelativePath="..\rendering\mathml\RenderMathMLRow.h"
+					>
+				</File>
+				<File
+					RelativePath="..\rendering\mathml\RenderMathMLSquareRoot.cpp"
+					>
+				</File>
+				<File
+					RelativePath="..\rendering\mathml\RenderMathMLSquareRoot.h"
+					>
+				</File>
+				<File
+					RelativePath="..\rendering\mathml\RenderMathMLSubSup.cpp"
+					>
+				</File>
+				<File
+					RelativePath="..\rendering\mathml\RenderMathMLSubSup.h"
+					>
+				</File>
+				<File
+					RelativePath="..\rendering\mathml\RenderMathMLUnderOver.cpp"
+					>
+				</File>
+				<File
+					RelativePath="..\rendering\mathml\RenderMathMLUnderOver.h"
+					>
+				</File>
 			</Filter>
 			<Filter
 				Name="style"
@@ -43697,7 +43657,7 @@
 					/>
 				</FileConfiguration>
 				<FileConfiguration
-					Name="Debug_Cairo_CFLite|Win32"
+					Name="Debug_All|Win32"
 					ExcludedFromBuild="true"
 					>
 					<Tool
@@ -43705,7 +43665,7 @@
 					/>
 				</FileConfiguration>
 				<FileConfiguration
-					Name="Release_Cairo_CFLite|Win32"
+					Name="Debug_Cairo_CFLite|Win32"
 					ExcludedFromBuild="true"
 					>
 					<Tool
@@ -43713,7 +43673,7 @@
 					/>
 				</FileConfiguration>
 				<FileConfiguration
-					Name="Debug_All|Win32"
+					Name="Release_Cairo_CFLite|Win32"
 					ExcludedFromBuild="true"
 					>
 					<Tool
@@ -43721,7 +43681,7 @@
 					/>
 				</FileConfiguration>
 				<FileConfiguration
-					Name="Release_LTCG|Win32"
+					Name="Debug_All|Win32"
 					ExcludedFromBuild="true"
 					>
 					<Tool
@@ -43734,7 +43694,7 @@
 				>
 			</File>
 			<File
-				RelativePath="..\dom\EventTarget.cpp"
+				RelativePath="..\dom\EventQueue.cpp"
 				>
 				<FileConfiguration
 					Name="Debug|Win32"
@@ -43769,7 +43729,7 @@
 					/>
 				</FileConfiguration>
 				<FileConfiguration
-					Name="Debug_All|Win32"
+					Name="Release_LTCG|Win32"
 					ExcludedFromBuild="true"
 					>
 					<Tool
@@ -43789,8 +43749,8 @@
 				RelativePath="..\dom\EventTarget.h"
 				>
 			</File>
-		  <File
-				RelativePath="..\dom\EventQueue.cpp"
+			<File
+				RelativePath="..\dom\EventTarget.cpp"
 				>
 				<FileConfiguration
 					Name="Debug|Win32"
diff --git a/Source/WebCore/platform/graphics/win/WKCACFContextFlusher.cpp b/Source/WebCore/platform/graphics/win/WKCACFContextFlusher.cpp
deleted file mode 100644
index d75c854..0000000
--- a/Source/WebCore/platform/graphics/win/WKCACFContextFlusher.cpp
+++ /dev/null
@@ -1,79 +0,0 @@
-/*
- * Copyright (C) 2009 Apple Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE COMPUTER, INC. OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
- */
-
-#include "config.h"
-
-#if USE(ACCELERATED_COMPOSITING)
-
-#include "WKCACFContextFlusher.h"
-
-#include <WebKitSystemInterface/WebKitSystemInterface.h>
-#include <wtf/StdLibExtras.h>
-
-namespace WebCore {
-
-WKCACFContextFlusher& WKCACFContextFlusher::shared()
-{
-    DEFINE_STATIC_LOCAL(WKCACFContextFlusher, flusher, ());
-    return flusher;
-}
-
-WKCACFContextFlusher::WKCACFContextFlusher()
-{
-}
-
-WKCACFContextFlusher::~WKCACFContextFlusher()
-{
-}
-
-void WKCACFContextFlusher::addContext(WKCACFContext* context)
-{
-    ASSERT(context);
-
-    m_contexts.add(context);
-}
-
-void WKCACFContextFlusher::removeContext(WKCACFContext* context)
-{
-    ASSERT(context);
-
-    m_contexts.remove(context);
-}
-
-void WKCACFContextFlusher::flushAllContexts()
-{
-    // addContext might get called beneath CACFContextFlush, and we don't want m_contexts to change while
-    // we're iterating over it, so we move the contexts into a local ContextSet and iterate over that instead.
-    ContextSet contextsToFlush;
-    contextsToFlush.swap(m_contexts);
-
-    ContextSet::const_iterator end = contextsToFlush.end();
-    for (ContextSet::const_iterator it = contextsToFlush.begin(); it != end; ++it)
-        wkCACFContextFlush(*it);
-}
-
-}
-
-#endif // USE(ACCELERATED_COMPOSITING)
diff --git a/Source/WebCore/platform/graphics/win/WKCACFContextFlusher.h b/Source/WebCore/platform/graphics/win/WKCACFContextFlusher.h
deleted file mode 100644
index 78e848b..0000000
--- a/Source/WebCore/platform/graphics/win/WKCACFContextFlusher.h
+++ /dev/null
@@ -1,61 +0,0 @@
-/*
- * Copyright (C) 2009 Apple Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE COMPUTER, INC. OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
- */
-
-#ifndef WKCACFContextFlusher_h
-#define WKCACFContextFlusher_h
-
-#if USE(ACCELERATED_COMPOSITING)
-
-#include <wtf/Noncopyable.h>
-
-#include <wtf/HashSet.h>
-
-struct WKCACFContext;
-
-namespace WebCore {
-
-class WKCACFContextFlusher {
-    WTF_MAKE_NONCOPYABLE(WKCACFContextFlusher);
-public:
-    static WKCACFContextFlusher& shared();
-
-    void addContext(WKCACFContext*);
-    void removeContext(WKCACFContext*);
-
-    void flushAllContexts();
-
-private:
-    WKCACFContextFlusher();
-    ~WKCACFContextFlusher();
-
-    typedef HashSet<WKCACFContext*> ContextSet;
-    ContextSet m_contexts;
-};
-
-}
-
-#endif // USE(ACCELERATED_COMPOSITING)
-
-#endif // WKCACFContextFlusher_h
diff --git a/Source/WebCore/platform/graphics/win/WKCACFLayerRenderer.cpp b/Source/WebCore/platform/graphics/win/WKCACFLayerRenderer.cpp
index ba804b9..74172d6 100644
--- a/Source/WebCore/platform/graphics/win/WKCACFLayerRenderer.cpp
+++ b/Source/WebCore/platform/graphics/win/WKCACFLayerRenderer.cpp
@@ -34,7 +34,6 @@
 #include "WKCACFLayerRenderer.h"
 
 #include "PlatformCALayer.h"
-#include "WKCACFContextFlusher.h"
 #include "WebCoreInstanceHandle.h"
 #include <WebKitSystemInterface/WebKitSystemInterface.h>
 #include <limits.h>
@@ -224,7 +223,6 @@ WKCACFLayerRenderer::WKCACFLayerRenderer()
 WKCACFLayerRenderer::~WKCACFLayerRenderer()
 {
     setHostWindow(0);
-    WKCACFContextFlusher::shared().removeContext(m_context);
     wkCACFContextDestroy(m_context);
 }
 
@@ -262,7 +260,6 @@ void WKCACFLayerRenderer::setRootChildLayer(PlatformCALayer* layer)
    
 void WKCACFLayerRenderer::layerTreeDidChange()
 {
-    WKCACFContextFlusher::shared().addContext(m_context);
     renderSoon();
 }
 

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list