Changeset 196123 in webkit
- Timestamp:
- Feb 4, 2016 8:57:44 AM (8 years ago)
- Location:
- trunk
- Files:
-
- 1 deleted
- 43 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r196114 r196123 1 2016-02-04 Chris Dumez <cdumez@apple.com> 2 3 Merge DOMTokenList and DOMSettableTokenList 4 https://bugs.webkit.org/show_bug.cgi?id=153677 5 <rdar://problem/24419675> 6 7 Reviewed by Sam Weinig. 8 9 Update / rebaseline several tests now that relList attributes 10 use [PutForward=value]. 11 12 * fast/dom/HTMLElement/class-list-expected.txt: 13 * fast/dom/HTMLElement/class-list-quirks-expected.txt: 14 * fast/dom/HTMLElement/script-tests/class-list.js: 15 * fast/dom/rel-list-expected.txt: 16 * fast/dom/rel-list.html: 17 1 18 2016-02-04 Hunseop Jeong <hs85.jeong@samsung.com> 2 19 -
trunk/LayoutTests/fast/dom/HTMLElement/class-list-expected.txt
r190078 r196123 5 5 6 6 Tests from http://simon.html5.org/test/html/dom/reflecting/DOMTokenList/ 7 PASS String(element.classList) is " x"7 PASS String(element.classList) is "y" 8 8 PASS element.classList.length is 0 9 9 PASS element.classList.length is 1 -
trunk/LayoutTests/fast/dom/HTMLElement/class-list-quirks-expected.txt
r190078 r196123 5 5 6 6 Tests from http://simon.html5.org/test/html/dom/reflecting/DOMTokenList/ 7 PASS String(element.classList) is " x"7 PASS String(element.classList) is "y" 8 8 PASS element.classList.length is 0 9 9 PASS element.classList.length is 1 -
trunk/LayoutTests/fast/dom/HTMLElement/script-tests/class-list.js
r190078 r196123 12 12 13 13 // http://simon.html5.org/test/html/dom/reflecting/DOMTokenList/setting/001.htm 14 // Firefox throws here but WebKit does not throw on setting readonly idl 15 // attributes. 16 createElement('x'); 17 try { 18 element.classList = 'y'; 19 shouldBeEqualToString('String(element.classList)', 'x'); 20 } catch (ex) { 21 testPassed('Throwing on set is acceptable'); 22 } 14 createElement('x'); 15 element.classList = 'y'; 16 shouldBeEqualToString('String(element.classList)', 'y'); 23 17 24 18 // http://simon.html5.org/test/html/dom/reflecting/DOMTokenList/getting/001.htm -
trunk/LayoutTests/fast/dom/rel-list-expected.txt
r190078 r196123 24 24 PASS element.relList.contains("chips") is true 25 25 PASS element.relList.contains("orange") is false 26 PASS String(element.relList) is " x"26 PASS String(element.relList) is "y" 27 27 PASS element.relList.length is 0 28 28 PASS element.relList.length is 1 … … 147 147 PASS element.relList.contains("chips") is true 148 148 PASS element.relList.contains("orange") is false 149 PASS String(element.relList) is " x"149 PASS String(element.relList) is "y" 150 150 PASS element.relList.length is 0 151 151 PASS element.relList.length is 1 … … 270 270 PASS element.relList.contains("chips") is true 271 271 PASS element.relList.contains("orange") is false 272 PASS String(element.relList) is " x"272 PASS String(element.relList) is "y" 273 273 PASS element.relList.length is 0 274 274 PASS element.relList.length is 1 -
trunk/LayoutTests/fast/dom/rel-list.html
r190078 r196123 54 54 createElement('x'); 55 55 element.relList = 'y'; 56 shouldBeEqualToString('String(element.relList)', ' x');56 shouldBeEqualToString('String(element.relList)', 'y'); 57 57 58 58 createElement(''); -
trunk/LayoutTests/imported/w3c/ChangeLog
r196115 r196123 1 2016-02-04 Chris Dumez <cdumez@apple.com> 2 3 Merge DOMTokenList and DOMSettableTokenList 4 https://bugs.webkit.org/show_bug.cgi?id=153677 5 <rdar://problem/24419675> 6 7 Reviewed by Sam Weinig. 8 9 Rebaseline several W3C tests now that more checks are passing. 10 11 * web-platform-tests/dom/historical-expected.txt: 12 * web-platform-tests/dom/interfaces-expected.txt: 13 * web-platform-tests/dom/nodes/Element-classlist-expected.txt: 14 * web-platform-tests/html/dom/interfaces-expected.txt: 15 16 * web-platform-tests/html/dom/interfaces.html: 17 Update HTMLAreaElement.relList to match the specification. 18 1 19 2016-02-04 Youenn Fablet <youenn.fablet@crf.canon.fr> 2 20 -
trunk/LayoutTests/imported/w3c/web-platform-tests/dom/historical-expected.txt
r196079 r196123 8 8 PASS Historical DOM features must be removed: DOMLocator 9 9 PASS Historical DOM features must be removed: DOMObject 10 FAIL Historical DOM features must be removed: DOMSettableTokenList assert_equals: expected (undefined) undefined but got (object) object "[object DOM SettableTokenListConstructor]"10 FAIL Historical DOM features must be removed: DOMSettableTokenList assert_equals: expected (undefined) undefined but got (object) object "[object DOMTokenListConstructor]" 11 11 PASS Historical DOM features must be removed: DOMUserData 12 12 PASS Historical DOM features must be removed: Entity -
trunk/LayoutTests/imported/w3c/web-platform-tests/dom/interfaces-expected.txt
r196079 r196123 708 708 PASS Element interface: attribute id 709 709 PASS Element interface: attribute className 710 FAIL Element interface: attribute classList assert_equals: setter must be function for PutForwards, Replaceable, or non-readonly attributes expected "function" but got "undefined" 710 PASS Element interface: attribute classList 711 711 PASS Element interface: operation hasAttributes() 712 712 PASS Element interface: attribute attributes … … 1560 1560 FAIL DOMTokenList interface: operation replace(DOMString,DOMString) assert_own_property: interface prototype object missing non-static operation expected property "replace" missing 1561 1561 FAIL DOMTokenList interface: operation supports(DOMString) assert_own_property: interface prototype object missing non-static operation expected property "supports" missing 1562 FAIL DOMTokenList interface: attribute value assert_true: The prototype object must have a property "value" expected true got false 1562 PASS DOMTokenList interface: attribute value 1563 1563 FAIL DOMTokenList interface: stringifier assert_true: property is not enumerable expected true got false 1564 1564 PASS DOMTokenList must be primary interface of document.body.classList … … 1579 1579 FAIL DOMTokenList interface: document.body.classList must inherit property "supports" with the proper type (7) assert_inherits: property "supports" not found in prototype chain 1580 1580 FAIL DOMTokenList interface: calling supports(DOMString) on document.body.classList with too few arguments must throw TypeError assert_inherits: property "supports" not found in prototype chain 1581 FAIL DOMTokenList interface: document.body.classList must inherit property "value" with the proper type (8) assert_inherits: property "value" not found in prototype chain 1581 PASS DOMTokenList interface: document.body.classList must inherit property "value" with the proper type (8) 1582 1582 -
trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Element-classlist-expected.txt
r196079 r196123 63 63 PASS classList.add should treat \f as a space 64 64 PASS classList.length must be read-only 65 FAIL classList must have [PutForwards=value] assert_equals: expected 2 but got 1 65 PASS classList must have [PutForwards=value] 66 66 -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/interfaces-expected.txt
r196091 r196123 1372 1372 FAIL HTMLLinkElement interface: attribute crossOrigin assert_true: The prototype object must have a property "crossOrigin" expected true got false 1373 1373 PASS HTMLLinkElement interface: attribute rel 1374 FAIL HTMLLinkElement interface: attribute relList assert_equals: setter must be function for PutForwards, Replaceable, or non-readonly attributes expected "function" but got "undefined" 1374 PASS HTMLLinkElement interface: attribute relList 1375 1375 PASS HTMLLinkElement interface: attribute media 1376 1376 PASS HTMLLinkElement interface: attribute hreflang … … 1599 1599 PASS HTMLAnchorElement interface: attribute ping 1600 1600 PASS HTMLAnchorElement interface: attribute rel 1601 FAIL HTMLAnchorElement interface: attribute relList assert_equals: setter must be function for PutForwards, Replaceable, or non-readonly attributes expected "function" but got "undefined" 1601 PASS HTMLAnchorElement interface: attribute relList 1602 1602 PASS HTMLAnchorElement interface: attribute hreflang 1603 1603 PASS HTMLAnchorElement interface: attribute type -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/interfaces.html
r196091 r196123 1503 1503 [PutForwards=value] readonly attribute DOMTokenList ping; 1504 1504 attribute DOMString rel; 1505 readonly attribute DOMTokenList relList;1505 [PutForwards=value] readonly attribute DOMTokenList relList; 1506 1506 // hreflang and type are not reflected 1507 1507 }; -
trunk/Source/WebCore/CMakeLists.txt
r196118 r196123 1637 1637 html/ColorInputType.cpp 1638 1638 html/DOMFormData.cpp 1639 html/DOMSettableTokenList.cpp1640 1639 html/DOMTokenList.cpp 1641 1640 html/DOMURL.cpp -
trunk/Source/WebCore/ChangeLog
r196118 r196123 1 2016-02-04 Chris Dumez <cdumez@apple.com> 2 3 Merge DOMTokenList and DOMSettableTokenList 4 https://bugs.webkit.org/show_bug.cgi?id=153677 5 <rdar://problem/24419675> 6 7 Reviewed by Sam Weinig. 8 9 Merge DOMTokenList and DOMSettableTokenList, as per a recent 10 specification change: 11 - https://github.com/whatwg/dom/pull/120 12 - https://github.com/whatwg/html/issues/361 13 14 No new tests, already covered by existing tests. 15 16 * CMakeLists.txt: 17 * DerivedSources.cpp: 18 * WebCore.vcxproj/WebCore.vcxproj: 19 * WebCore.vcxproj/WebCore.vcxproj.filters: 20 * WebCore.xcodeproj/project.pbxproj: 21 * dom/Element.idl: 22 * dom/Node.h: 23 * dom/NodeRareData.h: 24 * html/AttributeDOMTokenList.h: 25 * html/DOMSettableTokenList.cpp: Removed. 26 * html/DOMSettableTokenList.h: 27 * html/DOMSettableTokenList.idl: 28 * html/DOMTokenList.cpp: 29 (WebCore::DOMTokenList::setValue): 30 * html/DOMTokenList.h: 31 * html/DOMTokenList.idl: 32 * html/HTMLAnchorElement.idl: 33 * html/HTMLAreaElement.idl: 34 * html/HTMLElement.cpp: 35 * html/HTMLElement.idl: 36 * html/HTMLIFrameElement.cpp: 37 (WebCore::HTMLIFrameElement::sandbox): 38 * html/HTMLIFrameElement.h: 39 * html/HTMLIFrameElement.idl: 40 * html/HTMLLinkElement.cpp: 41 (WebCore::HTMLLinkElement::sizes): 42 * html/HTMLLinkElement.h: 43 * html/HTMLLinkElement.idl: 44 * html/HTMLOutputElement.cpp: 45 (WebCore::HTMLOutputElement::htmlFor): 46 * html/HTMLOutputElement.h: 47 * html/HTMLOutputElement.idl: 48 * html/HTMLTableCellElement.idl: 49 * page/DOMWindow.cpp: 50 * page/DOMWindow.idl: 51 1 52 2016-02-04 Youenn Fablet <youenn.fablet@crf.canon.fr> 2 53 -
trunk/Source/WebCore/DerivedSources.cpp
r195954 r196123 143 143 #include "JSDOMSecurityPolicy.cpp" 144 144 #include "JSDOMSelection.cpp" 145 #include "JSDOMSettableTokenList.cpp"146 145 #include "JSDOMStringList.cpp" 147 146 #include "JSDOMStringMap.cpp" -
trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj
r196031 r196123 1748 1748 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Production|x64'">true</ExcludedFromBuild> 1749 1749 </ClCompile> 1750 <ClCompile Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSDOMSettableTokenList.cpp">1751 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>1752 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>1753 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug_WinCairo|Win32'">true</ExcludedFromBuild>1754 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug_WinCairo|x64'">true</ExcludedFromBuild>1755 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='DebugSuffix|Win32'">true</ExcludedFromBuild>1756 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='DebugSuffix|x64'">true</ExcludedFromBuild>1757 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>1758 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>1759 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release_WinCairo|Win32'">true</ExcludedFromBuild>1760 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release_WinCairo|x64'">true</ExcludedFromBuild>1761 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Production|Win32'">true</ExcludedFromBuild>1762 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Production|x64'">true</ExcludedFromBuild>1763 </ClCompile>1764 1750 <ClCompile Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSDOMStringList.cpp"> 1765 1751 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild> … … 16239 16225 <ClCompile Include="..\html\DateTimeLocalInputType.cpp" /> 16240 16226 <ClCompile Include="..\html\DOMFormData.cpp" /> 16241 <ClCompile Include="..\html\DOMSettableTokenList.cpp" />16242 16227 <ClCompile Include="..\html\DOMTokenList.cpp" /> 16243 16228 <ClCompile Include="..\html\DOMURL.cpp" /> … … 19913 19898 <ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSDOMPluginArray.h" /> 19914 19899 <ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSDOMSelection.h" /> 19915 <ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSDOMSettableTokenList.h" />19916 19900 <ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSDOMStringList.h" /> 19917 19901 <ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSDOMStringMap.h" /> … … 22293 22277 <ClInclude Include="..\html\DateTimeLocalInputType.h" /> 22294 22278 <ClInclude Include="..\html\DOMFormData.h" /> 22295 <ClInclude Include="..\html\DOMSettableTokenList.h" />22296 22279 <ClInclude Include="..\html\DOMTokenList.h" /> 22297 22280 <ClInclude Include="..\html\DOMURL.h" /> -
trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj.filters
r195948 r196123 3636 3636 <Filter>html</Filter> 3637 3637 </ClCompile> 3638 <ClCompile Include="..\html\DOMSettableTokenList.cpp">3639 <Filter>html</Filter>3640 </ClCompile>3641 3638 <ClCompile Include="..\html\DOMTokenList.cpp"> 3642 3639 <Filter>html</Filter> … … 5219 5216 </ClCompile> 5220 5217 <ClCompile Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSDOMSelection.cpp"> 5221 <Filter>DerivedSources</Filter>5222 </ClCompile>5223 <ClCompile Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSDOMSettableTokenList.cpp">5224 5218 <Filter>DerivedSources</Filter> 5225 5219 </ClCompile> … … 10802 10796 <Filter>html</Filter> 10803 10797 </ClInclude> 10804 <ClInclude Include="..\html\DOMSettableTokenList.h">10805 <Filter>html</Filter>10806 </ClInclude>10807 10798 <ClInclude Include="..\html\DOMTokenList.h"> 10808 10799 <Filter>html</Filter> … … 12644 12635 </ClInclude> 12645 12636 <ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSDOMSelection.h"> 12646 <Filter>DerivedSources</Filter>12647 </ClInclude>12648 <ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSDOMSettableTokenList.h">12649 12637 <Filter>DerivedSources</Filter> 12650 12638 </ClInclude> -
trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj
r196118 r196123 1867 1867 4A9CC82016BF9BB400EC645A /* InspectorCSSOMWrappers.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4A9CC81E16BF9BB400EC645A /* InspectorCSSOMWrappers.cpp */; }; 1868 1868 4A9CC82116BF9BB400EC645A /* InspectorCSSOMWrappers.h in Headers */ = {isa = PBXBuildFile; fileRef = 4A9CC81F16BF9BB400EC645A /* InspectorCSSOMWrappers.h */; }; 1869 4ACBC0C312713CCA0094F9B2 /* DOMSettableTokenList.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4ACBC0C012713CCA0094F9B2 /* DOMSettableTokenList.cpp */; };1870 1869 4ACBC0C412713CCA0094F9B2 /* DOMSettableTokenList.h in Headers */ = {isa = PBXBuildFile; fileRef = 4ACBC0C112713CCA0094F9B2 /* DOMSettableTokenList.h */; }; 1871 4ACBC0CA12713D0A0094F9B2 /* JSDOMSettableTokenList.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4ACBC0C812713D0A0094F9B2 /* JSDOMSettableTokenList.cpp */; };1872 4ACBC0CB12713D0A0094F9B2 /* JSDOMSettableTokenList.h in Headers */ = {isa = PBXBuildFile; fileRef = 4ACBC0C912713D0A0094F9B2 /* JSDOMSettableTokenList.h */; };1873 1870 4AD01008127E642A0015035F /* HTMLOutputElement.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4AD01005127E642A0015035F /* HTMLOutputElement.cpp */; }; 1874 1871 4AD01009127E642A0015035F /* HTMLOutputElement.h in Headers */ = {isa = PBXBuildFile; fileRef = 4AD01006127E642A0015035F /* HTMLOutputElement.h */; }; … … 9347 9344 4A9CC81E16BF9BB400EC645A /* InspectorCSSOMWrappers.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = InspectorCSSOMWrappers.cpp; sourceTree = "<group>"; }; 9348 9345 4A9CC81F16BF9BB400EC645A /* InspectorCSSOMWrappers.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = InspectorCSSOMWrappers.h; sourceTree = "<group>"; }; 9349 4ACBC0C012713CCA0094F9B2 /* DOMSettableTokenList.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = DOMSettableTokenList.cpp; sourceTree = "<group>"; };9350 9346 4ACBC0C112713CCA0094F9B2 /* DOMSettableTokenList.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DOMSettableTokenList.h; sourceTree = "<group>"; }; 9351 9347 4ACBC0C212713CCA0094F9B2 /* DOMSettableTokenList.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = DOMSettableTokenList.idl; sourceTree = "<group>"; }; 9352 4ACBC0C812713D0A0094F9B2 /* JSDOMSettableTokenList.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSDOMSettableTokenList.cpp; sourceTree = "<group>"; };9353 4ACBC0C912713D0A0094F9B2 /* JSDOMSettableTokenList.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSDOMSettableTokenList.h; sourceTree = "<group>"; };9354 9348 4AD01005127E642A0015035F /* HTMLOutputElement.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = HTMLOutputElement.cpp; sourceTree = "<group>"; }; 9355 9349 4AD01006127E642A0015035F /* HTMLOutputElement.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HTMLOutputElement.h; sourceTree = "<group>"; }; … … 18960 18954 2ED609BB1145B07100C8684E /* DOMFormData.h */, 18961 18955 2E0888C3114883A900AF4265 /* DOMFormData.idl */, 18962 4ACBC0C012713CCA0094F9B2 /* DOMSettableTokenList.cpp */,18963 18956 4ACBC0C112713CCA0094F9B2 /* DOMSettableTokenList.h */, 18964 18957 4ACBC0C212713CCA0094F9B2 /* DOMSettableTokenList.idl */, … … 19997 19990 FB91392916AE4FC0001FE682 /* JSDOMPath.cpp */, 19998 19991 FB91392816AE4FC0001FE682 /* JSDOMPath.h */, 19999 4ACBC0C812713D0A0094F9B2 /* JSDOMSettableTokenList.cpp */,20000 4ACBC0C912713D0A0094F9B2 /* JSDOMSettableTokenList.h */,20001 19992 7694563A1214D97C0007CBAE /* JSDOMTokenList.cpp */, 20002 19993 7694563B1214D97C0007CBAE /* JSDOMTokenList.h */, … … 26328 26319 E172AF901811BC3700FBADB9 /* JSDOMPromise.h in Headers */, 26329 26320 BC5A86B60C3367E800EEA649 /* JSDOMSelection.h in Headers */, 26330 4ACBC0CB12713D0A0094F9B2 /* JSDOMSettableTokenList.h in Headers */,26331 26321 C5137CF311A58378004ADB99 /* JSDOMStringList.h in Headers */, 26332 26322 BC64649811D82349006455B0 /* JSDOMStringMap.h in Headers */, … … 29347 29337 2D9A246F15B9BD2F00D34527 /* DOMSecurityPolicy.cpp in Sources */, 29348 29338 BC5A86840C33676000EEA649 /* DOMSelection.cpp in Sources */, 29349 4ACBC0C312713CCA0094F9B2 /* DOMSettableTokenList.cpp in Sources */,29350 29339 C55610F111A704EB00B82D27 /* DOMStringList.cpp in Sources */, 29351 29340 0FF5025C102BA9010066F39A /* DOMStyleMedia.mm in Sources */, … … 29991 29980 E172AF8F1811BC3700FBADB9 /* JSDOMPromise.cpp in Sources */, 29992 29981 BC5A86B50C3367E800EEA649 /* JSDOMSelection.cpp in Sources */, 29993 4ACBC0CA12713D0A0094F9B2 /* JSDOMSettableTokenList.cpp in Sources */,29994 29982 C5137CF211A58378004ADB99 /* JSDOMStringList.cpp in Sources */, 29995 29983 9A1B6F97158869C80011A8C4 /* JSDOMStringListCustom.cpp in Sources */, -
trunk/Source/WebCore/dom/Element.idl
r195686 r196123 127 127 128 128 [Reflect=class] attribute DOMString className; 129 readonly attribute DOMTokenList classList;129 [PutForwards=value] readonly attribute DOMTokenList classList; 130 130 131 131 #if defined(LANGUAGE_JAVASCRIPT) && LANGUAGE_JAVASCRIPT -
trunk/Source/WebCore/dom/Node.h
r195538 r196123 46 46 class ClassCollection; 47 47 class ContainerNode; 48 class DOM SettableTokenList;48 class DOMTokenList; 49 49 class Document; 50 50 class Element; -
trunk/Source/WebCore/dom/NodeRareData.h
r191955 r196123 25 25 #include "ChildNodeList.h" 26 26 #include "ClassCollection.h" 27 #include "DOM SettableTokenList.h"27 #include "DOMTokenList.h" 28 28 #include "HTMLCollection.h" 29 29 #include "HTMLNames.h" -
trunk/Source/WebCore/html/AttributeDOMTokenList.h
r190189 r196123 27 27 #define AttributeDOMTokenList_h 28 28 29 #include "DOM SettableTokenList.h"29 #include "DOMTokenList.h" 30 30 #include "Element.h" 31 31 32 32 namespace WebCore { 33 33 34 class AttributeDOMTokenList final : public DOM SettableTokenList {34 class AttributeDOMTokenList final : public DOMTokenList { 35 35 WTF_MAKE_FAST_ALLOCATED; 36 36 public: -
trunk/Source/WebCore/html/DOMSettableTokenList.h
r190189 r196123 33 33 namespace WebCore { 34 34 35 typedef int ExceptionCode; 36 35 // Only used by ObjC and GObject bindings. 37 36 class DOMSettableTokenList : public DOMTokenList { 38 37 WTF_MAKE_FAST_ALLOCATED; 39 public:40 void setValue(const String&);41 42 // Make public.43 using DOMTokenList::value;44 38 }; 45 39 -
trunk/Source/WebCore/html/DOMSettableTokenList.idl
r159061 r196123 23 23 */ 24 24 25 #if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C || defined(LANGUAGE_GOBJECT) && LANGUAGE_GOBJECT 26 25 27 [ 28 NoInterfaceObject, 26 29 JSGenerateToJSObject, 27 30 SkipVTableValidation, … … 32 35 }; 33 36 37 #endif -
trunk/Source/WebCore/html/DOMTokenList.cpp
r190189 r196123 1 1 /* 2 2 * Copyright (C) 2010 Google Inc. All rights reserved. 3 * Copyright (C) 2015 Apple Inc. All rights reserved.3 * Copyright (C) 2015, 2016 Apple Inc. All rights reserved. 4 4 * 5 5 * Redistribution and use in source and binary forms, with or without … … 159 159 } 160 160 161 void DOMTokenList::setValue(const String& value) 162 { 163 setValueInternal(value); 164 updateAfterTokenChange(); 165 } 166 161 167 void DOMTokenList::setValueInternal(const WTF::String& value) 162 168 { -
trunk/Source/WebCore/html/DOMTokenList.h
r190189 r196123 1 1 /* 2 2 * Copyright (C) 2010 Google Inc. All rights reserved. 3 * Copyright (C) 2015 Apple Inc. All rights reserved.3 * Copyright (C) 2015, 2016 Apple Inc. All rights reserved. 4 4 * 5 5 * Redistribution and use in source and binary forms, with or without … … 59 59 virtual Element* element() const { return nullptr; } 60 60 61 void setValue(const String&); 62 const AtomicString& value() const; 63 61 64 protected: 62 65 DOMTokenList() = default; 63 const AtomicString& value() const;64 66 void setValueInternal(const String&); 65 67 -
trunk/Source/WebCore/html/DOMTokenList.idl
r189969 r196123 1 1 /* 2 2 * Copyright (C) 2010, Google Inc. All rights reserved. 3 * Copyright (C) 2016, Apple Inc. All rights reserved. 3 4 * 4 5 * Redistribution and use in source and binary forms, with or without … … 34 35 [RaisesException, Custom] boolean toggle(DOMString token, optional boolean force); 35 36 37 attribute DOMString value; 38 36 39 #if defined(LANGUAGE_JAVASCRIPT) && LANGUAGE_JAVASCRIPT 37 40 [NotEnumerable] DOMString toString(); -
trunk/Source/WebCore/html/HTMLAnchorElement.idl
r190030 r196123 28 28 29 29 // FIXME: This is supposed to be: 30 // [PutForwards=value] readonly attribute DOM SettableTokenList ping;30 // [PutForwards=value] readonly attribute DOMTokenList ping; 31 31 [Reflect] attribute DOMString ping; 32 32 … … 71 71 #endif 72 72 73 readonly attribute DOMTokenList relList;73 [PutForwards=value] readonly attribute DOMTokenList relList; 74 74 }; 75 75 -
trunk/Source/WebCore/html/HTMLAreaElement.idl
r190030 r196123 26 26 27 27 // FIXME: This is supposed to be: 28 // [PutForwards=value] readonly attribute DOM SettableTokenList ping;28 // [PutForwards=value] readonly attribute DOMTokenList ping; 29 29 [Reflect] attribute DOMString ping; 30 30 … … 50 50 #endif 51 51 52 readonly attribute DOMTokenList relList;52 [PutForwards=value] readonly attribute DOMTokenList relList; 53 53 }; 54 54 -
trunk/Source/WebCore/html/HTMLElement.cpp
r195953 r196123 30 30 #include "CSSValueKeywords.h" 31 31 #include "CSSValuePool.h" 32 #include "DOM SettableTokenList.h"32 #include "DOMTokenList.h" 33 33 #include "DocumentFragment.h" 34 34 #include "ElementAncestorIterator.h" -
trunk/Source/WebCore/html/HTMLElement.idl
r195087 r196123 40 40 [Reflect] attribute DOMString webkitdropzone; 41 41 // FIXME: Support the standard HTML equivalent. 42 // [PutForwards=value] readonly attribute DOM SettableTokenList dropzone;42 // [PutForwards=value] readonly attribute DOMTokenList dropzone; 43 43 44 44 [Reflect] attribute boolean hidden; -
trunk/Source/WebCore/html/HTMLIFrameElement.cpp
r194496 r196123 49 49 } 50 50 51 DOM SettableTokenList& HTMLIFrameElement::sandbox()51 DOMTokenList& HTMLIFrameElement::sandbox() 52 52 { 53 53 if (!m_sandbox) -
trunk/Source/WebCore/html/HTMLIFrameElement.h
r191388 r196123 35 35 static Ref<HTMLIFrameElement> create(const QualifiedName&, Document&); 36 36 37 DOM SettableTokenList& sandbox();37 DOMTokenList& sandbox(); 38 38 39 39 private: -
trunk/Source/WebCore/html/HTMLIFrameElement.idl
r191388 r196123 31 31 [Reflect] attribute DOMString sandbox; 32 32 #else 33 [PutForwards=value] readonly attribute DOM SettableTokenList sandbox;33 [PutForwards=value] readonly attribute DOMTokenList sandbox; 34 34 #endif 35 35 -
trunk/Source/WebCore/html/HTMLLinkElement.cpp
r196080 r196123 368 368 } 369 369 370 DOM SettableTokenList& HTMLLinkElement::sizes()370 DOMTokenList& HTMLLinkElement::sizes() 371 371 { 372 372 if (!m_sizes) -
trunk/Source/WebCore/html/HTMLLinkElement.h
r190189 r196123 66 66 bool isDisabled() const { return m_disabledState == Disabled; } 67 67 bool isEnabledViaScript() const { return m_disabledState == EnabledViaScript; } 68 DOM SettableTokenList& sizes();68 DOMTokenList& sizes(); 69 69 70 70 void dispatchPendingEvent(LinkEventSender*); -
trunk/Source/WebCore/html/HTMLLinkElement.idl
r190030 r196123 29 29 [Reflect] attribute DOMString rev; 30 30 #if (defined(LANGUAGE_JAVASCRIPT) && LANGUAGE_JAVASCRIPT) || (defined(LANGUAGE_GOBJECT) || LANGUAGE_GOBJECT) 31 [PutForwards=value] readonly attribute DOM SettableTokenList sizes;31 [PutForwards=value] readonly attribute DOMTokenList sizes; 32 32 #endif 33 33 [Reflect] attribute DOMString target; … … 42 42 #endif 43 43 44 readonly attribute DOMTokenList relList;44 [PutForwards=value] readonly attribute DOMTokenList relList; 45 45 }; 46 46 -
trunk/Source/WebCore/html/HTMLOutputElement.cpp
r194819 r196123 128 128 } 129 129 130 DOM SettableTokenList& HTMLOutputElement::htmlFor()130 DOMTokenList& HTMLOutputElement::htmlFor() 131 131 { 132 132 if (!m_tokens) -
trunk/Source/WebCore/html/HTMLOutputElement.h
r190189 r196123 45 45 String defaultValue() const; 46 46 void setDefaultValue(const String&); 47 DOM SettableTokenList& htmlFor();47 DOMTokenList& htmlFor(); 48 48 49 49 virtual bool canContainRangeEndPoint() const override { return false; } -
trunk/Source/WebCore/html/HTMLOutputElement.idl
r190189 r196123 24 24 25 25 interface HTMLOutputElement : HTMLElement { 26 [PutForwards=value] readonly attribute DOM SettableTokenList htmlFor;26 [PutForwards=value] readonly attribute DOMTokenList htmlFor; 27 27 28 28 readonly attribute HTMLFormElement form; -
trunk/Source/WebCore/html/HTMLTableCellElement.idl
r191247 r196123 29 29 30 30 // FIXME: This is supposed to be: 31 // [PutForwards=value] readonly attribute DOM SettableTokenList headers;31 // [PutForwards=value] readonly attribute DOMTokenList headers; 32 32 [Reflect] attribute DOMString headers; 33 33 -
trunk/Source/WebCore/page/DOMWindow.cpp
r196080 r196123 41 41 #include "DOMApplicationCache.h" 42 42 #include "DOMSelection.h" 43 #include "DOMSettableTokenList.h"44 43 #include "DOMStringList.h" 45 44 #include "DOMTimer.h" -
trunk/Source/WebCore/page/DOMWindow.idl
r195953 r196123 197 197 // Additional constructors. 198 198 [CustomGetter, CustomConstructor] attribute HTMLImageElementNamedConstructor Image; // Usable with new operator 199 attribute DOMTokenListConstructor DOMSettableTokenList; // Map DOMSettableTokenList to DOMTokenList for backward compatibility. 199 200 200 201 [Conditional=IOS_TOUCH_EVENTS, CustomGetter] attribute TouchConstructor Touch; // Usable with the new operator
Note: See TracChangeset
for help on using the changeset viewer.