Changeset 202937 in webkit
- Timestamp:
- Jul 7, 2016, 3:36:42 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 5 deleted
- 20 edited
-
LayoutTests/fast/dom/wrapper-classes-expected.txt (modified) (2 diffs)
-
LayoutTests/fast/dom/wrapper-classes.html (modified) (1 diff)
-
LayoutTests/imported/w3c/ChangeLog (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/html/dom/interfaces-expected.txt (modified) (3 diffs)
-
LayoutTests/imported/w3c/web-platform-tests/html/semantics/interfaces-expected.txt (modified) (1 diff)
-
LayoutTests/platform/ios-simulator/imported/w3c/web-platform-tests/html/semantics/interfaces-expected.txt (modified) (1 diff)
-
LayoutTests/platform/mac-yosemite/js/dom/global-constructors-attributes-expected.txt (modified) (2 diffs)
-
LayoutTests/platform/mac/js/dom/global-constructors-attributes-expected.txt (modified) (2 diffs)
-
LayoutTests/platform/win/js/dom/global-constructors-attributes-expected.txt (modified) (2 diffs)
-
Source/WebCore/CMakeLists.txt (modified) (2 diffs)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/DerivedSources.cpp (modified) (1 diff)
-
Source/WebCore/DerivedSources.make (modified) (1 diff)
-
Source/WebCore/WebCore.xcodeproj/project.pbxproj (modified) (11 diffs)
-
Source/WebCore/html/HTMLElementsAllInOne.cpp (modified) (1 diff)
-
Source/WebCore/html/HTMLTableCellElement.cpp (modified) (2 diffs)
-
Source/WebCore/html/HTMLTableCellElement.h (modified) (2 diffs)
-
Source/WebCore/html/HTMLTableCellElement.idl (modified) (1 diff)
-
Source/WebCore/html/HTMLTableDataCellElement.h (deleted)
-
Source/WebCore/html/HTMLTableDataCellElement.idl (deleted)
-
Source/WebCore/html/HTMLTableHeaderCellElement.cpp (deleted)
-
Source/WebCore/html/HTMLTableHeaderCellElement.h (deleted)
-
Source/WebCore/html/HTMLTableHeaderCellElement.idl (deleted)
-
Source/WebCore/html/HTMLTableRowElement.cpp (modified) (2 diffs)
-
Source/WebCore/html/HTMLTagNames.in (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/fast/dom/wrapper-classes-expected.txt
r196392 r202937 447 447 PASS tagJSWrapperPrototypeClass('tbody') is 'HTMLTableSectionElementPrototype' 448 448 PASS tagJSWrapperConstructorClass('tbody') is 'Function' 449 PASS tagJSWrapperClass('td') is 'HTMLTable DataCellElement'450 PASS tagJSWrapperPrototypeClass('td') is 'HTMLTable DataCellElementPrototype'449 PASS tagJSWrapperClass('td') is 'HTMLTableCellElement' 450 PASS tagJSWrapperPrototypeClass('td') is 'HTMLTableCellElementPrototype' 451 451 PASS tagJSWrapperConstructorClass('td') is 'Function' 452 452 PASS tagJSWrapperClass('textarea') is 'HTMLTextAreaElement' … … 456 456 PASS tagJSWrapperPrototypeClass('tfoot') is 'HTMLTableSectionElementPrototype' 457 457 PASS tagJSWrapperConstructorClass('tfoot') is 'Function' 458 PASS tagJSWrapperClass('th') is 'HTMLTable HeaderCellElement'459 PASS tagJSWrapperPrototypeClass('th') is 'HTMLTable HeaderCellElementPrototype'458 PASS tagJSWrapperClass('th') is 'HTMLTableCellElement' 459 PASS tagJSWrapperPrototypeClass('th') is 'HTMLTableCellElementPrototype' 460 460 PASS tagJSWrapperConstructorClass('th') is 'Function' 461 461 PASS tagJSWrapperClass('thead') is 'HTMLTableSectionElement' -
trunk/LayoutTests/fast/dom/wrapper-classes.html
r196392 r202937 248 248 testTag("table", "HTMLTableElement"); 249 249 testTag("tbody", "HTMLTableSectionElement"); 250 testTag("td", "HTMLTable DataCellElement");250 testTag("td", "HTMLTableCellElement"); 251 251 testTag("textarea", "HTMLTextAreaElement"); 252 252 testTag("tfoot", "HTMLTableSectionElement"); 253 testTag("th", "HTMLTable HeaderCellElement");253 testTag("th", "HTMLTableCellElement"); 254 254 testTag("thead", "HTMLTableSectionElement"); 255 255 testTag("title", "HTMLTitleElement"); -
trunk/LayoutTests/imported/w3c/ChangeLog
r202910 r202937 1 2016-07-07 Chris Dumez <cdumez@apple.com> 2 3 td / th should be exposed as HTMLTableCellElement objects 4 https://bugs.webkit.org/show_bug.cgi?id=159518 5 <rdar://problem/27225436> 6 7 Reviewed by Ryosuke Niwa. 8 9 Rebaseline W3C tests now that more checks are passing. 10 11 * web-platform-tests/html/dom/interfaces-expected.txt: 12 * web-platform-tests/html/semantics/interfaces-expected.txt: 13 1 14 2016-07-07 Youenn Fablet <youenn@apple.com> 2 15 -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/interfaces-expected.txt
r202539 r202937 2838 2838 PASS HTMLTableCellElement interface: attribute headers 2839 2839 PASS HTMLTableCellElement interface: attribute cellIndex 2840 FAIL HTMLTableCellElement interface: attribute scope assert_true: The prototype object must have a property "scope" expected true got false 2841 FAIL HTMLTableCellElement interface: attribute abbr assert_true: The prototype object must have a property "abbr" expected true got false 2840 PASS HTMLTableCellElement interface: attribute scope 2841 PASS HTMLTableCellElement interface: attribute abbr 2842 2842 PASS HTMLTableCellElement interface: attribute align 2843 2843 PASS HTMLTableCellElement interface: attribute axis … … 2849 2849 PASS HTMLTableCellElement interface: attribute vAlign 2850 2850 PASS HTMLTableCellElement interface: attribute bgColor 2851 FAIL HTMLTableCellElement must be primary interface of document.createElement("td") assert_equals: document.createElement("td")'s prototype is not HTMLTableCellElement.prototype expected object "[object HTMLTableCellElementPrototype]" but got object "[object HTMLTableDataCellElementPrototype]" 2852 FAIL Stringification of document.createElement("td") assert_equals: class string of document.createElement("td") expected "[object HTMLTableCellElement]" but got "[object HTMLTableDataCellElement]" 2851 PASS HTMLTableCellElement must be primary interface of document.createElement("td") 2852 PASS Stringification of document.createElement("td") 2853 2853 PASS HTMLTableCellElement interface: document.createElement("td") must inherit property "colSpan" with the proper type (0) 2854 2854 PASS HTMLTableCellElement interface: document.createElement("td") must inherit property "rowSpan" with the proper type (1) … … 2866 2866 PASS HTMLTableCellElement interface: document.createElement("td") must inherit property "vAlign" with the proper type (13) 2867 2867 PASS HTMLTableCellElement interface: document.createElement("td") must inherit property "bgColor" with the proper type (14) 2868 FAIL HTMLTableCellElement must be primary interface of document.createElement("th") assert_equals: document.createElement("th")'s prototype is not HTMLTableCellElement.prototype expected object "[object HTMLTableCellElementPrototype]" but got object "[object HTMLTableHeaderCellElementPrototype]" 2869 FAIL Stringification of document.createElement("th") assert_equals: class string of document.createElement("th") expected "[object HTMLTableCellElement]" but got "[object HTMLTableHeaderCellElement]" 2868 PASS HTMLTableCellElement must be primary interface of document.createElement("th") 2869 PASS Stringification of document.createElement("th") 2870 2870 PASS HTMLTableCellElement interface: document.createElement("th") must inherit property "colSpan" with the proper type (0) 2871 2871 PASS HTMLTableCellElement interface: document.createElement("th") must inherit property "rowSpan" with the proper type (1) -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/interfaces-expected.txt
r202471 r202937 261 261 PASS Interfaces for tbody 262 262 PASS Interfaces for TBODY 263 FAIL Interfaces for td assert_equals: Element td should have HTMLTableCellElement as its primary interface. expected "[object HTMLTableCellElement]" but got "[object HTMLTableDataCellElement]" 264 FAIL Interfaces for TD assert_equals: Element TD should have HTMLTableCellElement as its primary interface. expected "[object HTMLTableCellElement]" but got "[object HTMLTableDataCellElement]" 263 PASS Interfaces for td 264 PASS Interfaces for TD 265 265 PASS Interfaces for textarea 266 266 PASS Interfaces for TEXTAREA 267 267 PASS Interfaces for tfoot 268 268 PASS Interfaces for TFOOT 269 FAIL Interfaces for th assert_equals: Element th should have HTMLTableCellElement as its primary interface. expected "[object HTMLTableCellElement]" but got "[object HTMLTableHeaderCellElement]" 270 FAIL Interfaces for TH assert_equals: Element TH should have HTMLTableCellElement as its primary interface. expected "[object HTMLTableCellElement]" but got "[object HTMLTableHeaderCellElement]" 269 PASS Interfaces for th 270 PASS Interfaces for TH 271 271 PASS Interfaces for thead 272 272 PASS Interfaces for THEAD -
trunk/LayoutTests/platform/ios-simulator/imported/w3c/web-platform-tests/html/semantics/interfaces-expected.txt
r202471 r202937 261 261 PASS Interfaces for tbody 262 262 PASS Interfaces for TBODY 263 FAIL Interfaces for td assert_equals: Element td should have HTMLTableCellElement as its primary interface. expected "[object HTMLTableCellElement]" but got "[object HTMLTableDataCellElement]" 264 FAIL Interfaces for TD assert_equals: Element TD should have HTMLTableCellElement as its primary interface. expected "[object HTMLTableCellElement]" but got "[object HTMLTableDataCellElement]" 263 PASS Interfaces for td 264 PASS Interfaces for TD 265 265 PASS Interfaces for textarea 266 266 PASS Interfaces for TEXTAREA 267 267 PASS Interfaces for tfoot 268 268 PASS Interfaces for TFOOT 269 FAIL Interfaces for th assert_equals: Element th should have HTMLTableCellElement as its primary interface. expected "[object HTMLTableCellElement]" but got "[object HTMLTableHeaderCellElement]" 270 FAIL Interfaces for TH assert_equals: Element TH should have HTMLTableCellElement as its primary interface. expected "[object HTMLTableCellElement]" but got "[object HTMLTableHeaderCellElement]" 269 PASS Interfaces for th 270 PASS Interfaces for TH 271 271 PASS Interfaces for thead 272 272 PASS Interfaces for THEAD -
trunk/LayoutTests/platform/mac-yosemite/js/dom/global-constructors-attributes-expected.txt
r202625 r202937 789 789 PASS Object.getOwnPropertyDescriptor(global, 'HTMLTableColElement').enumerable is false 790 790 PASS Object.getOwnPropertyDescriptor(global, 'HTMLTableColElement').configurable is true 791 PASS Object.getOwnPropertyDescriptor(global, 'HTMLTableDataCellElement').value is HTMLTableDataCellElement792 PASS Object.getOwnPropertyDescriptor(global, 'HTMLTableDataCellElement').hasOwnProperty('get') is false793 PASS Object.getOwnPropertyDescriptor(global, 'HTMLTableDataCellElement').hasOwnProperty('set') is false794 PASS Object.getOwnPropertyDescriptor(global, 'HTMLTableDataCellElement').enumerable is false795 PASS Object.getOwnPropertyDescriptor(global, 'HTMLTableDataCellElement').configurable is true796 791 PASS Object.getOwnPropertyDescriptor(global, 'HTMLTableElement').value is HTMLTableElement 797 792 PASS Object.getOwnPropertyDescriptor(global, 'HTMLTableElement').hasOwnProperty('get') is false … … 799 794 PASS Object.getOwnPropertyDescriptor(global, 'HTMLTableElement').enumerable is false 800 795 PASS Object.getOwnPropertyDescriptor(global, 'HTMLTableElement').configurable is true 801 PASS Object.getOwnPropertyDescriptor(global, 'HTMLTableHeaderCellElement').value is HTMLTableHeaderCellElement802 PASS Object.getOwnPropertyDescriptor(global, 'HTMLTableHeaderCellElement').hasOwnProperty('get') is false803 PASS Object.getOwnPropertyDescriptor(global, 'HTMLTableHeaderCellElement').hasOwnProperty('set') is false804 PASS Object.getOwnPropertyDescriptor(global, 'HTMLTableHeaderCellElement').enumerable is false805 PASS Object.getOwnPropertyDescriptor(global, 'HTMLTableHeaderCellElement').configurable is true806 796 PASS Object.getOwnPropertyDescriptor(global, 'HTMLTableRowElement').value is HTMLTableRowElement 807 797 PASS Object.getOwnPropertyDescriptor(global, 'HTMLTableRowElement').hasOwnProperty('get') is false -
trunk/LayoutTests/platform/mac/js/dom/global-constructors-attributes-expected.txt
r202625 r202937 789 789 PASS Object.getOwnPropertyDescriptor(global, 'HTMLTableColElement').enumerable is false 790 790 PASS Object.getOwnPropertyDescriptor(global, 'HTMLTableColElement').configurable is true 791 PASS Object.getOwnPropertyDescriptor(global, 'HTMLTableDataCellElement').value is HTMLTableDataCellElement792 PASS Object.getOwnPropertyDescriptor(global, 'HTMLTableDataCellElement').hasOwnProperty('get') is false793 PASS Object.getOwnPropertyDescriptor(global, 'HTMLTableDataCellElement').hasOwnProperty('set') is false794 PASS Object.getOwnPropertyDescriptor(global, 'HTMLTableDataCellElement').enumerable is false795 PASS Object.getOwnPropertyDescriptor(global, 'HTMLTableDataCellElement').configurable is true796 791 PASS Object.getOwnPropertyDescriptor(global, 'HTMLTableElement').value is HTMLTableElement 797 792 PASS Object.getOwnPropertyDescriptor(global, 'HTMLTableElement').hasOwnProperty('get') is false … … 799 794 PASS Object.getOwnPropertyDescriptor(global, 'HTMLTableElement').enumerable is false 800 795 PASS Object.getOwnPropertyDescriptor(global, 'HTMLTableElement').configurable is true 801 PASS Object.getOwnPropertyDescriptor(global, 'HTMLTableHeaderCellElement').value is HTMLTableHeaderCellElement802 PASS Object.getOwnPropertyDescriptor(global, 'HTMLTableHeaderCellElement').hasOwnProperty('get') is false803 PASS Object.getOwnPropertyDescriptor(global, 'HTMLTableHeaderCellElement').hasOwnProperty('set') is false804 PASS Object.getOwnPropertyDescriptor(global, 'HTMLTableHeaderCellElement').enumerable is false805 PASS Object.getOwnPropertyDescriptor(global, 'HTMLTableHeaderCellElement').configurable is true806 796 PASS Object.getOwnPropertyDescriptor(global, 'HTMLTableRowElement').value is HTMLTableRowElement 807 797 PASS Object.getOwnPropertyDescriptor(global, 'HTMLTableRowElement').hasOwnProperty('get') is false -
trunk/LayoutTests/platform/win/js/dom/global-constructors-attributes-expected.txt
r199159 r202937 639 639 PASS Object.getOwnPropertyDescriptor(global, 'HTMLTableColElement').enumerable is false 640 640 PASS Object.getOwnPropertyDescriptor(global, 'HTMLTableColElement').configurable is true 641 PASS Object.getOwnPropertyDescriptor(global, 'HTMLTableDataCellElement').value is HTMLTableDataCellElement642 PASS Object.getOwnPropertyDescriptor(global, 'HTMLTableDataCellElement').hasOwnProperty('get') is false643 PASS Object.getOwnPropertyDescriptor(global, 'HTMLTableDataCellElement').hasOwnProperty('set') is false644 PASS Object.getOwnPropertyDescriptor(global, 'HTMLTableDataCellElement').enumerable is false645 PASS Object.getOwnPropertyDescriptor(global, 'HTMLTableDataCellElement').configurable is true646 641 PASS Object.getOwnPropertyDescriptor(global, 'HTMLTableElement').value is HTMLTableElement 647 642 PASS Object.getOwnPropertyDescriptor(global, 'HTMLTableElement').hasOwnProperty('get') is false … … 649 644 PASS Object.getOwnPropertyDescriptor(global, 'HTMLTableElement').enumerable is false 650 645 PASS Object.getOwnPropertyDescriptor(global, 'HTMLTableElement').configurable is true 651 PASS Object.getOwnPropertyDescriptor(global, 'HTMLTableHeaderCellElement').value is HTMLTableHeaderCellElement652 PASS Object.getOwnPropertyDescriptor(global, 'HTMLTableHeaderCellElement').hasOwnProperty('get') is false653 PASS Object.getOwnPropertyDescriptor(global, 'HTMLTableHeaderCellElement').hasOwnProperty('set') is false654 PASS Object.getOwnPropertyDescriptor(global, 'HTMLTableHeaderCellElement').enumerable is false655 PASS Object.getOwnPropertyDescriptor(global, 'HTMLTableHeaderCellElement').configurable is true656 646 PASS Object.getOwnPropertyDescriptor(global, 'HTMLTableRowElement').value is HTMLTableRowElement 657 647 PASS Object.getOwnPropertyDescriptor(global, 'HTMLTableRowElement').hasOwnProperty('get') is false -
trunk/Source/WebCore/CMakeLists.txt
r202930 r202937 507 507 html/HTMLTableCellElement.idl 508 508 html/HTMLTableColElement.idl 509 html/HTMLTableDataCellElement.idl510 509 html/HTMLTableElement.idl 511 html/HTMLTableHeaderCellElement.idl512 510 html/HTMLTableRowElement.idl 513 511 html/HTMLTableSectionElement.idl … … 1720 1718 html/HTMLTableColElement.cpp 1721 1719 html/HTMLTableElement.cpp 1722 html/HTMLTableHeaderCellElement.cpp1723 1720 html/HTMLTablePartElement.cpp 1724 1721 html/HTMLTableRowElement.cpp -
trunk/Source/WebCore/ChangeLog
r202935 r202937 1 2016-07-07 Chris Dumez <cdumez@apple.com> 2 3 td / th should be exposed as HTMLTableCellElement objects 4 https://bugs.webkit.org/show_bug.cgi?id=159518 5 <rdar://problem/27225436> 6 7 Reviewed by Ryosuke Niwa. 8 9 td / th should be exposed as HTMLTableCellElement objects: 10 - https://html.spec.whatwg.org/multipage/tables.html#the-td-element 11 - https://html.spec.whatwg.org/multipage/tables.html#the-th-element 12 13 We were using HTMLTableDataCellElement / HTMLTableHeaderCellElement 14 sub-types. 15 16 Firefox and Chrome match the current specification. 17 18 We actually introduced these types recently via Bug 148859 to align 19 with an older version of the HTML specification. However, it seems the 20 specification has been updated to match Firefox / Chrome in the mean 21 time. 22 23 Since we have not shipped those subtypes yet, the compatibility risk is 24 low. 25 26 No new tests, rebaselined existing tests. 27 28 * CMakeLists.txt: 29 * DerivedSources.cpp: 30 * DerivedSources.make: 31 * WebCore.xcodeproj/project.pbxproj: 32 * html/HTMLElementsAllInOne.cpp: 33 * html/HTMLTableCellElement.cpp: 34 (WebCore::HTMLTableCellElement::create): 35 (WebCore::HTMLTableCellElement::scope): 36 (WebCore::HTMLTableCellElement::setScope): 37 (WebCore::HTMLTableCellElement::setRowSpanForBindings): Deleted. 38 * html/HTMLTableCellElement.h: 39 * html/HTMLTableCellElement.idl: 40 * html/HTMLTableDataCellElement.h: Removed. 41 * html/HTMLTableDataCellElement.idl: Removed. 42 * html/HTMLTableHeaderCellElement.cpp: Removed. 43 * html/HTMLTableHeaderCellElement.h: Removed. 44 * html/HTMLTableHeaderCellElement.idl: Removed. 45 * html/HTMLTableRowElement.cpp: 46 (WebCore::HTMLTableRowElement::insertCell): 47 * html/HTMLTagNames.in: 48 1 49 2016-07-07 Brady Eidson <beidson@apple.com> 2 50 -
trunk/Source/WebCore/DerivedSources.cpp
r202848 r202937 284 284 #include "JSHTMLTableCellElement.cpp" 285 285 #include "JSHTMLTableColElement.cpp" 286 #include "JSHTMLTableDataCellElement.cpp"287 286 #include "JSHTMLTableElement.cpp" 288 #include "JSHTMLTableHeaderCellElement.cpp"289 287 #include "JSHTMLTableRowElement.cpp" 290 288 #include "JSHTMLTableSectionElement.cpp" -
trunk/Source/WebCore/DerivedSources.make
r202873 r202937 427 427 $(WebCore)/html/HTMLTableCellElement.idl \ 428 428 $(WebCore)/html/HTMLTableColElement.idl \ 429 $(WebCore)/html/HTMLTableDataCellElement.idl \430 429 $(WebCore)/html/HTMLTableElement.idl \ 431 $(WebCore)/html/HTMLTableHeaderCellElement.idl \432 430 $(WebCore)/html/HTMLTableRowElement.idl \ 433 431 $(WebCore)/html/HTMLTableSectionElement.idl \ -
trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj
r202930 r202937 1795 1795 46DB7D571B20FE46005651B2 /* VNodeTrackerCocoa.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 46DB7D561B20FE3C005651B2 /* VNodeTrackerCocoa.cpp */; }; 1796 1796 46DBB6501AB8C96F00D9A813 /* PowerObserverMac.h in Headers */ = {isa = PBXBuildFile; fileRef = 46DBB64E1AB8C96F00D9A813 /* PowerObserverMac.h */; }; 1797 46DCFDC01C768A150025B868 /* HTMLTableHeaderCellElement.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 46DCFDBF1C768A150025B868 /* HTMLTableHeaderCellElement.cpp */; };1798 1797 46EBEA021B7D4D6500BE4941 /* CollectionTraversal.h in Headers */ = {isa = PBXBuildFile; fileRef = 46EBEA011B7D4D5D00BE4941 /* CollectionTraversal.h */; }; 1799 1798 46F3E3F91B2109000087ED13 /* VNodeTracker.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 46DB7D581B20FE58005651B2 /* VNodeTracker.cpp */; }; … … 2938 2937 8367587E1C56E99B008A1087 /* JSHTMLDataElement.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 834B86A91C56E93E00F3F0E3 /* JSHTMLDataElement.cpp */; }; 2939 2938 8367587F1C56E99B008A1087 /* JSHTMLDataElement.h in Headers */ = {isa = PBXBuildFile; fileRef = 834B86A81C56E93E00F3F0E3 /* JSHTMLDataElement.h */; }; 2940 836BAD211BD1CA670037356A /* HTMLTableHeaderCellElement.h in Headers */ = {isa = PBXBuildFile; fileRef = 836BAD1F1BD1CA670037356A /* HTMLTableHeaderCellElement.h */; };2941 836BAD221BD1CA670037356A /* HTMLTableDataCellElement.h in Headers */ = {isa = PBXBuildFile; fileRef = 836BAD201BD1CA670037356A /* HTMLTableDataCellElement.h */; };2942 2939 836C14431CDEAFD80073493F /* JSXPathNSResolverCustom.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 836C14421CDEAFCA0073493F /* JSXPathNSResolverCustom.cpp */; }; 2943 836CB1F61BD1E41800AF1591 /* JSHTMLTableHeaderCellElement.h in Headers */ = {isa = PBXBuildFile; fileRef = 836CB1F21BD1E41800AF1591 /* JSHTMLTableHeaderCellElement.h */; };2944 836CB1F71BD1E41800AF1591 /* JSHTMLTableHeaderCellElement.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 836CB1F31BD1E41800AF1591 /* JSHTMLTableHeaderCellElement.cpp */; };2945 836CB1F81BD1E41800AF1591 /* JSHTMLTableDataCellElement.h in Headers */ = {isa = PBXBuildFile; fileRef = 836CB1F41BD1E41800AF1591 /* JSHTMLTableDataCellElement.h */; };2946 836CB1F91BD1E41800AF1591 /* JSHTMLTableDataCellElement.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 836CB1F51BD1E41800AF1591 /* JSHTMLTableDataCellElement.cpp */; };2947 2940 836DAA061CEAB80D00A2B707 /* RenderDescendantIterator.h in Headers */ = {isa = PBXBuildFile; fileRef = 836DAA051CEAB7CD00A2B707 /* RenderDescendantIterator.h */; }; 2948 2941 836FBCEA178C113200B21A15 /* SVGAnimatedTypeAnimator.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 836FBCE9178C113200B21A15 /* SVGAnimatedTypeAnimator.cpp */; }; … … 9419 9412 46DB7D591B20FE58005651B2 /* VNodeTracker.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = VNodeTracker.h; sourceTree = "<group>"; }; 9420 9413 46DBB64E1AB8C96F00D9A813 /* PowerObserverMac.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PowerObserverMac.h; sourceTree = "<group>"; }; 9421 46DCFDBF1C768A150025B868 /* HTMLTableHeaderCellElement.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = HTMLTableHeaderCellElement.cpp; sourceTree = "<group>"; };9422 9414 46EBEA011B7D4D5D00BE4941 /* CollectionTraversal.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CollectionTraversal.h; sourceTree = "<group>"; }; 9423 9415 46F2768E1B85297F005C2556 /* JSDOMNamedFlowCollectionCustom.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSDOMNamedFlowCollectionCustom.cpp; sourceTree = "<group>"; }; … … 10691 10683 835F8B261D2D90BA00E408EC /* Slotable.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = Slotable.idl; sourceTree = "<group>"; }; 10692 10684 8369E58F1AFDD0300087DF68 /* NonDocumentTypeChildNode.idl */ = {isa = PBXFileReference; lastKnownFileType = text; path = NonDocumentTypeChildNode.idl; sourceTree = "<group>"; }; 10693 836BAD1F1BD1CA670037356A /* HTMLTableHeaderCellElement.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HTMLTableHeaderCellElement.h; sourceTree = "<group>"; };10694 836BAD201BD1CA670037356A /* HTMLTableDataCellElement.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HTMLTableDataCellElement.h; sourceTree = "<group>"; };10695 10685 836C14421CDEAFCA0073493F /* JSXPathNSResolverCustom.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSXPathNSResolverCustom.cpp; sourceTree = "<group>"; }; 10696 836CB1F21BD1E41800AF1591 /* JSHTMLTableHeaderCellElement.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSHTMLTableHeaderCellElement.h; sourceTree = "<group>"; };10697 836CB1F31BD1E41800AF1591 /* JSHTMLTableHeaderCellElement.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSHTMLTableHeaderCellElement.cpp; sourceTree = "<group>"; };10698 836CB1F41BD1E41800AF1591 /* JSHTMLTableDataCellElement.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSHTMLTableDataCellElement.h; sourceTree = "<group>"; };10699 836CB1F51BD1E41800AF1591 /* JSHTMLTableDataCellElement.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSHTMLTableDataCellElement.cpp; sourceTree = "<group>"; };10700 10686 836DAA051CEAB7CD00A2B707 /* RenderDescendantIterator.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RenderDescendantIterator.h; sourceTree = "<group>"; }; 10701 10687 836FBCE9178C113200B21A15 /* SVGAnimatedTypeAnimator.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = SVGAnimatedTypeAnimator.cpp; sourceTree = "<group>"; }; … … 10742 10728 83F570AD1C53268E007FD6CB /* JSXMLDocument.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSXMLDocument.h; sourceTree = "<group>"; }; 10743 10729 83F570AE1C53268E007FD6CB /* JSXMLDocument.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSXMLDocument.cpp; sourceTree = "<group>"; }; 10744 83FE5F1F1BD1C55E0038BEEC /* HTMLTableHeaderCellElement.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = HTMLTableHeaderCellElement.idl; sourceTree = "<group>"; };10745 83FE5F201BD1C55E0038BEEC /* HTMLTableDataCellElement.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = HTMLTableDataCellElement.idl; sourceTree = "<group>"; };10746 10730 8419D2A4120D92D000141F8F /* SVGPathByteStream.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SVGPathByteStream.h; sourceTree = "<group>"; }; 10747 10731 8419D2A5120D92D000141F8F /* SVGPathByteStreamBuilder.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = SVGPathByteStreamBuilder.cpp; sourceTree = "<group>"; }; … … 19601 19585 A871DB210A150BD600B12A68 /* HTMLTableColElement.h */, 19602 19586 855542590AA48B1E00BA89F2 /* HTMLTableColElement.idl */, 19603 836BAD201BD1CA670037356A /* HTMLTableDataCellElement.h */,19604 83FE5F201BD1C55E0038BEEC /* HTMLTableDataCellElement.idl */,19605 19587 A871DB1A0A150BD600B12A68 /* HTMLTableElement.cpp */, 19606 19588 A871DB190A150BD600B12A68 /* HTMLTableElement.h */, 19607 19589 8555425A0AA48B1E00BA89F2 /* HTMLTableElement.idl */, 19608 46DCFDBF1C768A150025B868 /* HTMLTableHeaderCellElement.cpp */,19609 836BAD1F1BD1CA670037356A /* HTMLTableHeaderCellElement.h */,19610 83FE5F1F1BD1C55E0038BEEC /* HTMLTableHeaderCellElement.idl */,19611 19590 A871DB1F0A150BD600B12A68 /* HTMLTablePartElement.cpp */, 19612 19591 A871DB1E0A150BD600B12A68 /* HTMLTablePartElement.h */, … … 20547 20526 BC06ED990BFD660600856E9D /* JSHTMLTableColElement.cpp */, 20548 20527 BC06ED9A0BFD660600856E9D /* JSHTMLTableColElement.h */, 20549 836CB1F51BD1E41800AF1591 /* JSHTMLTableDataCellElement.cpp */,20550 836CB1F41BD1E41800AF1591 /* JSHTMLTableDataCellElement.h */,20551 20528 BC06EE020BFD71AA00856E9D /* JSHTMLTableElement.cpp */, 20552 20529 BC06EE030BFD71AA00856E9D /* JSHTMLTableElement.h */, 20553 836CB1F31BD1E41800AF1591 /* JSHTMLTableHeaderCellElement.cpp */,20554 836CB1F21BD1E41800AF1591 /* JSHTMLTableHeaderCellElement.h */,20555 20530 BC06ED9B0BFD660600856E9D /* JSHTMLTableRowElement.cpp */, 20556 20531 BC06ED9C0BFD660600856E9D /* JSHTMLTableRowElement.h */, … … 26588 26563 A871DB2A0A150BD600B12A68 /* HTMLTableCellElement.h in Headers */, 26589 26564 A871DB2F0A150BD600B12A68 /* HTMLTableColElement.h in Headers */, 26590 836BAD221BD1CA670037356A /* HTMLTableDataCellElement.h in Headers */,26591 26565 A871DB270A150BD600B12A68 /* HTMLTableElement.h in Headers */, 26592 836BAD211BD1CA670037356A /* HTMLTableHeaderCellElement.h in Headers */,26593 26566 A871DB2C0A150BD600B12A68 /* HTMLTablePartElement.h in Headers */, 26594 26567 A871DB310A150BD600B12A68 /* HTMLTableRowElement.h in Headers */, … … 26988 26961 BC06EDE40BFD6D0D00856E9D /* JSHTMLTableCellElement.h in Headers */, 26989 26962 BC06ED9E0BFD660600856E9D /* JSHTMLTableColElement.h in Headers */, 26990 836CB1F81BD1E41800AF1591 /* JSHTMLTableDataCellElement.h in Headers */,26991 26963 BC06EE050BFD71AA00856E9D /* JSHTMLTableElement.h in Headers */, 26992 836CB1F61BD1E41800AF1591 /* JSHTMLTableHeaderCellElement.h in Headers */,26993 26964 BC06EDA00BFD660600856E9D /* JSHTMLTableRowElement.h in Headers */, 26994 26965 BC06ED070BFD5BAE00856E9D /* JSHTMLTableSectionElement.h in Headers */, … … 30322 30293 A871DB290A150BD600B12A68 /* HTMLTableColElement.cpp in Sources */, 30323 30294 A871DB280A150BD600B12A68 /* HTMLTableElement.cpp in Sources */, 30324 46DCFDC01C768A150025B868 /* HTMLTableHeaderCellElement.cpp in Sources */,30325 30295 A871DB2D0A150BD600B12A68 /* HTMLTablePartElement.cpp in Sources */, 30326 30296 A871DB300A150BD600B12A68 /* HTMLTableRowElement.cpp in Sources */, … … 30755 30725 BC06EDE30BFD6D0D00856E9D /* JSHTMLTableCellElement.cpp in Sources */, 30756 30726 BC06ED9D0BFD660600856E9D /* JSHTMLTableColElement.cpp in Sources */, 30757 836CB1F91BD1E41800AF1591 /* JSHTMLTableDataCellElement.cpp in Sources */,30758 30727 BC06EE040BFD71AA00856E9D /* JSHTMLTableElement.cpp in Sources */, 30759 836CB1F71BD1E41800AF1591 /* JSHTMLTableHeaderCellElement.cpp in Sources */,30760 30728 BC06ED9F0BFD660600856E9D /* JSHTMLTableRowElement.cpp in Sources */, 30761 30729 BC06ED060BFD5BAE00856E9D /* JSHTMLTableSectionElement.cpp in Sources */, -
trunk/Source/WebCore/html/HTMLElementsAllInOne.cpp
r201084 r202937 103 103 #include "HTMLTableColElement.cpp" 104 104 #include "HTMLTableElement.cpp" 105 #include "HTMLTableHeaderCellElement.cpp"106 105 #include "HTMLTablePartElement.cpp" 107 106 #include "HTMLTableRowElement.cpp" -
trunk/Source/WebCore/html/HTMLTableCellElement.cpp
r197779 r202937 37 37 using namespace HTMLNames; 38 38 39 Ref<HTMLTableCellElement> HTMLTableCellElement::create(const QualifiedName& tagName, Document& document) 40 { 41 return adoptRef(*new HTMLTableCellElement(tagName, document)); 42 } 43 39 44 HTMLTableCellElement::HTMLTableCellElement(const QualifiedName& tagName, Document& document) 40 45 : HTMLTablePartElement(tagName, document) … … 155 160 } 156 161 157 String HTMLTableCellElement::scope() const 158 { 159 return fastGetAttribute(scopeAttr); 162 const AtomicString& HTMLTableCellElement::scope() const 163 { 164 // https://html.spec.whatwg.org/multipage/tables.html#attr-th-scope 165 static NeverDestroyed<const AtomicString> row("row", AtomicString::ConstructFromLiteral); 166 static NeverDestroyed<const AtomicString> col("col", AtomicString::ConstructFromLiteral); 167 static NeverDestroyed<const AtomicString> rowgroup("rowgroup", AtomicString::ConstructFromLiteral); 168 static NeverDestroyed<const AtomicString> colgroup("colgroup", AtomicString::ConstructFromLiteral); 169 170 const AtomicString& value = fastGetAttribute(HTMLNames::scopeAttr); 171 172 // Only conforming for th elements. 173 if (!hasTagName(thTag)) 174 return value; 175 176 if (equalIgnoringASCIICase(value, row)) 177 return row; 178 if (equalIgnoringASCIICase(value, col)) 179 return col; 180 if (equalIgnoringASCIICase(value, rowgroup)) 181 return rowgroup; 182 if (equalIgnoringASCIICase(value, colgroup)) 183 return colgroup; 184 return emptyAtom; 185 } 186 187 void HTMLTableCellElement::setScope(const AtomicString& scope) 188 { 189 setAttributeWithoutSynchronization(scopeAttr, scope); 160 190 } 161 191 -
trunk/Source/WebCore/html/HTMLTableCellElement.h
r197779 r202937 31 31 namespace WebCore { 32 32 33 class HTMLTableCellElement : public HTMLTablePartElement {33 class HTMLTableCellElement final : public HTMLTablePartElement { 34 34 public: 35 static Ref<HTMLTableCellElement> create(const QualifiedName&, Document&); 36 35 37 int cellIndex() const; 36 38 unsigned colSpan() const; … … 46 48 String axis() const; 47 49 String headers() const; 48 String scope() const; 50 const AtomicString& scope() const; 51 void setScope(const AtomicString&); 49 52 50 53 WEBCORE_EXPORT HTMLTableCellElement* cellAbove() const; 51 54 52 pr otected:55 private: 53 56 HTMLTableCellElement(const QualifiedName&, Document&); 54 57 -
trunk/Source/WebCore/html/HTMLTableCellElement.idl
r197354 r202937 44 44 [Reflect] attribute DOMString width; 45 45 46 #if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C || defined(LANGUAGE_GOBJECT) && LANGUAGE_GOBJECT47 46 [Reflect] attribute DOMString abbr; 48 [Reflect] attribute DOMString scope; 49 #endif 47 attribute DOMString scope; 50 48 }; 51 49 -
trunk/Source/WebCore/html/HTMLTableRowElement.cpp
r200696 r202937 29 29 #include "GenericCachedHTMLCollection.h" 30 30 #include "HTMLNames.h" 31 #include "HTMLTable DataCellElement.h"31 #include "HTMLTableCellElement.h" 32 32 #include "HTMLTableElement.h" 33 33 #include "HTMLTableSectionElement.h" … … 113 113 } 114 114 115 auto cell = HTMLTable DataCellElement::create(document());115 auto cell = HTMLTableCellElement::create(tdTag, document()); 116 116 if (index < 0 || index >= numCells) 117 117 appendChild(cell, ec); -
trunk/Source/WebCore/html/HTMLTagNames.in
r202091 r202937 126 126 table 127 127 tbody interfaceName=HTMLTableSectionElement 128 td interfaceName=HTMLTable DataCellElement128 td interfaceName=HTMLTableCellElement 129 129 template 130 130 textarea interfaceName=HTMLTextAreaElement, constructorNeedsFormElement 131 131 tfoot interfaceName=HTMLTableSectionElement 132 th interfaceName=HTMLTable HeaderCellElement132 th interfaceName=HTMLTableCellElement 133 133 thead interfaceName=HTMLTableSectionElement 134 134 time
Note:
See TracChangeset
for help on using the changeset viewer.