Title: [199112] trunk
Revision
199112
Author
[email protected]
Date
2016-04-06 12:54:30 -0700 (Wed, 06 Apr 2016)

Log Message

window.CSS should be a constructor with static functions
<rdar://problem/25580516>
https://bugs.webkit.org/show_bug.cgi?id=156294

Reviewed by Chris Dumez.

Source/WebCore:

Rename DOMWindowCSS to DOMCSSNamespace to avoid name collisions, DOMWindow prefixed
classes cause collisions in JSDOMWindow.

* CMakeLists.txt:
* DerivedSources.make:
* WebCore.xcodeproj/project.pbxproj:
Update for renames.

* css/DOMCSSNamespace.cpp: Copied from Source/WebCore/css/DOMWindowCSS.cpp.
(WebCore::valueWithoutImportant):
(WebCore::DOMCSSNamespace::supports):
(WebCore::DOMWindowCSS::create): Deleted.
(WebCore::DOMWindowCSS::supports): Deleted.
* css/DOMCSSNamespace.h: Copied from Source/WebCore/css/DOMWindowCSS.h.
(WebCore::DOMWindowCSS::DOMWindowCSS): Deleted.
Rename DOMWindowCSS to DOMCSSNamespace and turn functions into static functions.

* css/DOMCSSNamespace.idl: Copied from Source/WebCore/css/DOMWindowCSS.idl.
Remove NoInterfaceObject, to inject a constructor, and turn functions into
static functions matching spec.

* page/DOMWindow.cpp:
(WebCore::DOMWindow::css): Deleted.
* page/DOMWindow.h:
* page/DOMWindow.idl:
Remove CSS property. Constructor will be implicitly added.

LayoutTests:

* platform/efl/js/dom/global-constructors-attributes-expected.txt:
* platform/gtk/js/dom/global-constructors-attributes-expected.txt:
* platform/mac-yosemite/js/dom/global-constructors-attributes-expected.txt:
* platform/mac/js/dom/global-constructors-attributes-expected.txt:
* platform/win/js/dom/global-constructors-attributes-expected.txt:
Update for new CSS constructor property.

Modified Paths

Added Paths

Removed Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (199111 => 199112)


--- trunk/LayoutTests/ChangeLog	2016-04-06 19:22:57 UTC (rev 199111)
+++ trunk/LayoutTests/ChangeLog	2016-04-06 19:54:30 UTC (rev 199112)
@@ -1,3 +1,18 @@
+2016-04-06  Sam Weinig  <[email protected]>
+
+        window.CSS should be a constructor with static functions
+        <rdar://problem/25580516>
+        https://bugs.webkit.org/show_bug.cgi?id=156294
+
+        Reviewed by Chris Dumez.
+
+        * platform/efl/js/dom/global-constructors-attributes-expected.txt:
+        * platform/gtk/js/dom/global-constructors-attributes-expected.txt:
+        * platform/mac-yosemite/js/dom/global-constructors-attributes-expected.txt:
+        * platform/mac/js/dom/global-constructors-attributes-expected.txt:
+        * platform/win/js/dom/global-constructors-attributes-expected.txt:
+        Update for new CSS constructor property.
+
 2016-04-06  Joanmarie Diggs  <[email protected]>
 
         REGRESSION(r195463): [GTK] accessibility/roles-computedRoleString.html and accessibility/roles-exposed.html failing

Modified: trunk/LayoutTests/js/dom/global-constructors-attributes-expected.txt (199111 => 199112)


--- trunk/LayoutTests/js/dom/global-constructors-attributes-expected.txt	2016-04-06 19:22:57 UTC (rev 199111)
+++ trunk/LayoutTests/js/dom/global-constructors-attributes-expected.txt	2016-04-06 19:54:30 UTC (rev 199112)
@@ -108,6 +108,11 @@
 PASS Object.getOwnPropertyDescriptor(global, 'CDATASection').hasOwnProperty('set') is false
 PASS Object.getOwnPropertyDescriptor(global, 'CDATASection').enumerable is false
 PASS Object.getOwnPropertyDescriptor(global, 'CDATASection').configurable is true
+PASS Object.getOwnPropertyDescriptor(global, 'CSS').value is CSS
+PASS Object.getOwnPropertyDescriptor(global, 'CSS').hasOwnProperty('get') is false
+PASS Object.getOwnPropertyDescriptor(global, 'CSS').hasOwnProperty('set') is false
+PASS Object.getOwnPropertyDescriptor(global, 'CSS').enumerable is false
+PASS Object.getOwnPropertyDescriptor(global, 'CSS').configurable is true
 PASS Object.getOwnPropertyDescriptor(global, 'CSSCharsetRule').value is CSSCharsetRule
 PASS Object.getOwnPropertyDescriptor(global, 'CSSCharsetRule').hasOwnProperty('get') is false
 PASS Object.getOwnPropertyDescriptor(global, 'CSSCharsetRule').hasOwnProperty('set') is false

Modified: trunk/LayoutTests/platform/efl/js/dom/global-constructors-attributes-expected.txt (199111 => 199112)


--- trunk/LayoutTests/platform/efl/js/dom/global-constructors-attributes-expected.txt	2016-04-06 19:22:57 UTC (rev 199111)
+++ trunk/LayoutTests/platform/efl/js/dom/global-constructors-attributes-expected.txt	2016-04-06 19:54:30 UTC (rev 199112)
@@ -103,6 +103,11 @@
 PASS Object.getOwnPropertyDescriptor(global, 'CDATASection').hasOwnProperty('set') is false
 PASS Object.getOwnPropertyDescriptor(global, 'CDATASection').enumerable is false
 PASS Object.getOwnPropertyDescriptor(global, 'CDATASection').configurable is true
+PASS Object.getOwnPropertyDescriptor(global, 'CSS').value is CSS
+PASS Object.getOwnPropertyDescriptor(global, 'CSS').hasOwnProperty('get') is false
+PASS Object.getOwnPropertyDescriptor(global, 'CSS').hasOwnProperty('set') is false
+PASS Object.getOwnPropertyDescriptor(global, 'CSS').enumerable is false
+PASS Object.getOwnPropertyDescriptor(global, 'CSS').configurable is true
 PASS Object.getOwnPropertyDescriptor(global, 'CSSCharsetRule').value is CSSCharsetRule
 PASS Object.getOwnPropertyDescriptor(global, 'CSSCharsetRule').hasOwnProperty('get') is false
 PASS Object.getOwnPropertyDescriptor(global, 'CSSCharsetRule').hasOwnProperty('set') is false

Modified: trunk/LayoutTests/platform/gtk/js/dom/global-constructors-attributes-expected.txt (199111 => 199112)


--- trunk/LayoutTests/platform/gtk/js/dom/global-constructors-attributes-expected.txt	2016-04-06 19:22:57 UTC (rev 199111)
+++ trunk/LayoutTests/platform/gtk/js/dom/global-constructors-attributes-expected.txt	2016-04-06 19:54:30 UTC (rev 199112)
@@ -103,6 +103,11 @@
 PASS Object.getOwnPropertyDescriptor(global, 'CDATASection').hasOwnProperty('set') is false
 PASS Object.getOwnPropertyDescriptor(global, 'CDATASection').enumerable is false
 PASS Object.getOwnPropertyDescriptor(global, 'CDATASection').configurable is true
+PASS Object.getOwnPropertyDescriptor(global, 'CSS').value is CSS
+PASS Object.getOwnPropertyDescriptor(global, 'CSS').hasOwnProperty('get') is false
+PASS Object.getOwnPropertyDescriptor(global, 'CSS').hasOwnProperty('set') is false
+PASS Object.getOwnPropertyDescriptor(global, 'CSS').enumerable is false
+PASS Object.getOwnPropertyDescriptor(global, 'CSS').configurable is true
 PASS Object.getOwnPropertyDescriptor(global, 'CSSCharsetRule').value is CSSCharsetRule
 PASS Object.getOwnPropertyDescriptor(global, 'CSSCharsetRule').hasOwnProperty('get') is false
 PASS Object.getOwnPropertyDescriptor(global, 'CSSCharsetRule').hasOwnProperty('set') is false

Modified: trunk/LayoutTests/platform/mac/js/dom/global-constructors-attributes-expected.txt (199111 => 199112)


--- trunk/LayoutTests/platform/mac/js/dom/global-constructors-attributes-expected.txt	2016-04-06 19:22:57 UTC (rev 199111)
+++ trunk/LayoutTests/platform/mac/js/dom/global-constructors-attributes-expected.txt	2016-04-06 19:54:30 UTC (rev 199112)
@@ -123,6 +123,11 @@
 PASS Object.getOwnPropertyDescriptor(global, 'CDATASection').hasOwnProperty('set') is false
 PASS Object.getOwnPropertyDescriptor(global, 'CDATASection').enumerable is false
 PASS Object.getOwnPropertyDescriptor(global, 'CDATASection').configurable is true
+PASS Object.getOwnPropertyDescriptor(global, 'CSS').value is CSS
+PASS Object.getOwnPropertyDescriptor(global, 'CSS').hasOwnProperty('get') is false
+PASS Object.getOwnPropertyDescriptor(global, 'CSS').hasOwnProperty('set') is false
+PASS Object.getOwnPropertyDescriptor(global, 'CSS').enumerable is false
+PASS Object.getOwnPropertyDescriptor(global, 'CSS').configurable is true
 PASS Object.getOwnPropertyDescriptor(global, 'CSSCharsetRule').value is CSSCharsetRule
 PASS Object.getOwnPropertyDescriptor(global, 'CSSCharsetRule').hasOwnProperty('get') is false
 PASS Object.getOwnPropertyDescriptor(global, 'CSSCharsetRule').hasOwnProperty('set') is false

Modified: trunk/LayoutTests/platform/mac-yosemite/js/dom/global-constructors-attributes-expected.txt (199111 => 199112)


--- trunk/LayoutTests/platform/mac-yosemite/js/dom/global-constructors-attributes-expected.txt	2016-04-06 19:22:57 UTC (rev 199111)
+++ trunk/LayoutTests/platform/mac-yosemite/js/dom/global-constructors-attributes-expected.txt	2016-04-06 19:54:30 UTC (rev 199112)
@@ -123,6 +123,11 @@
 PASS Object.getOwnPropertyDescriptor(global, 'CDATASection').hasOwnProperty('set') is false
 PASS Object.getOwnPropertyDescriptor(global, 'CDATASection').enumerable is false
 PASS Object.getOwnPropertyDescriptor(global, 'CDATASection').configurable is true
+PASS Object.getOwnPropertyDescriptor(global, 'CSS').value is CSS
+PASS Object.getOwnPropertyDescriptor(global, 'CSS').hasOwnProperty('get') is false
+PASS Object.getOwnPropertyDescriptor(global, 'CSS').hasOwnProperty('set') is false
+PASS Object.getOwnPropertyDescriptor(global, 'CSS').enumerable is false
+PASS Object.getOwnPropertyDescriptor(global, 'CSS').configurable is true
 PASS Object.getOwnPropertyDescriptor(global, 'CSSCharsetRule').value is CSSCharsetRule
 PASS Object.getOwnPropertyDescriptor(global, 'CSSCharsetRule').hasOwnProperty('get') is false
 PASS Object.getOwnPropertyDescriptor(global, 'CSSCharsetRule').hasOwnProperty('set') is false

Modified: trunk/LayoutTests/platform/win/js/dom/global-constructors-attributes-expected.txt (199111 => 199112)


--- trunk/LayoutTests/platform/win/js/dom/global-constructors-attributes-expected.txt	2016-04-06 19:22:57 UTC (rev 199111)
+++ trunk/LayoutTests/platform/win/js/dom/global-constructors-attributes-expected.txt	2016-04-06 19:54:30 UTC (rev 199112)
@@ -53,6 +53,11 @@
 PASS Object.getOwnPropertyDescriptor(global, 'CDATASection').hasOwnProperty('set') is false
 PASS Object.getOwnPropertyDescriptor(global, 'CDATASection').enumerable is false
 PASS Object.getOwnPropertyDescriptor(global, 'CDATASection').configurable is true
+PASS Object.getOwnPropertyDescriptor(global, 'CSS').value is CSS
+PASS Object.getOwnPropertyDescriptor(global, 'CSS').hasOwnProperty('get') is false
+PASS Object.getOwnPropertyDescriptor(global, 'CSS').hasOwnProperty('set') is false
+PASS Object.getOwnPropertyDescriptor(global, 'CSS').enumerable is false
+PASS Object.getOwnPropertyDescriptor(global, 'CSS').configurable is true
 PASS Object.getOwnPropertyDescriptor(global, 'CSSCharsetRule').value is CSSCharsetRule
 PASS Object.getOwnPropertyDescriptor(global, 'CSSCharsetRule').hasOwnProperty('get') is false
 PASS Object.getOwnPropertyDescriptor(global, 'CSSCharsetRule').hasOwnProperty('set') is false

Modified: trunk/Source/WebCore/CMakeLists.txt (199111 => 199112)


--- trunk/Source/WebCore/CMakeLists.txt	2016-04-06 19:22:57 UTC (rev 199111)
+++ trunk/Source/WebCore/CMakeLists.txt	2016-04-06 19:54:30 UTC (rev 199112)
@@ -334,7 +334,7 @@
     css/CSSValue.idl
     css/CSSValueList.idl
     css/Counter.idl
-    css/DOMWindowCSS.idl
+    css/DOMCSSNamespace.idl
     css/FontFace.idl
     css/FontFaceSet.idl
     css/MediaList.idl
@@ -1340,7 +1340,7 @@
     css/CSSValuePool.cpp
     css/CSSVariableDependentValue.cpp
     css/CSSVariableValue.cpp
-    css/DOMWindowCSS.cpp
+    css/DOMCSSNamespace.cpp
     css/DocumentRuleSets.cpp
     css/ElementRuleCollector.cpp
     css/FontVariantBuilder.cpp

Modified: trunk/Source/WebCore/ChangeLog (199111 => 199112)


--- trunk/Source/WebCore/ChangeLog	2016-04-06 19:22:57 UTC (rev 199111)
+++ trunk/Source/WebCore/ChangeLog	2016-04-06 19:54:30 UTC (rev 199112)
@@ -1,3 +1,38 @@
+2016-04-06  Sam Weinig  <[email protected]>
+
+        window.CSS should be a constructor with static functions
+        <rdar://problem/25580516>
+        https://bugs.webkit.org/show_bug.cgi?id=156294
+
+        Reviewed by Chris Dumez.
+
+        Rename DOMWindowCSS to DOMCSSNamespace to avoid name collisions, DOMWindow prefixed
+        classes cause collisions in JSDOMWindow.
+
+        * CMakeLists.txt:
+        * DerivedSources.make:
+        * WebCore.xcodeproj/project.pbxproj:
+        Update for renames.
+
+        * css/DOMCSSNamespace.cpp: Copied from Source/WebCore/css/DOMWindowCSS.cpp.
+        (WebCore::valueWithoutImportant):
+        (WebCore::DOMCSSNamespace::supports):
+        (WebCore::DOMWindowCSS::create): Deleted.
+        (WebCore::DOMWindowCSS::supports): Deleted.
+        * css/DOMCSSNamespace.h: Copied from Source/WebCore/css/DOMWindowCSS.h.
+        (WebCore::DOMWindowCSS::DOMWindowCSS): Deleted.
+        Rename DOMWindowCSS to DOMCSSNamespace and turn functions into static functions.
+
+        * css/DOMCSSNamespace.idl: Copied from Source/WebCore/css/DOMWindowCSS.idl.
+        Remove NoInterfaceObject, to inject a constructor, and turn functions into
+        static functions matching spec.
+
+        * page/DOMWindow.cpp:
+        (WebCore::DOMWindow::css): Deleted.
+        * page/DOMWindow.h:
+        * page/DOMWindow.idl:
+        Remove CSS property. Constructor will be implicitly added.
+
 2016-04-05  Simon Fraser  <[email protected]>
 
         Rename exposedRect to viewExposedRect and propagate it as Optional<> through WK2

Modified: trunk/Source/WebCore/DerivedSources.make (199111 => 199112)


--- trunk/Source/WebCore/DerivedSources.make	2016-04-06 19:22:57 UTC (rev 199111)
+++ trunk/Source/WebCore/DerivedSources.make	2016-04-06 19:54:30 UTC (rev 199112)
@@ -247,7 +247,7 @@
     $(WebCore)/css/CSSValue.idl \
     $(WebCore)/css/CSSValueList.idl \
     $(WebCore)/css/Counter.idl \
-    $(WebCore)/css/DOMWindowCSS.idl \
+    $(WebCore)/css/DOMCSSNamespace.idl \
     $(WebCore)/css/FontFace.idl \
     $(WebCore)/css/FontFaceSet.idl \
     $(WebCore)/css/MediaList.idl \

Modified: trunk/Source/WebCore/PlatformGTK.cmake (199111 => 199112)


--- trunk/Source/WebCore/PlatformGTK.cmake	2016-04-06 19:22:57 UTC (rev 199111)
+++ trunk/Source/WebCore/PlatformGTK.cmake	2016-04-06 19:54:30 UTC (rev 199112)
@@ -545,7 +545,7 @@
 
     Modules/webdatabase/Database.idl
 
-    css/DOMWindowCSS.idl
+    css/DOMCSSNamespace.idl
     css/MediaQueryList.idl
     css/StyleMedia.idl
 

Modified: trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj (199111 => 199112)


--- trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj	2016-04-06 19:22:57 UTC (rev 199111)
+++ trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj	2016-04-06 19:54:30 UTC (rev 199112)
@@ -6846,8 +6846,8 @@
 		FBF89045169E9F1F0052D86E /* CSSGroupingRule.cpp in Sources */ = {isa = PBXBuildFile; fileRef = FBF89044169E9F1F0052D86E /* CSSGroupingRule.cpp */; };
 		FC54D05716A7673100575E4D /* CSSSupportsRule.h in Headers */ = {isa = PBXBuildFile; fileRef = FC63BDB1167AABAC00F9380F /* CSSSupportsRule.h */; };
 		FC54D05816A7676E00575E4D /* JSCSSSupportsRule.h in Headers */ = {isa = PBXBuildFile; fileRef = FC84802E167AB444008CD100 /* JSCSSSupportsRule.h */; };
-		FC9A0F75164094CF003D6B8D /* DOMWindowCSS.h in Headers */ = {isa = PBXBuildFile; fileRef = FC9A0F72164094CF003D6B8D /* DOMWindowCSS.h */; };
-		FC9E0E4D16419C1E00392BE3 /* JSDOMWindowCSS.h in Headers */ = {isa = PBXBuildFile; fileRef = FC9E0E4B16419C1E00392BE3 /* JSDOMWindowCSS.h */; };
+		FC9A0F75164094CF003D6B8D /* DOMCSSNamespace.h in Headers */ = {isa = PBXBuildFile; fileRef = FC9A0F72164094CF003D6B8D /* DOMCSSNamespace.h */; };
+		FC9E0E4D16419C1E00392BE3 /* JSDOMCSSNamespace.h in Headers */ = {isa = PBXBuildFile; fileRef = FC9E0E4B16419C1E00392BE3 /* JSDOMCSSNamespace.h */; };
 		FCD8832A16A49F8200962227 /* DOMCSSSupportsRule.h in Headers */ = {isa = PBXBuildFile; fileRef = FCD8832816A49F8200962227 /* DOMCSSSupportsRule.h */; };
 		FCD8832B16A49F8200962227 /* DOMCSSSupportsRule.mm in Sources */ = {isa = PBXBuildFile; fileRef = FCD8832916A49F8200962227 /* DOMCSSSupportsRule.mm */; };
 		FCD8832C16A49FB000962227 /* DOMCSSSupportsRule.h in Copy Generated Headers */ = {isa = PBXBuildFile; fileRef = FCD8832816A49F8200962227 /* DOMCSSSupportsRule.h */; };
@@ -7002,10 +7002,10 @@
 		FD62F52E145898D80094B0ED /* AudioSourceProviderClient.h in Headers */ = {isa = PBXBuildFile; fileRef = FD62F52D145898D80094B0ED /* AudioSourceProviderClient.h */; };
 		FD671A77159BB07000197559 /* MediaStreamAudioSourceNode.cpp in Sources */ = {isa = PBXBuildFile; fileRef = FD671A74159BB07000197559 /* MediaStreamAudioSourceNode.cpp */; };
 		FD671A78159BB07000197559 /* MediaStreamAudioSourceNode.h in Headers */ = {isa = PBXBuildFile; fileRef = FD671A75159BB07000197559 /* MediaStreamAudioSourceNode.h */; };
-		FD677738195CAF3D0072E0D3 /* DOMWindowCSS.cpp in Sources */ = {isa = PBXBuildFile; fileRef = FD677735195CAB200072E0D3 /* DOMWindowCSS.cpp */; };
+		FD677738195CAF3D0072E0D3 /* DOMCSSNamespace.cpp in Sources */ = {isa = PBXBuildFile; fileRef = FD677735195CAB200072E0D3 /* DOMCSSNamespace.cpp */; };
 		FD677739195CAFBA0072E0D3 /* CSSSupportsRule.cpp in Sources */ = {isa = PBXBuildFile; fileRef = FD677734195CAB200072E0D3 /* CSSSupportsRule.cpp */; };
 		FD67773A195CB14A0072E0D3 /* JSCSSSupportsRule.cpp in Sources */ = {isa = PBXBuildFile; fileRef = FD677736195CAB7D0072E0D3 /* JSCSSSupportsRule.cpp */; };
-		FD67773B195CB1E60072E0D3 /* JSDOMWindowCSS.cpp in Sources */ = {isa = PBXBuildFile; fileRef = FD677737195CAB7D0072E0D3 /* JSDOMWindowCSS.cpp */; };
+		FD67773B195CB1E60072E0D3 /* JSDOMCSSNamespace.cpp in Sources */ = {isa = PBXBuildFile; fileRef = FD677737195CAB7D0072E0D3 /* JSDOMCSSNamespace.cpp */; };
 		FD6ED2C3136B8E42003CF072 /* DynamicsCompressorNode.cpp in Sources */ = {isa = PBXBuildFile; fileRef = FD6ED2C1136B8E42003CF072 /* DynamicsCompressorNode.cpp */; };
 		FD6ED2C4136B8E42003CF072 /* DynamicsCompressorNode.h in Headers */ = {isa = PBXBuildFile; fileRef = FD6ED2C2136B8E42003CF072 /* DynamicsCompressorNode.h */; };
 		FD6ED2C7136B8E66003CF072 /* DynamicsCompressor.cpp in Sources */ = {isa = PBXBuildFile; fileRef = FD6ED2C5136B8E66003CF072 /* DynamicsCompressor.cpp */; };
@@ -14919,9 +14919,9 @@
 		FC63BDB1167AABAC00F9380F /* CSSSupportsRule.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CSSSupportsRule.h; sourceTree = "<group>"; };
 		FC63BDB2167AABAC00F9380F /* CSSSupportsRule.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = CSSSupportsRule.idl; sourceTree = "<group>"; };
 		FC84802E167AB444008CD100 /* JSCSSSupportsRule.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSCSSSupportsRule.h; sourceTree = "<group>"; };
-		FC9A0F72164094CF003D6B8D /* DOMWindowCSS.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DOMWindowCSS.h; sourceTree = "<group>"; };
-		FC9A0F73164094CF003D6B8D /* DOMWindowCSS.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = DOMWindowCSS.idl; sourceTree = "<group>"; };
-		FC9E0E4B16419C1E00392BE3 /* JSDOMWindowCSS.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSDOMWindowCSS.h; sourceTree = "<group>"; };
+		FC9A0F72164094CF003D6B8D /* DOMCSSNamespace.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DOMCSSNamespace.h; sourceTree = "<group>"; };
+		FC9A0F73164094CF003D6B8D /* DOMCSSNamespace.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = DOMCSSNamespace.idl; sourceTree = "<group>"; };
+		FC9E0E4B16419C1E00392BE3 /* JSDOMCSSNamespace.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSDOMCSSNamespace.h; sourceTree = "<group>"; };
 		FCD8832816A49F8200962227 /* DOMCSSSupportsRule.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DOMCSSSupportsRule.h; sourceTree = "<group>"; };
 		FCD8832916A49F8200962227 /* DOMCSSSupportsRule.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = DOMCSSSupportsRule.mm; sourceTree = "<group>"; };
 		FCEBBAAA16A4967A00FA20A6 /* DOMCSSSupportsRuleInternal.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DOMCSSSupportsRuleInternal.h; sourceTree = "<group>"; };
@@ -15098,9 +15098,9 @@
 		FD671A75159BB07000197559 /* MediaStreamAudioSourceNode.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MediaStreamAudioSourceNode.h; sourceTree = "<group>"; };
 		FD671A76159BB07000197559 /* MediaStreamAudioSourceNode.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = MediaStreamAudioSourceNode.idl; sourceTree = "<group>"; };
 		FD677734195CAB200072E0D3 /* CSSSupportsRule.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CSSSupportsRule.cpp; sourceTree = "<group>"; };
-		FD677735195CAB200072E0D3 /* DOMWindowCSS.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = DOMWindowCSS.cpp; sourceTree = "<group>"; };
+		FD677735195CAB200072E0D3 /* DOMCSSNamespace.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = DOMCSSNamespace.cpp; sourceTree = "<group>"; };
 		FD677736195CAB7D0072E0D3 /* JSCSSSupportsRule.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = JSCSSSupportsRule.cpp; path = DerivedSources/WebCore/JSCSSSupportsRule.cpp; sourceTree = BUILT_PRODUCTS_DIR; };
-		FD677737195CAB7D0072E0D3 /* JSDOMWindowCSS.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = JSDOMWindowCSS.cpp; path = DerivedSources/WebCore/JSDOMWindowCSS.cpp; sourceTree = BUILT_PRODUCTS_DIR; };
+		FD677737195CAB7D0072E0D3 /* JSDOMCSSNamespace.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = JSDOMCSSNamespace.cpp; path = DerivedSources/WebCore/JSDOMCSSNamespace.cpp; sourceTree = BUILT_PRODUCTS_DIR; };
 		FD6ED2C1136B8E42003CF072 /* DynamicsCompressorNode.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = DynamicsCompressorNode.cpp; sourceTree = "<group>"; };
 		FD6ED2C2136B8E42003CF072 /* DynamicsCompressorNode.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DynamicsCompressorNode.h; sourceTree = "<group>"; };
 		FD6ED2C5136B8E66003CF072 /* DynamicsCompressor.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = DynamicsCompressor.cpp; sourceTree = "<group>"; };
@@ -20748,8 +20748,8 @@
 				14CF78A509F58CD800EB3665 /* JSCSSValue.h */,
 				A8D05FA90A23B30F005E7203 /* JSCSSValueList.cpp */,
 				A8D05FAA0A23B30F005E7203 /* JSCSSValueList.h */,
-				FD677737195CAB7D0072E0D3 /* JSDOMWindowCSS.cpp */,
-				FC9E0E4B16419C1E00392BE3 /* JSDOMWindowCSS.h */,
+				FD677737195CAB7D0072E0D3 /* JSDOMCSSNamespace.cpp */,
+				FC9E0E4B16419C1E00392BE3 /* JSDOMCSSNamespace.h */,
 				BC3C39B40C0D3D8D005F4D7A /* JSMediaList.cpp */,
 				BC3C39B50C0D3D8D005F4D7A /* JSMediaList.h */,
 				D3A94A42122DC40F00A37BBC /* JSMediaQueryList.cpp */,
@@ -23727,9 +23727,9 @@
 				A80E6CE10A1989CA007FB8C5 /* DashboardRegion.h */,
 				4A4F48A716B0DFC000EDBB29 /* DocumentRuleSets.cpp */,
 				4A4F48A816B0DFC000EDBB29 /* DocumentRuleSets.h */,
-				FD677735195CAB200072E0D3 /* DOMWindowCSS.cpp */,
-				FC9A0F72164094CF003D6B8D /* DOMWindowCSS.h */,
-				FC9A0F73164094CF003D6B8D /* DOMWindowCSS.idl */,
+				FD677735195CAB200072E0D3 /* DOMCSSNamespace.cpp */,
+				FC9A0F72164094CF003D6B8D /* DOMCSSNamespace.h */,
+				FC9A0F73164094CF003D6B8D /* DOMCSSNamespace.idl */,
 				FBDB619A16D6032A00BB3394 /* ElementRuleCollector.cpp */,
 				FBDB619E16D6036500BB3394 /* ElementRuleCollector.h */,
 				1C66260E1C6E7CA600AB527C /* FontFace.cpp */,
@@ -25881,7 +25881,7 @@
 				5EA3D6E41C859DC100300BBB /* SDPProcessor.h in Headers */,
 				85989DD10ACC8BBD00A0BC51 /* DOMWheelEventInternal.h in Headers */,
 				1403B99709EB13AF00797C7F /* DOMWindow.h in Headers */,
-				FC9A0F75164094CF003D6B8D /* DOMWindowCSS.h in Headers */,
+				FC9A0F75164094CF003D6B8D /* DOMCSSNamespace.h in Headers */,
 				51FA2D78152132B300C1BA0B /* DOMWindowExtension.h in Headers */,
 				5185FC751BB4C4E80012898F /* DOMWindowIndexedDatabase.h in Headers */,
 				97B38E27151C4271004622E9 /* DOMWindowNotifications.h in Headers */,
@@ -26533,7 +26533,7 @@
 				7694563D1214D97C0007CBAE /* JSDOMTokenList.h in Headers */,
 				2E37E00612DBC5A400A6B233 /* JSDOMURL.h in Headers */,
 				BC6932740D7E293900AE44D1 /* JSDOMWindowBase.h in Headers */,
-				FC9E0E4D16419C1E00392BE3 /* JSDOMWindowCSS.h in Headers */,
+				FC9E0E4D16419C1E00392BE3 /* JSDOMCSSNamespace.h in Headers */,
 				652FBBBC0DE27CB60001D386 /* JSDOMWindowCustom.h in Headers */,
 				BCBFB53D0DCD29CF0019B3E5 /* JSDOMWindowShell.h in Headers */,
 				65E0E9441133C89F00B4CB10 /* JSDOMWrapper.h in Headers */,
@@ -29597,7 +29597,7 @@
 				31C0FF4D0E4CEFDD007D6FE5 /* DOMWebKitTransitionEvent.mm in Sources */,
 				85C7F5E80AAFBAFB004014DD /* DOMWheelEvent.mm in Sources */,
 				1403B99809EB13AF00797C7F /* DOMWindow.cpp in Sources */,
-				FD677738195CAF3D0072E0D3 /* DOMWindowCSS.cpp in Sources */,
+				FD677738195CAF3D0072E0D3 /* DOMCSSNamespace.cpp in Sources */,
 				517FBA1E151AB17C00B57959 /* DOMWindowExtension.cpp in Sources */,
 				5185FC741BB4C4E80012898F /* DOMWindowIndexedDatabase.cpp in Sources */,
 				97B38E28151C4273004622E9 /* DOMWindowNotifications.cpp in Sources */,
@@ -30219,7 +30219,7 @@
 				2E37E00512DBC5A400A6B233 /* JSDOMURL.cpp in Sources */,
 				1403BA0C09EB18C700797C7F /* JSDOMWindow.cpp in Sources */,
 				BC6932730D7E293900AE44D1 /* JSDOMWindowBase.cpp in Sources */,
-				FD67773B195CB1E60072E0D3 /* JSDOMWindowCSS.cpp in Sources */,
+				FD67773B195CB1E60072E0D3 /* JSDOMCSSNamespace.cpp in Sources */,
 				BCD9C2620C17AA67005C90A2 /* JSDOMWindowCustom.cpp in Sources */,
 				BCBFB53C0DCD29CF0019B3E5 /* JSDOMWindowShell.cpp in Sources */,
 				FD7868B9136B999200D403DF /* JSDynamicsCompressorNode.cpp in Sources */,

Copied: trunk/Source/WebCore/css/DOMCSSNamespace.cpp (from rev 199071, trunk/Source/WebCore/css/DOMWindowCSS.cpp) (0 => 199112)


--- trunk/Source/WebCore/css/DOMCSSNamespace.cpp	                        (rev 0)
+++ trunk/Source/WebCore/css/DOMCSSNamespace.cpp	2016-04-06 19:54:30 UTC (rev 199112)
@@ -0,0 +1,80 @@
+/*
+ * Copyright (C) 2012 Motorola Mobility 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.
+ * 3. Neither the name of Motorola Mobility Inc. nor the names of its
+ *    contributors may be used to endorse or promote products derived from this
+ *    software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "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 THE COPYRIGHT
+ * OWNER 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"
+#include "DOMCSSNamespace.h"
+
+#include "CSSParser.h"
+#include "StyleProperties.h"
+#include <wtf/text/WTFString.h>
+
+namespace WebCore {
+
+static String valueWithoutImportant(const String& value)
+{
+    if (!value.endsWith("important", false))
+        return value;
+
+    String newValue = value;
+    int bangIndex = newValue.length() - 9 - 1;
+    if (newValue[bangIndex] == ' ')
+        bangIndex--;
+    newValue = newValue.left(bangIndex);
+
+    return newValue;
+}
+
+bool DOMCSSNamespace::supports(const String& property, const String& value)
+{
+    CSSPropertyID propertyID = cssPropertyID(property.stripWhiteSpace());
+
+    if (propertyID == CSSPropertyInvalid)
+        return false;
+
+    // CSSParser::parseValue() won't work correctly if !important is present,
+    // so just get rid of it. It doesn't matter to supports() if it's actually
+    // there or not, provided how it's specified in the value is correct.
+    String normalizedValue = value.stripWhiteSpace().simplifyWhiteSpace();
+    normalizedValue = valueWithoutImportant(normalizedValue);
+
+    if (normalizedValue.isEmpty())
+        return false;
+
+    RefPtr<MutableStyleProperties> dummyStyle = MutableStyleProperties::create();
+    return CSSParser::parseValue(dummyStyle.get(), propertyID, normalizedValue, false, CSSStrictMode, nullptr) != CSSParser::ParseResult::Error;
+}
+
+bool DOMCSSNamespace::supports(const String& conditionText)
+{
+    CSSParserContext context(CSSStrictMode);
+    CSSParser parser(context);
+    return parser.parseSupportsCondition(conditionText);
+}
+
+}

Copied: trunk/Source/WebCore/css/DOMCSSNamespace.h (from rev 199071, trunk/Source/WebCore/css/DOMWindowCSS.h) (0 => 199112)


--- trunk/Source/WebCore/css/DOMCSSNamespace.h	                        (rev 0)
+++ trunk/Source/WebCore/css/DOMCSSNamespace.h	2016-04-06 19:54:30 UTC (rev 199112)
@@ -0,0 +1,43 @@
+/*
+ * Copyright (C) 2012 Motorola Mobility 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.
+ * 3. Neither the name of Motorola Mobility Inc. nor the names of its
+ *    contributors may be used to endorse or promote products derived from this
+ *    software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "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 THE COPYRIGHT
+ * OWNER 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.
+ */
+
+#pragma once
+
+#include <wtf/Forward.h>
+#include <wtf/RefCounted.h>
+
+namespace WebCore {
+
+class DOMCSSNamespace : public RefCounted<DOMCSSNamespace> {
+public:
+    static bool supports(const String& property, const String& value);
+    static bool supports(const String& conditionText);
+};
+
+}

Copied: trunk/Source/WebCore/css/DOMCSSNamespace.idl (from rev 199071, trunk/Source/WebCore/css/DOMWindowCSS.idl) (0 => 199112)


--- trunk/Source/WebCore/css/DOMCSSNamespace.idl	                        (rev 0)
+++ trunk/Source/WebCore/css/DOMCSSNamespace.idl	2016-04-06 19:54:30 UTC (rev 199112)
@@ -0,0 +1,36 @@
+/*
+ * Copyright (C) 2012 Motorola Mobility 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.
+ * 3. Neither the name of Motorola Mobility Inc. nor the names of its
+ *    contributors may be used to endorse or promote products derived from this
+ *    software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "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 THE COPYRIGHT
+ * OWNER 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.
+ */
+
+[
+    InterfaceName=CSS,
+    ImplementationLacksVTable,
+] interface DOMCSSNamespace {
+    static boolean supports(DOMString property, DOMString value);
+    static boolean supports(DOMString conditionText);
+};

Deleted: trunk/Source/WebCore/css/DOMWindowCSS.cpp (199111 => 199112)


--- trunk/Source/WebCore/css/DOMWindowCSS.cpp	2016-04-06 19:22:57 UTC (rev 199111)
+++ trunk/Source/WebCore/css/DOMWindowCSS.cpp	2016-04-06 19:54:30 UTC (rev 199112)
@@ -1,85 +0,0 @@
-/*
- * Copyright (C) 2012 Motorola Mobility 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.
- * 3. Neither the name of Motorola Mobility Inc. nor the names of its
- *    contributors may be used to endorse or promote products derived from this
- *    software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "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 THE COPYRIGHT
- * OWNER 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"
-#include "DOMWindowCSS.h"
-
-#include "CSSParser.h"
-#include "StyleProperties.h"
-#include <wtf/text/WTFString.h>
-
-namespace WebCore {
-
-Ref<DOMWindowCSS> DOMWindowCSS::create()
-{
-    return adoptRef(*new DOMWindowCSS);
-}
-
-static String valueWithoutImportant(const String& value)
-{
-    if (!value.endsWith("important", false))
-        return value;
-
-    String newValue = value;
-    int bangIndex = newValue.length() - 9 - 1;
-    if (newValue[bangIndex] == ' ')
-        bangIndex--;
-    newValue = newValue.left(bangIndex);
-
-    return newValue;
-}
-
-bool DOMWindowCSS::supports(const String& property, const String& value) const
-{
-    CSSPropertyID propertyID = cssPropertyID(property.stripWhiteSpace());
-
-    if (propertyID == CSSPropertyInvalid)
-        return false;
-
-    // CSSParser::parseValue() won't work correctly if !important is present,
-    // so just get rid of it. It doesn't matter to supports() if it's actually
-    // there or not, provided how it's specified in the value is correct.
-    String normalizedValue = value.stripWhiteSpace().simplifyWhiteSpace();
-    normalizedValue = valueWithoutImportant(normalizedValue);
-
-    if (normalizedValue.isEmpty())
-        return false;
-
-    RefPtr<MutableStyleProperties> dummyStyle = MutableStyleProperties::create();
-    return CSSParser::parseValue(dummyStyle.get(), propertyID, normalizedValue, false, CSSStrictMode, nullptr) != CSSParser::ParseResult::Error;
-}
-
-bool DOMWindowCSS::supports(const String& conditionText) const
-{
-    CSSParserContext context(CSSStrictMode);
-    CSSParser parser(context);
-    return parser.parseSupportsCondition(conditionText);
-}
-
-}

Deleted: trunk/Source/WebCore/css/DOMWindowCSS.h (199111 => 199112)


--- trunk/Source/WebCore/css/DOMWindowCSS.h	2016-04-06 19:22:57 UTC (rev 199111)
+++ trunk/Source/WebCore/css/DOMWindowCSS.h	2016-04-06 19:54:30 UTC (rev 199112)
@@ -1,54 +0,0 @@
-/*
- * Copyright (C) 2012 Motorola Mobility 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.
- * 3. Neither the name of Motorola Mobility Inc. nor the names of its
- *    contributors may be used to endorse or promote products derived from this
- *    software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "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 THE COPYRIGHT
- * OWNER 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 DOMWindowCSS_h
-#define DOMWindowCSS_h
-
-#include <wtf/Forward.h>
-#include <wtf/Ref.h>
-#include <wtf/RefCounted.h>
-
-namespace WebCore {
-
-class DOMWindowCSS : public RefCounted<DOMWindowCSS> {
-public:
-    WEBCORE_EXPORT static Ref<DOMWindowCSS> create();
-
-    bool supports(const String& property, const String& value) const;
-    bool supports(const String& conditionText) const;
-
-private:
-    DOMWindowCSS()
-    {
-    }
-};
-
-}
-
-#endif

Deleted: trunk/Source/WebCore/css/DOMWindowCSS.idl (199111 => 199112)


--- trunk/Source/WebCore/css/DOMWindowCSS.idl	2016-04-06 19:22:57 UTC (rev 199111)
+++ trunk/Source/WebCore/css/DOMWindowCSS.idl	2016-04-06 19:54:30 UTC (rev 199112)
@@ -1,40 +0,0 @@
-/*
- * Copyright (C) 2012 Motorola Mobility 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.
- * 3. Neither the name of Motorola Mobility Inc. nor the names of its
- *    contributors may be used to endorse or promote products derived from this
- *    software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "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 THE COPYRIGHT
- * OWNER 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.
- */
-
-[
-    NoInterfaceObject,
-    InterfaceName=CSS,
-    ImplementationLacksVTable,
-] interface DOMWindowCSS {
-
-    boolean supports(DOMString property, DOMString value);
-    boolean supports(DOMString conditionText);
-
-};
-

Modified: trunk/Source/WebCore/page/DOMWindow.cpp (199111 => 199112)


--- trunk/Source/WebCore/page/DOMWindow.cpp	2016-04-06 19:22:57 UTC (rev 199111)
+++ trunk/Source/WebCore/page/DOMWindow.cpp	2016-04-06 19:54:30 UTC (rev 199112)
@@ -44,7 +44,6 @@
 #include "DOMTimer.h"
 #include "DOMTokenList.h"
 #include "DOMURL.h"
-#include "DOMWindowCSS.h"
 #include "DOMWindowExtension.h"
 #include "DOMWindowNotifications.h"
 #include "DeviceMotionController.h"
@@ -1670,13 +1669,6 @@
 }
 #endif
 
-DOMWindowCSS* DOMWindow::css()
-{
-    if (!m_css)
-        m_css = DOMWindowCSS::create();
-    return m_css.get();
-}
-
 static void didAddStorageEventListener(DOMWindow* window)
 {
     // Creating these WebCore::Storage objects informs the system that we'd like to receive

Modified: trunk/Source/WebCore/page/DOMWindow.h (199111 => 199112)


--- trunk/Source/WebCore/page/DOMWindow.h	2016-04-06 19:22:57 UTC (rev 199111)
+++ trunk/Source/WebCore/page/DOMWindow.h	2016-04-06 19:54:30 UTC (rev 199112)
@@ -50,7 +50,6 @@
     class DOMApplicationCache;
     class DOMSelection;
     class DOMURL;
-    class DOMWindowCSS;
     class DOMWindowProperty;
     class DOMWrapperWorld;
     class Database;
@@ -272,8 +271,6 @@
         void cancelAnimationFrame(int id);
 #endif
 
-        DOMWindowCSS* css();
-
         // Events
         // EventTarget API
         bool addEventListener(const AtomicString& eventType, RefPtr<EventListener>&&, bool useCapture) override;
@@ -417,8 +414,6 @@
         mutable RefPtr<Performance> m_performance;
 #endif
 
-        mutable RefPtr<DOMWindowCSS> m_css;
-
 #if ENABLE(USER_MESSAGE_HANDLERS)
         mutable RefPtr<WebKitNamespace> m_webkitNamespace;
 #endif

Modified: trunk/Source/WebCore/page/DOMWindow.idl (199111 => 199112)


--- trunk/Source/WebCore/page/DOMWindow.idl	2016-04-06 19:22:57 UTC (rev 199111)
+++ trunk/Source/WebCore/page/DOMWindow.idl	2016-04-06 19:54:30 UTC (rev 199112)
@@ -179,8 +179,6 @@
     [Conditional=REQUEST_ANIMATION_FRAME, ImplementedAs=cancelAnimationFrame] void webkitCancelAnimationFrame(long id);
     [Conditional=REQUEST_ANIMATION_FRAME, ImplementedAs=cancelAnimationFrame] void webkitCancelRequestAnimationFrame(long id); // This is a deprecated alias for webkitCancelAnimationFrame(). Remove this when removing vendor prefix.
 
-    [Replaceable] readonly attribute DOMWindowCSS CSS;
-
     void captureEvents(/*in long eventFlags*/);
     void releaseEvents(/*in long eventFlags*/);
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to