Changeset 199112 in webkit
- Timestamp:
- Apr 6, 2016 12:54:30 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 15 edited
- 3 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r199110 r199112 1 2016-04-06 Sam Weinig <sam@webkit.org> 2 3 window.CSS should be a constructor with static functions 4 <rdar://problem/25580516> 5 https://bugs.webkit.org/show_bug.cgi?id=156294 6 7 Reviewed by Chris Dumez. 8 9 * platform/efl/js/dom/global-constructors-attributes-expected.txt: 10 * platform/gtk/js/dom/global-constructors-attributes-expected.txt: 11 * platform/mac-yosemite/js/dom/global-constructors-attributes-expected.txt: 12 * platform/mac/js/dom/global-constructors-attributes-expected.txt: 13 * platform/win/js/dom/global-constructors-attributes-expected.txt: 14 Update for new CSS constructor property. 15 1 16 2016-04-06 Joanmarie Diggs <jdiggs@igalia.com> 2 17 -
trunk/LayoutTests/js/dom/global-constructors-attributes-expected.txt
r197118 r199112 109 109 PASS Object.getOwnPropertyDescriptor(global, 'CDATASection').enumerable is false 110 110 PASS Object.getOwnPropertyDescriptor(global, 'CDATASection').configurable is true 111 PASS Object.getOwnPropertyDescriptor(global, 'CSS').value is CSS 112 PASS Object.getOwnPropertyDescriptor(global, 'CSS').hasOwnProperty('get') is false 113 PASS Object.getOwnPropertyDescriptor(global, 'CSS').hasOwnProperty('set') is false 114 PASS Object.getOwnPropertyDescriptor(global, 'CSS').enumerable is false 115 PASS Object.getOwnPropertyDescriptor(global, 'CSS').configurable is true 111 116 PASS Object.getOwnPropertyDescriptor(global, 'CSSCharsetRule').value is CSSCharsetRule 112 117 PASS Object.getOwnPropertyDescriptor(global, 'CSSCharsetRule').hasOwnProperty('get') is false -
trunk/LayoutTests/platform/efl/js/dom/global-constructors-attributes-expected.txt
r197118 r199112 104 104 PASS Object.getOwnPropertyDescriptor(global, 'CDATASection').enumerable is false 105 105 PASS Object.getOwnPropertyDescriptor(global, 'CDATASection').configurable is true 106 PASS Object.getOwnPropertyDescriptor(global, 'CSS').value is CSS 107 PASS Object.getOwnPropertyDescriptor(global, 'CSS').hasOwnProperty('get') is false 108 PASS Object.getOwnPropertyDescriptor(global, 'CSS').hasOwnProperty('set') is false 109 PASS Object.getOwnPropertyDescriptor(global, 'CSS').enumerable is false 110 PASS Object.getOwnPropertyDescriptor(global, 'CSS').configurable is true 106 111 PASS Object.getOwnPropertyDescriptor(global, 'CSSCharsetRule').value is CSSCharsetRule 107 112 PASS Object.getOwnPropertyDescriptor(global, 'CSSCharsetRule').hasOwnProperty('get') is false -
trunk/LayoutTests/platform/gtk/js/dom/global-constructors-attributes-expected.txt
r197142 r199112 104 104 PASS Object.getOwnPropertyDescriptor(global, 'CDATASection').enumerable is false 105 105 PASS Object.getOwnPropertyDescriptor(global, 'CDATASection').configurable is true 106 PASS Object.getOwnPropertyDescriptor(global, 'CSS').value is CSS 107 PASS Object.getOwnPropertyDescriptor(global, 'CSS').hasOwnProperty('get') is false 108 PASS Object.getOwnPropertyDescriptor(global, 'CSS').hasOwnProperty('set') is false 109 PASS Object.getOwnPropertyDescriptor(global, 'CSS').enumerable is false 110 PASS Object.getOwnPropertyDescriptor(global, 'CSS').configurable is true 106 111 PASS Object.getOwnPropertyDescriptor(global, 'CSSCharsetRule').value is CSSCharsetRule 107 112 PASS Object.getOwnPropertyDescriptor(global, 'CSSCharsetRule').hasOwnProperty('get') is false -
trunk/LayoutTests/platform/mac-yosemite/js/dom/global-constructors-attributes-expected.txt
r199062 r199112 124 124 PASS Object.getOwnPropertyDescriptor(global, 'CDATASection').enumerable is false 125 125 PASS Object.getOwnPropertyDescriptor(global, 'CDATASection').configurable is true 126 PASS Object.getOwnPropertyDescriptor(global, 'CSS').value is CSS 127 PASS Object.getOwnPropertyDescriptor(global, 'CSS').hasOwnProperty('get') is false 128 PASS Object.getOwnPropertyDescriptor(global, 'CSS').hasOwnProperty('set') is false 129 PASS Object.getOwnPropertyDescriptor(global, 'CSS').enumerable is false 130 PASS Object.getOwnPropertyDescriptor(global, 'CSS').configurable is true 126 131 PASS Object.getOwnPropertyDescriptor(global, 'CSSCharsetRule').value is CSSCharsetRule 127 132 PASS Object.getOwnPropertyDescriptor(global, 'CSSCharsetRule').hasOwnProperty('get') is false -
trunk/LayoutTests/platform/mac/js/dom/global-constructors-attributes-expected.txt
r199062 r199112 124 124 PASS Object.getOwnPropertyDescriptor(global, 'CDATASection').enumerable is false 125 125 PASS Object.getOwnPropertyDescriptor(global, 'CDATASection').configurable is true 126 PASS Object.getOwnPropertyDescriptor(global, 'CSS').value is CSS 127 PASS Object.getOwnPropertyDescriptor(global, 'CSS').hasOwnProperty('get') is false 128 PASS Object.getOwnPropertyDescriptor(global, 'CSS').hasOwnProperty('set') is false 129 PASS Object.getOwnPropertyDescriptor(global, 'CSS').enumerable is false 130 PASS Object.getOwnPropertyDescriptor(global, 'CSS').configurable is true 126 131 PASS Object.getOwnPropertyDescriptor(global, 'CSSCharsetRule').value is CSSCharsetRule 127 132 PASS Object.getOwnPropertyDescriptor(global, 'CSSCharsetRule').hasOwnProperty('get') is false -
trunk/LayoutTests/platform/win/js/dom/global-constructors-attributes-expected.txt
r197142 r199112 54 54 PASS Object.getOwnPropertyDescriptor(global, 'CDATASection').enumerable is false 55 55 PASS Object.getOwnPropertyDescriptor(global, 'CDATASection').configurable is true 56 PASS Object.getOwnPropertyDescriptor(global, 'CSS').value is CSS 57 PASS Object.getOwnPropertyDescriptor(global, 'CSS').hasOwnProperty('get') is false 58 PASS Object.getOwnPropertyDescriptor(global, 'CSS').hasOwnProperty('set') is false 59 PASS Object.getOwnPropertyDescriptor(global, 'CSS').enumerable is false 60 PASS Object.getOwnPropertyDescriptor(global, 'CSS').configurable is true 56 61 PASS Object.getOwnPropertyDescriptor(global, 'CSSCharsetRule').value is CSSCharsetRule 57 62 PASS Object.getOwnPropertyDescriptor(global, 'CSSCharsetRule').hasOwnProperty('get') is false -
trunk/Source/WebCore/CMakeLists.txt
r199094 r199112 335 335 css/CSSValueList.idl 336 336 css/Counter.idl 337 css/DOM WindowCSS.idl337 css/DOMCSSNamespace.idl 338 338 css/FontFace.idl 339 339 css/FontFaceSet.idl … … 1341 1341 css/CSSVariableDependentValue.cpp 1342 1342 css/CSSVariableValue.cpp 1343 css/DOM WindowCSS.cpp1343 css/DOMCSSNamespace.cpp 1344 1344 css/DocumentRuleSets.cpp 1345 1345 css/ElementRuleCollector.cpp -
trunk/Source/WebCore/ChangeLog
r199111 r199112 1 2016-04-06 Sam Weinig <sam@webkit.org> 2 3 window.CSS should be a constructor with static functions 4 <rdar://problem/25580516> 5 https://bugs.webkit.org/show_bug.cgi?id=156294 6 7 Reviewed by Chris Dumez. 8 9 Rename DOMWindowCSS to DOMCSSNamespace to avoid name collisions, DOMWindow prefixed 10 classes cause collisions in JSDOMWindow. 11 12 * CMakeLists.txt: 13 * DerivedSources.make: 14 * WebCore.xcodeproj/project.pbxproj: 15 Update for renames. 16 17 * css/DOMCSSNamespace.cpp: Copied from Source/WebCore/css/DOMWindowCSS.cpp. 18 (WebCore::valueWithoutImportant): 19 (WebCore::DOMCSSNamespace::supports): 20 (WebCore::DOMWindowCSS::create): Deleted. 21 (WebCore::DOMWindowCSS::supports): Deleted. 22 * css/DOMCSSNamespace.h: Copied from Source/WebCore/css/DOMWindowCSS.h. 23 (WebCore::DOMWindowCSS::DOMWindowCSS): Deleted. 24 Rename DOMWindowCSS to DOMCSSNamespace and turn functions into static functions. 25 26 * css/DOMCSSNamespace.idl: Copied from Source/WebCore/css/DOMWindowCSS.idl. 27 Remove NoInterfaceObject, to inject a constructor, and turn functions into 28 static functions matching spec. 29 30 * page/DOMWindow.cpp: 31 (WebCore::DOMWindow::css): Deleted. 32 * page/DOMWindow.h: 33 * page/DOMWindow.idl: 34 Remove CSS property. Constructor will be implicitly added. 35 1 36 2016-04-05 Simon Fraser <simon.fraser@apple.com> 2 37 -
trunk/Source/WebCore/DerivedSources.make
r197748 r199112 248 248 $(WebCore)/css/CSSValueList.idl \ 249 249 $(WebCore)/css/Counter.idl \ 250 $(WebCore)/css/DOM WindowCSS.idl \250 $(WebCore)/css/DOMCSSNamespace.idl \ 251 251 $(WebCore)/css/FontFace.idl \ 252 252 $(WebCore)/css/FontFaceSet.idl \ -
trunk/Source/WebCore/PlatformGTK.cmake
r198766 r199112 546 546 Modules/webdatabase/Database.idl 547 547 548 css/DOM WindowCSS.idl548 css/DOMCSSNamespace.idl 549 549 css/MediaQueryList.idl 550 550 css/StyleMedia.idl -
trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj
r199072 r199112 6847 6847 FC54D05716A7673100575E4D /* CSSSupportsRule.h in Headers */ = {isa = PBXBuildFile; fileRef = FC63BDB1167AABAC00F9380F /* CSSSupportsRule.h */; }; 6848 6848 FC54D05816A7676E00575E4D /* JSCSSSupportsRule.h in Headers */ = {isa = PBXBuildFile; fileRef = FC84802E167AB444008CD100 /* JSCSSSupportsRule.h */; }; 6849 FC9A0F75164094CF003D6B8D /* DOM WindowCSS.h in Headers */ = {isa = PBXBuildFile; fileRef = FC9A0F72164094CF003D6B8D /* DOMWindowCSS.h */; };6850 FC9E0E4D16419C1E00392BE3 /* JSDOM WindowCSS.h in Headers */ = {isa = PBXBuildFile; fileRef = FC9E0E4B16419C1E00392BE3 /* JSDOMWindowCSS.h */; };6849 FC9A0F75164094CF003D6B8D /* DOMCSSNamespace.h in Headers */ = {isa = PBXBuildFile; fileRef = FC9A0F72164094CF003D6B8D /* DOMCSSNamespace.h */; }; 6850 FC9E0E4D16419C1E00392BE3 /* JSDOMCSSNamespace.h in Headers */ = {isa = PBXBuildFile; fileRef = FC9E0E4B16419C1E00392BE3 /* JSDOMCSSNamespace.h */; }; 6851 6851 FCD8832A16A49F8200962227 /* DOMCSSSupportsRule.h in Headers */ = {isa = PBXBuildFile; fileRef = FCD8832816A49F8200962227 /* DOMCSSSupportsRule.h */; }; 6852 6852 FCD8832B16A49F8200962227 /* DOMCSSSupportsRule.mm in Sources */ = {isa = PBXBuildFile; fileRef = FCD8832916A49F8200962227 /* DOMCSSSupportsRule.mm */; }; … … 7003 7003 FD671A77159BB07000197559 /* MediaStreamAudioSourceNode.cpp in Sources */ = {isa = PBXBuildFile; fileRef = FD671A74159BB07000197559 /* MediaStreamAudioSourceNode.cpp */; }; 7004 7004 FD671A78159BB07000197559 /* MediaStreamAudioSourceNode.h in Headers */ = {isa = PBXBuildFile; fileRef = FD671A75159BB07000197559 /* MediaStreamAudioSourceNode.h */; }; 7005 FD677738195CAF3D0072E0D3 /* DOM WindowCSS.cpp in Sources */ = {isa = PBXBuildFile; fileRef = FD677735195CAB200072E0D3 /* DOMWindowCSS.cpp */; };7005 FD677738195CAF3D0072E0D3 /* DOMCSSNamespace.cpp in Sources */ = {isa = PBXBuildFile; fileRef = FD677735195CAB200072E0D3 /* DOMCSSNamespace.cpp */; }; 7006 7006 FD677739195CAFBA0072E0D3 /* CSSSupportsRule.cpp in Sources */ = {isa = PBXBuildFile; fileRef = FD677734195CAB200072E0D3 /* CSSSupportsRule.cpp */; }; 7007 7007 FD67773A195CB14A0072E0D3 /* JSCSSSupportsRule.cpp in Sources */ = {isa = PBXBuildFile; fileRef = FD677736195CAB7D0072E0D3 /* JSCSSSupportsRule.cpp */; }; 7008 FD67773B195CB1E60072E0D3 /* JSDOM WindowCSS.cpp in Sources */ = {isa = PBXBuildFile; fileRef = FD677737195CAB7D0072E0D3 /* JSDOMWindowCSS.cpp */; };7008 FD67773B195CB1E60072E0D3 /* JSDOMCSSNamespace.cpp in Sources */ = {isa = PBXBuildFile; fileRef = FD677737195CAB7D0072E0D3 /* JSDOMCSSNamespace.cpp */; }; 7009 7009 FD6ED2C3136B8E42003CF072 /* DynamicsCompressorNode.cpp in Sources */ = {isa = PBXBuildFile; fileRef = FD6ED2C1136B8E42003CF072 /* DynamicsCompressorNode.cpp */; }; 7010 7010 FD6ED2C4136B8E42003CF072 /* DynamicsCompressorNode.h in Headers */ = {isa = PBXBuildFile; fileRef = FD6ED2C2136B8E42003CF072 /* DynamicsCompressorNode.h */; }; … … 14920 14920 FC63BDB2167AABAC00F9380F /* CSSSupportsRule.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = CSSSupportsRule.idl; sourceTree = "<group>"; }; 14921 14921 FC84802E167AB444008CD100 /* JSCSSSupportsRule.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSCSSSupportsRule.h; sourceTree = "<group>"; }; 14922 FC9A0F72164094CF003D6B8D /* DOM WindowCSS.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DOMWindowCSS.h; sourceTree = "<group>"; };14923 FC9A0F73164094CF003D6B8D /* DOM WindowCSS.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = DOMWindowCSS.idl; sourceTree = "<group>"; };14924 FC9E0E4B16419C1E00392BE3 /* JSDOM WindowCSS.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSDOMWindowCSS.h; sourceTree = "<group>"; };14922 FC9A0F72164094CF003D6B8D /* DOMCSSNamespace.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DOMCSSNamespace.h; sourceTree = "<group>"; }; 14923 FC9A0F73164094CF003D6B8D /* DOMCSSNamespace.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = DOMCSSNamespace.idl; sourceTree = "<group>"; }; 14924 FC9E0E4B16419C1E00392BE3 /* JSDOMCSSNamespace.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSDOMCSSNamespace.h; sourceTree = "<group>"; }; 14925 14925 FCD8832816A49F8200962227 /* DOMCSSSupportsRule.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DOMCSSSupportsRule.h; sourceTree = "<group>"; }; 14926 14926 FCD8832916A49F8200962227 /* DOMCSSSupportsRule.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = DOMCSSSupportsRule.mm; sourceTree = "<group>"; }; … … 15099 15099 FD671A76159BB07000197559 /* MediaStreamAudioSourceNode.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = MediaStreamAudioSourceNode.idl; sourceTree = "<group>"; }; 15100 15100 FD677734195CAB200072E0D3 /* CSSSupportsRule.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CSSSupportsRule.cpp; sourceTree = "<group>"; }; 15101 FD677735195CAB200072E0D3 /* DOM WindowCSS.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = DOMWindowCSS.cpp; sourceTree = "<group>"; };15101 FD677735195CAB200072E0D3 /* DOMCSSNamespace.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = DOMCSSNamespace.cpp; sourceTree = "<group>"; }; 15102 15102 FD677736195CAB7D0072E0D3 /* JSCSSSupportsRule.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = JSCSSSupportsRule.cpp; path = DerivedSources/WebCore/JSCSSSupportsRule.cpp; sourceTree = BUILT_PRODUCTS_DIR; }; 15103 FD677737195CAB7D0072E0D3 /* JSDOM WindowCSS.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = JSDOMWindowCSS.cpp; path = DerivedSources/WebCore/JSDOMWindowCSS.cpp; sourceTree = BUILT_PRODUCTS_DIR; };15103 FD677737195CAB7D0072E0D3 /* JSDOMCSSNamespace.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = JSDOMCSSNamespace.cpp; path = DerivedSources/WebCore/JSDOMCSSNamespace.cpp; sourceTree = BUILT_PRODUCTS_DIR; }; 15104 15104 FD6ED2C1136B8E42003CF072 /* DynamicsCompressorNode.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = DynamicsCompressorNode.cpp; sourceTree = "<group>"; }; 15105 15105 FD6ED2C2136B8E42003CF072 /* DynamicsCompressorNode.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DynamicsCompressorNode.h; sourceTree = "<group>"; }; … … 20749 20749 A8D05FA90A23B30F005E7203 /* JSCSSValueList.cpp */, 20750 20750 A8D05FAA0A23B30F005E7203 /* JSCSSValueList.h */, 20751 FD677737195CAB7D0072E0D3 /* JSDOM WindowCSS.cpp */,20752 FC9E0E4B16419C1E00392BE3 /* JSDOM WindowCSS.h */,20751 FD677737195CAB7D0072E0D3 /* JSDOMCSSNamespace.cpp */, 20752 FC9E0E4B16419C1E00392BE3 /* JSDOMCSSNamespace.h */, 20753 20753 BC3C39B40C0D3D8D005F4D7A /* JSMediaList.cpp */, 20754 20754 BC3C39B50C0D3D8D005F4D7A /* JSMediaList.h */, … … 23728 23728 4A4F48A716B0DFC000EDBB29 /* DocumentRuleSets.cpp */, 23729 23729 4A4F48A816B0DFC000EDBB29 /* DocumentRuleSets.h */, 23730 FD677735195CAB200072E0D3 /* DOM WindowCSS.cpp */,23731 FC9A0F72164094CF003D6B8D /* DOM WindowCSS.h */,23732 FC9A0F73164094CF003D6B8D /* DOM WindowCSS.idl */,23730 FD677735195CAB200072E0D3 /* DOMCSSNamespace.cpp */, 23731 FC9A0F72164094CF003D6B8D /* DOMCSSNamespace.h */, 23732 FC9A0F73164094CF003D6B8D /* DOMCSSNamespace.idl */, 23733 23733 FBDB619A16D6032A00BB3394 /* ElementRuleCollector.cpp */, 23734 23734 FBDB619E16D6036500BB3394 /* ElementRuleCollector.h */, … … 25882 25882 85989DD10ACC8BBD00A0BC51 /* DOMWheelEventInternal.h in Headers */, 25883 25883 1403B99709EB13AF00797C7F /* DOMWindow.h in Headers */, 25884 FC9A0F75164094CF003D6B8D /* DOM WindowCSS.h in Headers */,25884 FC9A0F75164094CF003D6B8D /* DOMCSSNamespace.h in Headers */, 25885 25885 51FA2D78152132B300C1BA0B /* DOMWindowExtension.h in Headers */, 25886 25886 5185FC751BB4C4E80012898F /* DOMWindowIndexedDatabase.h in Headers */, … … 26534 26534 2E37E00612DBC5A400A6B233 /* JSDOMURL.h in Headers */, 26535 26535 BC6932740D7E293900AE44D1 /* JSDOMWindowBase.h in Headers */, 26536 FC9E0E4D16419C1E00392BE3 /* JSDOM WindowCSS.h in Headers */,26536 FC9E0E4D16419C1E00392BE3 /* JSDOMCSSNamespace.h in Headers */, 26537 26537 652FBBBC0DE27CB60001D386 /* JSDOMWindowCustom.h in Headers */, 26538 26538 BCBFB53D0DCD29CF0019B3E5 /* JSDOMWindowShell.h in Headers */, … … 29598 29598 85C7F5E80AAFBAFB004014DD /* DOMWheelEvent.mm in Sources */, 29599 29599 1403B99809EB13AF00797C7F /* DOMWindow.cpp in Sources */, 29600 FD677738195CAF3D0072E0D3 /* DOM WindowCSS.cpp in Sources */,29600 FD677738195CAF3D0072E0D3 /* DOMCSSNamespace.cpp in Sources */, 29601 29601 517FBA1E151AB17C00B57959 /* DOMWindowExtension.cpp in Sources */, 29602 29602 5185FC741BB4C4E80012898F /* DOMWindowIndexedDatabase.cpp in Sources */, … … 30220 30220 1403BA0C09EB18C700797C7F /* JSDOMWindow.cpp in Sources */, 30221 30221 BC6932730D7E293900AE44D1 /* JSDOMWindowBase.cpp in Sources */, 30222 FD67773B195CB1E60072E0D3 /* JSDOM WindowCSS.cpp in Sources */,30222 FD67773B195CB1E60072E0D3 /* JSDOMCSSNamespace.cpp in Sources */, 30223 30223 BCD9C2620C17AA67005C90A2 /* JSDOMWindowCustom.cpp in Sources */, 30224 30224 BCBFB53C0DCD29CF0019B3E5 /* JSDOMWindowShell.cpp in Sources */, -
trunk/Source/WebCore/css/DOMCSSNamespace.cpp
r199071 r199112 29 29 30 30 #include "config.h" 31 #include "DOM WindowCSS.h"31 #include "DOMCSSNamespace.h" 32 32 33 33 #include "CSSParser.h" … … 36 36 37 37 namespace WebCore { 38 39 Ref<DOMWindowCSS> DOMWindowCSS::create()40 {41 return adoptRef(*new DOMWindowCSS);42 }43 38 44 39 static String valueWithoutImportant(const String& value) … … 56 51 } 57 52 58 bool DOM WindowCSS::supports(const String& property, const String& value) const53 bool DOMCSSNamespace::supports(const String& property, const String& value) 59 54 { 60 55 CSSPropertyID propertyID = cssPropertyID(property.stripWhiteSpace()); … … 76 71 } 77 72 78 bool DOM WindowCSS::supports(const String& conditionText) const73 bool DOMCSSNamespace::supports(const String& conditionText) 79 74 { 80 75 CSSParserContext context(CSSStrictMode); -
trunk/Source/WebCore/css/DOMCSSNamespace.h
r199071 r199112 28 28 */ 29 29 30 #ifndef DOMWindowCSS_h 31 #define DOMWindowCSS_h 30 #pragma once 32 31 33 32 #include <wtf/Forward.h> 34 #include <wtf/Ref.h>35 33 #include <wtf/RefCounted.h> 36 34 37 35 namespace WebCore { 38 36 39 class DOM WindowCSS : public RefCounted<DOMWindowCSS> {37 class DOMCSSNamespace : public RefCounted<DOMCSSNamespace> { 40 38 public: 41 WEBCORE_EXPORT static Ref<DOMWindowCSS> create(); 42 43 bool supports(const String& property, const String& value) const; 44 bool supports(const String& conditionText) const; 45 46 private: 47 DOMWindowCSS() 48 { 49 } 39 static bool supports(const String& property, const String& value); 40 static bool supports(const String& conditionText); 50 41 }; 51 42 52 43 } 53 54 #endif -
trunk/Source/WebCore/css/DOMCSSNamespace.idl
r199071 r199112 29 29 30 30 [ 31 NoInterfaceObject,32 31 InterfaceName=CSS, 33 32 ImplementationLacksVTable, 34 ] interface DOMWindowCSS { 35 36 boolean supports(DOMString property, DOMString value); 37 boolean supports(DOMString conditionText); 38 33 ] interface DOMCSSNamespace { 34 static boolean supports(DOMString property, DOMString value); 35 static boolean supports(DOMString conditionText); 39 36 }; 40 -
trunk/Source/WebCore/page/DOMWindow.cpp
r199020 r199112 45 45 #include "DOMTokenList.h" 46 46 #include "DOMURL.h" 47 #include "DOMWindowCSS.h"48 47 #include "DOMWindowExtension.h" 49 48 #include "DOMWindowNotifications.h" … … 1671 1670 #endif 1672 1671 1673 DOMWindowCSS* DOMWindow::css()1674 {1675 if (!m_css)1676 m_css = DOMWindowCSS::create();1677 return m_css.get();1678 }1679 1680 1672 static void didAddStorageEventListener(DOMWindow* window) 1681 1673 { -
trunk/Source/WebCore/page/DOMWindow.h
r198738 r199112 51 51 class DOMSelection; 52 52 class DOMURL; 53 class DOMWindowCSS;54 53 class DOMWindowProperty; 55 54 class DOMWrapperWorld; … … 273 272 #endif 274 273 275 DOMWindowCSS* css();276 277 274 // Events 278 275 // EventTarget API … … 418 415 #endif 419 416 420 mutable RefPtr<DOMWindowCSS> m_css;421 422 417 #if ENABLE(USER_MESSAGE_HANDLERS) 423 418 mutable RefPtr<WebKitNamespace> m_webkitNamespace; -
trunk/Source/WebCore/page/DOMWindow.idl
r198102 r199112 180 180 [Conditional=REQUEST_ANIMATION_FRAME, ImplementedAs=cancelAnimationFrame] void webkitCancelRequestAnimationFrame(long id); // This is a deprecated alias for webkitCancelAnimationFrame(). Remove this when removing vendor prefix. 181 181 182 [Replaceable] readonly attribute DOMWindowCSS CSS;183 184 182 void captureEvents(/*in long eventFlags*/); 185 183 void releaseEvents(/*in long eventFlags*/);
Note: See TracChangeset
for help on using the changeset viewer.