Title: [147719] trunk/Source/WebCore
Revision
147719
Author
[email protected]
Date
2013-04-05 00:48:24 -0700 (Fri, 05 Apr 2013)

Log Message

Remove Chromium code from Source/WebCore/dom
https://bugs.webkit.org/show_bug.cgi?id=114007

Reviewed by Benjamin Poulain.

Removed.

* dom/Document.cpp:
(WebCore::Document::recalcStyle):
(WebCore::Document::implicitClose):
(WebCore::Document::setFocusedNode):
* dom/MessagePortChannel.h:
(MessagePortChannel):
* dom/ShadowRoot.cpp:
(WebCore::ShadowRoot::ShadowRoot):
* dom/default/chromium: Removed.
* dom/default/chromium/PlatformMessagePortChannelChromium.cpp: Removed.
* dom/default/chromium/PlatformMessagePortChannelChromium.h: Removed.

Modified Paths

Removed Paths

  • trunk/Source/WebCore/dom/default/chromium/

Diff

Modified: trunk/Source/WebCore/ChangeLog (147718 => 147719)


--- trunk/Source/WebCore/ChangeLog	2013-04-05 07:32:07 UTC (rev 147718)
+++ trunk/Source/WebCore/ChangeLog	2013-04-05 07:48:24 UTC (rev 147719)
@@ -1,3 +1,24 @@
+2013-04-05  Ryosuke Niwa  <[email protected]>
+
+        Remove Chromium code from Source/WebCore/dom
+        https://bugs.webkit.org/show_bug.cgi?id=114007
+
+        Reviewed by Benjamin Poulain.
+
+        Removed.
+
+        * dom/Document.cpp:
+        (WebCore::Document::recalcStyle):
+        (WebCore::Document::implicitClose):
+        (WebCore::Document::setFocusedNode):
+        * dom/MessagePortChannel.h:
+        (MessagePortChannel):
+        * dom/ShadowRoot.cpp:
+        (WebCore::ShadowRoot::ShadowRoot):
+        * dom/default/chromium: Removed.
+        * dom/default/chromium/PlatformMessagePortChannelChromium.cpp: Removed.
+        * dom/default/chromium/PlatformMessagePortChannelChromium.h: Removed.
+
 2013-04-05  Benjamin Poulain  <[email protected]>
 
         Remove the chromium directories from WebCore/Modules

Modified: trunk/Source/WebCore/dom/Document.cpp (147718 => 147719)


--- trunk/Source/WebCore/dom/Document.cpp	2013-04-05 07:32:07 UTC (rev 147718)
+++ trunk/Source/WebCore/dom/Document.cpp	2013-04-05 07:48:24 UTC (rev 147719)
@@ -245,10 +245,6 @@
 #include "DOMSecurityPolicy.h"
 #endif
 
-#if PLATFORM(CHROMIUM)
-#include "TraceEvent.h"
-#endif
-
 #if ENABLE(VIDEO_TRACK)
 #include "CaptionUserPreferences.h"
 #endif
@@ -1823,10 +1819,6 @@
     if (m_inStyleRecalc)
         return; // Guard against re-entrancy. -dwh
 
-#if PLATFORM(CHROMIUM)
-    TRACE_EVENT0("webkit", "Document::recalcStyle");
-#endif
-
     // FIXME: We should update style on our ancestor chain before proceeding (especially for seamless),
     // however doing so currently causes several tests to crash, as Frame::setDocument calls Document::attach
     // before setting the DOMWindow on the Frame, or the SecurityOrigin on the document. The attach, in turn
@@ -2528,7 +2520,7 @@
 
     m_processingLoadEvent = false;
 
-#if PLATFORM(MAC) || PLATFORM(CHROMIUM)
+#if PLATFORM(MAC)
     if (f && renderObject && AXObjectCache::accessibilityEnabled()) {
         // The AX cache may have been cleared at this point, but we need to make sure it contains an
         // AX object to send the notification to. getOrCreate will make sure that an valid AX object
@@ -3497,12 +3489,6 @@
         }
     }
 
-    if (!focusChangeBlocked && m_focusedNode) {
-        // Create the AXObject cache in a focus change because Chromium relies on it.
-        if (AXObjectCache* cache = axObjectCache())
-            cache->handleFocusedUIElementChanged(oldFocusedNode.get(), newFocusedNode.get());
-    }
-
     if (!focusChangeBlocked)
         page()->chrome()->focusedNodeChanged(m_focusedNode.get());
 

Modified: trunk/Source/WebCore/dom/MessagePortChannel.h (147718 => 147719)


--- trunk/Source/WebCore/dom/MessagePortChannel.h	2013-04-05 07:32:07 UTC (rev 147718)
+++ trunk/Source/WebCore/dom/MessagePortChannel.h	2013-04-05 07:48:24 UTC (rev 147719)
@@ -85,14 +85,6 @@
 
         ~MessagePortChannel();
 
-#if PLATFORM(CHROMIUM)
-        // Creates a new wrapper for the passed channel.
-        static PassOwnPtr<MessagePortChannel> create(PassRefPtr<PlatformMessagePortChannel>);
-
-        // FIXME: PlatformMessagePortChannel is an implementation detail, and should not be exposed via a public function.
-        PlatformMessagePortChannel* channel() const { return m_channel.get(); }
-#endif
-
     private:
         explicit MessagePortChannel(PassRefPtr<PlatformMessagePortChannel>);
         RefPtr<PlatformMessagePortChannel> m_channel;

Modified: trunk/Source/WebCore/dom/ShadowRoot.cpp (147718 => 147719)


--- trunk/Source/WebCore/dom/ShadowRoot.cpp	2013-04-05 07:32:07 UTC (rev 147718)
+++ trunk/Source/WebCore/dom/ShadowRoot.cpp	2013-04-05 07:48:24 UTC (rev 147719)
@@ -63,13 +63,6 @@
     , m_registeredWithParentShadowRoot(false)
 {
     ASSERT(document);
-
-#if PLATFORM(CHROMIUM)
-    if (type == ShadowRoot::AuthorShadowRoot) {
-        ShadowRootUsageOriginType usageType = document->url().protocolIsInHTTPFamily() ? ShadowRootUsageOriginWeb : ShadowRootUsageOriginNotWeb;
-        HistogramSupport::histogramEnumeration("WebCore.ShadowRoot.constructor", usageType, ShadowRootUsageOriginMax);
-    }
-#endif
 }
 
 ShadowRoot::~ShadowRoot()
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to