Changeset 196793 in webkit
- Timestamp:
- Feb 18, 2016 6:45:50 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 10 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/imported/w3c/ChangeLog
r196770 r196793 1 2016-02-18 Chris Dumez <cdumez@apple.com> 2 3 HTMLTableHeaderCellElement.scope should only return known values 4 https://bugs.webkit.org/show_bug.cgi?id=154423 5 <rdar://problem/24731018> 6 7 Reviewed by Ryosuke Niwa. 8 9 Rebaseline now that more checks are passing. 10 11 * web-platform-tests/html/dom/reflection-tabular-expected.txt: 12 1 13 2016-02-18 Chris Dumez <cdumez@apple.com> 2 14 -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/reflection-tabular-expected.txt
r196769 r196793 12635 12635 PASS th.scope: setAttribute() to "" followed by IDL get 12636 12636 PASS th.scope: setAttribute() to " \0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f foo " followed by getAttribute() 12637 FAIL th.scope: setAttribute() to " \0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f foo " followed by IDL get assert_equals: expected "" but got " \0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f foo " 12637 PASS th.scope: setAttribute() to " \0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f foo " followed by IDL get 12638 12638 PASS th.scope: setAttribute() to undefined followed by getAttribute() 12639 FAIL th.scope: setAttribute() to undefined followed by IDL get assert_equals: expected "" but got "undefined" 12639 PASS th.scope: setAttribute() to undefined followed by IDL get 12640 12640 PASS th.scope: setAttribute() to 7 followed by getAttribute() 12641 FAIL th.scope: setAttribute() to 7 followed by IDL get assert_equals: expected "" but got "7" 12641 PASS th.scope: setAttribute() to 7 followed by IDL get 12642 12642 PASS th.scope: setAttribute() to 1.5 followed by getAttribute() 12643 FAIL th.scope: setAttribute() to 1.5 followed by IDL get assert_equals: expected "" but got "1.5" 12643 PASS th.scope: setAttribute() to 1.5 followed by IDL get 12644 12644 PASS th.scope: setAttribute() to true followed by getAttribute() 12645 FAIL th.scope: setAttribute() to true followed by IDL get assert_equals: expected "" but got "true" 12645 PASS th.scope: setAttribute() to true followed by IDL get 12646 12646 PASS th.scope: setAttribute() to false followed by getAttribute() 12647 FAIL th.scope: setAttribute() to false followed by IDL get assert_equals: expected "" but got "false" 12647 PASS th.scope: setAttribute() to false followed by IDL get 12648 12648 PASS th.scope: setAttribute() to object "[object Object]" followed by getAttribute() 12649 FAIL th.scope: setAttribute() to object "[object Object]" followed by IDL get assert_equals: expected "" but got "[object Object]" 12649 PASS th.scope: setAttribute() to object "[object Object]" followed by IDL get 12650 12650 PASS th.scope: setAttribute() to NaN followed by getAttribute() 12651 FAIL th.scope: setAttribute() to NaN followed by IDL get assert_equals: expected "" but got "NaN" 12651 PASS th.scope: setAttribute() to NaN followed by IDL get 12652 12652 PASS th.scope: setAttribute() to Infinity followed by getAttribute() 12653 FAIL th.scope: setAttribute() to Infinity followed by IDL get assert_equals: expected "" but got "Infinity" 12653 PASS th.scope: setAttribute() to Infinity followed by IDL get 12654 12654 PASS th.scope: setAttribute() to -Infinity followed by getAttribute() 12655 FAIL th.scope: setAttribute() to -Infinity followed by IDL get assert_equals: expected "" but got "-Infinity" 12655 PASS th.scope: setAttribute() to -Infinity followed by IDL get 12656 12656 PASS th.scope: setAttribute() to "\0" followed by getAttribute() 12657 FAIL th.scope: setAttribute() to "\0" followed by IDL get assert_equals: expected "" but got "\0" 12657 PASS th.scope: setAttribute() to "\0" followed by IDL get 12658 12658 PASS th.scope: setAttribute() to null followed by getAttribute() 12659 FAIL th.scope: setAttribute() to null followed by IDL get assert_equals: expected "" but got "null" 12659 PASS th.scope: setAttribute() to null followed by IDL get 12660 12660 PASS th.scope: setAttribute() to object "test-toString" followed by getAttribute() 12661 FAIL th.scope: setAttribute() to object "test-toString" followed by IDL get assert_equals: expected "" but got "test-toString" 12661 PASS th.scope: setAttribute() to object "test-toString" followed by IDL get 12662 12662 PASS th.scope: setAttribute() to object "test-valueOf" followed by getAttribute() 12663 FAIL th.scope: setAttribute() to object "test-valueOf" followed by IDL get assert_equals: expected "" but got "test-valueOf" 12663 PASS th.scope: setAttribute() to object "test-valueOf" followed by IDL get 12664 12664 PASS th.scope: setAttribute() to "row" followed by getAttribute() 12665 12665 PASS th.scope: setAttribute() to "row" followed by IDL get 12666 12666 PASS th.scope: setAttribute() to "xrow" followed by getAttribute() 12667 FAIL th.scope: setAttribute() to "xrow" followed by IDL get assert_equals: expected "" but got "xrow" 12667 PASS th.scope: setAttribute() to "xrow" followed by IDL get 12668 12668 PASS th.scope: setAttribute() to "row\0" followed by getAttribute() 12669 FAIL th.scope: setAttribute() to "row\0" followed by IDL get assert_equals: expected "" but got "row\0" 12669 PASS th.scope: setAttribute() to "row\0" followed by IDL get 12670 12670 PASS th.scope: setAttribute() to "ow" followed by getAttribute() 12671 FAIL th.scope: setAttribute() to "ow" followed by IDL get assert_equals: expected "" but got "ow" 12671 PASS th.scope: setAttribute() to "ow" followed by IDL get 12672 12672 PASS th.scope: setAttribute() to "ROW" followed by getAttribute() 12673 FAIL th.scope: setAttribute() to "ROW" followed by IDL get assert_equals: expected "row" but got "ROW" 12673 PASS th.scope: setAttribute() to "ROW" followed by IDL get 12674 12674 PASS th.scope: setAttribute() to "col" followed by getAttribute() 12675 12675 PASS th.scope: setAttribute() to "col" followed by IDL get 12676 12676 PASS th.scope: setAttribute() to "xcol" followed by getAttribute() 12677 FAIL th.scope: setAttribute() to "xcol" followed by IDL get assert_equals: expected "" but got "xcol" 12677 PASS th.scope: setAttribute() to "xcol" followed by IDL get 12678 12678 PASS th.scope: setAttribute() to "col\0" followed by getAttribute() 12679 FAIL th.scope: setAttribute() to "col\0" followed by IDL get assert_equals: expected "" but got "col\0" 12679 PASS th.scope: setAttribute() to "col\0" followed by IDL get 12680 12680 PASS th.scope: setAttribute() to "ol" followed by getAttribute() 12681 FAIL th.scope: setAttribute() to "ol" followed by IDL get assert_equals: expected "" but got "ol" 12681 PASS th.scope: setAttribute() to "ol" followed by IDL get 12682 12682 PASS th.scope: setAttribute() to "COL" followed by getAttribute() 12683 FAIL th.scope: setAttribute() to "COL" followed by IDL get assert_equals: expected "col" but got "COL" 12683 PASS th.scope: setAttribute() to "COL" followed by IDL get 12684 12684 PASS th.scope: setAttribute() to "rowgroup" followed by getAttribute() 12685 12685 PASS th.scope: setAttribute() to "rowgroup" followed by IDL get 12686 12686 PASS th.scope: setAttribute() to "xrowgroup" followed by getAttribute() 12687 FAIL th.scope: setAttribute() to "xrowgroup" followed by IDL get assert_equals: expected "" but got "xrowgroup" 12687 PASS th.scope: setAttribute() to "xrowgroup" followed by IDL get 12688 12688 PASS th.scope: setAttribute() to "rowgroup\0" followed by getAttribute() 12689 FAIL th.scope: setAttribute() to "rowgroup\0" followed by IDL get assert_equals: expected "" but got "rowgroup\0" 12689 PASS th.scope: setAttribute() to "rowgroup\0" followed by IDL get 12690 12690 PASS th.scope: setAttribute() to "owgroup" followed by getAttribute() 12691 FAIL th.scope: setAttribute() to "owgroup" followed by IDL get assert_equals: expected "" but got "owgroup" 12691 PASS th.scope: setAttribute() to "owgroup" followed by IDL get 12692 12692 PASS th.scope: setAttribute() to "ROWGROUP" followed by getAttribute() 12693 FAIL th.scope: setAttribute() to "ROWGROUP" followed by IDL get assert_equals: expected "rowgroup" but got "ROWGROUP" 12693 PASS th.scope: setAttribute() to "ROWGROUP" followed by IDL get 12694 12694 PASS th.scope: setAttribute() to "colgroup" followed by getAttribute() 12695 12695 PASS th.scope: setAttribute() to "colgroup" followed by IDL get 12696 12696 PASS th.scope: setAttribute() to "xcolgroup" followed by getAttribute() 12697 FAIL th.scope: setAttribute() to "xcolgroup" followed by IDL get assert_equals: expected "" but got "xcolgroup" 12697 PASS th.scope: setAttribute() to "xcolgroup" followed by IDL get 12698 12698 PASS th.scope: setAttribute() to "colgroup\0" followed by getAttribute() 12699 FAIL th.scope: setAttribute() to "colgroup\0" followed by IDL get assert_equals: expected "" but got "colgroup\0" 12699 PASS th.scope: setAttribute() to "colgroup\0" followed by IDL get 12700 12700 PASS th.scope: setAttribute() to "olgroup" followed by getAttribute() 12701 FAIL th.scope: setAttribute() to "olgroup" followed by IDL get assert_equals: expected "" but got "olgroup" 12701 PASS th.scope: setAttribute() to "olgroup" followed by IDL get 12702 12702 PASS th.scope: setAttribute() to "COLGROUP" followed by getAttribute() 12703 FAIL th.scope: setAttribute() to "COLGROUP" followed by IDL get assert_equals: expected "colgroup" but got "COLGROUP" 12703 PASS th.scope: setAttribute() to "COLGROUP" followed by IDL get 12704 12704 PASS th.scope: IDL set to "" should not throw 12705 12705 PASS th.scope: IDL set to "" followed by getAttribute() … … 12707 12707 PASS th.scope: IDL set to " \0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f foo " should not throw 12708 12708 PASS th.scope: IDL set to " \0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f foo " followed by getAttribute() 12709 FAIL th.scope: IDL set to " \0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f foo " followed by IDL get assert_equals: expected "" but got " \0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f foo " 12709 PASS th.scope: IDL set to " \0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f foo " followed by IDL get 12710 12710 PASS th.scope: IDL set to undefined should not throw 12711 12711 PASS th.scope: IDL set to undefined followed by getAttribute() 12712 FAIL th.scope: IDL set to undefined followed by IDL get assert_equals: expected "" but got "undefined" 12712 PASS th.scope: IDL set to undefined followed by IDL get 12713 12713 PASS th.scope: IDL set to 7 should not throw 12714 12714 PASS th.scope: IDL set to 7 followed by getAttribute() 12715 FAIL th.scope: IDL set to 7 followed by IDL get assert_equals: expected "" but got "7" 12715 PASS th.scope: IDL set to 7 followed by IDL get 12716 12716 PASS th.scope: IDL set to 1.5 should not throw 12717 12717 PASS th.scope: IDL set to 1.5 followed by getAttribute() 12718 FAIL th.scope: IDL set to 1.5 followed by IDL get assert_equals: expected "" but got "1.5" 12718 PASS th.scope: IDL set to 1.5 followed by IDL get 12719 12719 PASS th.scope: IDL set to true should not throw 12720 12720 PASS th.scope: IDL set to true followed by getAttribute() 12721 FAIL th.scope: IDL set to true followed by IDL get assert_equals: expected "" but got "true" 12721 PASS th.scope: IDL set to true followed by IDL get 12722 12722 PASS th.scope: IDL set to false should not throw 12723 12723 PASS th.scope: IDL set to false followed by getAttribute() 12724 FAIL th.scope: IDL set to false followed by IDL get assert_equals: expected "" but got "false" 12724 PASS th.scope: IDL set to false followed by IDL get 12725 12725 PASS th.scope: IDL set to object "[object Object]" should not throw 12726 12726 PASS th.scope: IDL set to object "[object Object]" followed by getAttribute() 12727 FAIL th.scope: IDL set to object "[object Object]" followed by IDL get assert_equals: expected "" but got "[object Object]" 12727 PASS th.scope: IDL set to object "[object Object]" followed by IDL get 12728 12728 PASS th.scope: IDL set to NaN should not throw 12729 12729 PASS th.scope: IDL set to NaN followed by getAttribute() 12730 FAIL th.scope: IDL set to NaN followed by IDL get assert_equals: expected "" but got "NaN" 12730 PASS th.scope: IDL set to NaN followed by IDL get 12731 12731 PASS th.scope: IDL set to Infinity should not throw 12732 12732 PASS th.scope: IDL set to Infinity followed by getAttribute() 12733 FAIL th.scope: IDL set to Infinity followed by IDL get assert_equals: expected "" but got "Infinity" 12733 PASS th.scope: IDL set to Infinity followed by IDL get 12734 12734 PASS th.scope: IDL set to -Infinity should not throw 12735 12735 PASS th.scope: IDL set to -Infinity followed by getAttribute() 12736 FAIL th.scope: IDL set to -Infinity followed by IDL get assert_equals: expected "" but got "-Infinity" 12736 PASS th.scope: IDL set to -Infinity followed by IDL get 12737 12737 PASS th.scope: IDL set to "\0" should not throw 12738 12738 PASS th.scope: IDL set to "\0" followed by getAttribute() 12739 FAIL th.scope: IDL set to "\0" followed by IDL get assert_equals: expected "" but got "\0" 12739 PASS th.scope: IDL set to "\0" followed by IDL get 12740 12740 PASS th.scope: IDL set to null should not throw 12741 FAIL th.scope: IDL set to null followed by IDL get assert_equals: expected "" but got "null" 12741 PASS th.scope: IDL set to null followed by IDL get 12742 12742 PASS th.scope: IDL set to object "test-toString" should not throw 12743 12743 PASS th.scope: IDL set to object "test-toString" followed by getAttribute() 12744 FAIL th.scope: IDL set to object "test-toString" followed by IDL get assert_equals: expected "" but got "test-toString" 12744 PASS th.scope: IDL set to object "test-toString" followed by IDL get 12745 12745 PASS th.scope: IDL set to object "test-valueOf" should not throw 12746 12746 PASS th.scope: IDL set to object "test-valueOf" followed by getAttribute() 12747 FAIL th.scope: IDL set to object "test-valueOf" followed by IDL get assert_equals: expected "" but got "test-valueOf" 12747 PASS th.scope: IDL set to object "test-valueOf" followed by IDL get 12748 12748 PASS th.scope: IDL set to "row" should not throw 12749 12749 PASS th.scope: IDL set to "row" followed by getAttribute() … … 12751 12751 PASS th.scope: IDL set to "xrow" should not throw 12752 12752 PASS th.scope: IDL set to "xrow" followed by getAttribute() 12753 FAIL th.scope: IDL set to "xrow" followed by IDL get assert_equals: expected "" but got "xrow" 12753 PASS th.scope: IDL set to "xrow" followed by IDL get 12754 12754 PASS th.scope: IDL set to "row\0" should not throw 12755 12755 PASS th.scope: IDL set to "row\0" followed by getAttribute() 12756 FAIL th.scope: IDL set to "row\0" followed by IDL get assert_equals: expected "" but got "row\0" 12756 PASS th.scope: IDL set to "row\0" followed by IDL get 12757 12757 PASS th.scope: IDL set to "ow" should not throw 12758 12758 PASS th.scope: IDL set to "ow" followed by getAttribute() 12759 FAIL th.scope: IDL set to "ow" followed by IDL get assert_equals: expected "" but got "ow" 12759 PASS th.scope: IDL set to "ow" followed by IDL get 12760 12760 PASS th.scope: IDL set to "ROW" should not throw 12761 12761 PASS th.scope: IDL set to "ROW" followed by getAttribute() 12762 FAIL th.scope: IDL set to "ROW" followed by IDL get assert_equals: expected "row" but got "ROW" 12762 PASS th.scope: IDL set to "ROW" followed by IDL get 12763 12763 PASS th.scope: IDL set to "col" should not throw 12764 12764 PASS th.scope: IDL set to "col" followed by getAttribute() … … 12766 12766 PASS th.scope: IDL set to "xcol" should not throw 12767 12767 PASS th.scope: IDL set to "xcol" followed by getAttribute() 12768 FAIL th.scope: IDL set to "xcol" followed by IDL get assert_equals: expected "" but got "xcol" 12768 PASS th.scope: IDL set to "xcol" followed by IDL get 12769 12769 PASS th.scope: IDL set to "col\0" should not throw 12770 12770 PASS th.scope: IDL set to "col\0" followed by getAttribute() 12771 FAIL th.scope: IDL set to "col\0" followed by IDL get assert_equals: expected "" but got "col\0" 12771 PASS th.scope: IDL set to "col\0" followed by IDL get 12772 12772 PASS th.scope: IDL set to "ol" should not throw 12773 12773 PASS th.scope: IDL set to "ol" followed by getAttribute() 12774 FAIL th.scope: IDL set to "ol" followed by IDL get assert_equals: expected "" but got "ol" 12774 PASS th.scope: IDL set to "ol" followed by IDL get 12775 12775 PASS th.scope: IDL set to "COL" should not throw 12776 12776 PASS th.scope: IDL set to "COL" followed by getAttribute() 12777 FAIL th.scope: IDL set to "COL" followed by IDL get assert_equals: expected "col" but got "COL" 12777 PASS th.scope: IDL set to "COL" followed by IDL get 12778 12778 PASS th.scope: IDL set to "rowgroup" should not throw 12779 12779 PASS th.scope: IDL set to "rowgroup" followed by getAttribute() … … 12781 12781 PASS th.scope: IDL set to "xrowgroup" should not throw 12782 12782 PASS th.scope: IDL set to "xrowgroup" followed by getAttribute() 12783 FAIL th.scope: IDL set to "xrowgroup" followed by IDL get assert_equals: expected "" but got "xrowgroup" 12783 PASS th.scope: IDL set to "xrowgroup" followed by IDL get 12784 12784 PASS th.scope: IDL set to "rowgroup\0" should not throw 12785 12785 PASS th.scope: IDL set to "rowgroup\0" followed by getAttribute() 12786 FAIL th.scope: IDL set to "rowgroup\0" followed by IDL get assert_equals: expected "" but got "rowgroup\0" 12786 PASS th.scope: IDL set to "rowgroup\0" followed by IDL get 12787 12787 PASS th.scope: IDL set to "owgroup" should not throw 12788 12788 PASS th.scope: IDL set to "owgroup" followed by getAttribute() 12789 FAIL th.scope: IDL set to "owgroup" followed by IDL get assert_equals: expected "" but got "owgroup" 12789 PASS th.scope: IDL set to "owgroup" followed by IDL get 12790 12790 PASS th.scope: IDL set to "ROWGROUP" should not throw 12791 12791 PASS th.scope: IDL set to "ROWGROUP" followed by getAttribute() 12792 FAIL th.scope: IDL set to "ROWGROUP" followed by IDL get assert_equals: expected "rowgroup" but got "ROWGROUP" 12792 PASS th.scope: IDL set to "ROWGROUP" followed by IDL get 12793 12793 PASS th.scope: IDL set to "colgroup" should not throw 12794 12794 PASS th.scope: IDL set to "colgroup" followed by getAttribute() … … 12796 12796 PASS th.scope: IDL set to "xcolgroup" should not throw 12797 12797 PASS th.scope: IDL set to "xcolgroup" followed by getAttribute() 12798 FAIL th.scope: IDL set to "xcolgroup" followed by IDL get assert_equals: expected "" but got "xcolgroup" 12798 PASS th.scope: IDL set to "xcolgroup" followed by IDL get 12799 12799 PASS th.scope: IDL set to "colgroup\0" should not throw 12800 12800 PASS th.scope: IDL set to "colgroup\0" followed by getAttribute() 12801 FAIL th.scope: IDL set to "colgroup\0" followed by IDL get assert_equals: expected "" but got "colgroup\0" 12801 PASS th.scope: IDL set to "colgroup\0" followed by IDL get 12802 12802 PASS th.scope: IDL set to "olgroup" should not throw 12803 12803 PASS th.scope: IDL set to "olgroup" followed by getAttribute() 12804 FAIL th.scope: IDL set to "olgroup" followed by IDL get assert_equals: expected "" but got "olgroup" 12804 PASS th.scope: IDL set to "olgroup" followed by IDL get 12805 12805 PASS th.scope: IDL set to "COLGROUP" should not throw 12806 12806 PASS th.scope: IDL set to "COLGROUP" followed by getAttribute() 12807 FAIL th.scope: IDL set to "COLGROUP" followed by IDL get assert_equals: expected "colgroup" but got "COLGROUP" 12807 PASS th.scope: IDL set to "COLGROUP" followed by IDL get 12808 12808 PASS th.abbr: typeof IDL attribute 12809 12809 PASS th.abbr: IDL get with DOM attribute unset -
trunk/Source/WebCore/CMakeLists.txt
r196747 r196793 1730 1730 html/HTMLTableColElement.cpp 1731 1731 html/HTMLTableElement.cpp 1732 html/HTMLTableHeaderCellElement.cpp 1732 1733 html/HTMLTablePartElement.cpp 1733 1734 html/HTMLTableRowElement.cpp -
trunk/Source/WebCore/ChangeLog
r196791 r196793 1 2016-02-18 Chris Dumez <cdumez@apple.com> 2 3 HTMLTableHeaderCellElement.scope should only return known values 4 https://bugs.webkit.org/show_bug.cgi?id=154423 5 <rdar://problem/24731018> 6 7 Reviewed by Ryosuke Niwa. 8 9 HTMLTableHeaderCellElement.scope should only return known values as per: 10 - https://html.spec.whatwg.org/multipage/tables.html#dom-th-scope 11 12 Known values are document here: 13 - https://html.spec.whatwg.org/multipage/tables.html#attr-th-scope 14 15 No new tests, already covered by existing test. 16 17 * CMakeLists.txt: 18 * WebCore.vcxproj/WebCore.vcxproj: 19 * WebCore.vcxproj/WebCore.vcxproj.filters: 20 * WebCore.xcodeproj/project.pbxproj: 21 * html/HTMLElementsAllInOne.cpp: 22 * html/HTMLTableHeaderCellElement.cpp: Copied from Source/WebCore/html/HTMLTableHeaderCellElement.h. 23 (WebCore::HTMLTableHeaderCellElement::scope): 24 (WebCore::HTMLTableHeaderCellElement::setScope): 25 * html/HTMLTableHeaderCellElement.h: 26 * html/HTMLTableHeaderCellElement.idl: 27 1 28 2016-02-18 Brent Fulgham <bfulgham@apple.com> 2 29 -
trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj
r196747 r196793 17317 17317 </ClCompile> 17318 17318 <ClCompile Include="..\html\HTMLTableElement.cpp"> 17319 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild> 17320 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild> 17321 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug_WinCairo|Win32'">true</ExcludedFromBuild> 17322 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug_WinCairo|x64'">true</ExcludedFromBuild> 17323 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='DebugSuffix|Win32'">true</ExcludedFromBuild> 17324 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='DebugSuffix|x64'">true</ExcludedFromBuild> 17325 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild> 17326 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild> 17327 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release_WinCairo|Win32'">true</ExcludedFromBuild> 17328 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release_WinCairo|x64'">true</ExcludedFromBuild> 17329 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Production|Win32'">true</ExcludedFromBuild> 17330 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Production|x64'">true</ExcludedFromBuild> 17331 </ClCompile> 17332 <ClCompile Include="..\html\HTMLTableHeaderCellElement.cpp"> 17319 17333 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild> 17320 17334 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild> -
trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj.filters
r196747 r196793 3927 3927 <Filter>html</Filter> 3928 3928 </ClCompile> 3929 <ClCompile Include="..\html\HTMLTableHeaderCellElement.cpp"> 3930 <Filter>html</Filter> 3931 </ClCompile> 3929 3932 <ClCompile Include="..\html\HTMLTablePartElement.cpp"> 3930 3933 <Filter>html</Filter> -
trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj
r196747 r196793 1720 1720 46DB7D571B20FE46005651B2 /* VNodeTrackerCocoa.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 46DB7D561B20FE3C005651B2 /* VNodeTrackerCocoa.cpp */; }; 1721 1721 46DBB6501AB8C96F00D9A813 /* PowerObserverMac.h in Headers */ = {isa = PBXBuildFile; fileRef = 46DBB64E1AB8C96F00D9A813 /* PowerObserverMac.h */; }; 1722 46DCFDC01C768A150025B868 /* HTMLTableHeaderCellElement.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 46DCFDBF1C768A150025B868 /* HTMLTableHeaderCellElement.cpp */; }; 1722 1723 46EBEA021B7D4D6500BE4941 /* CollectionTraversal.h in Headers */ = {isa = PBXBuildFile; fileRef = 46EBEA011B7D4D5D00BE4941 /* CollectionTraversal.h */; }; 1723 1724 46F3E3F91B2109000087ED13 /* VNodeTracker.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 46DB7D581B20FE58005651B2 /* VNodeTracker.cpp */; }; … … 9233 9234 46DB7D591B20FE58005651B2 /* VNodeTracker.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = VNodeTracker.h; sourceTree = "<group>"; }; 9234 9235 46DBB64E1AB8C96F00D9A813 /* PowerObserverMac.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PowerObserverMac.h; sourceTree = "<group>"; }; 9236 46DCFDBF1C768A150025B868 /* HTMLTableHeaderCellElement.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = HTMLTableHeaderCellElement.cpp; sourceTree = "<group>"; }; 9235 9237 46EBEA011B7D4D5D00BE4941 /* CollectionTraversal.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CollectionTraversal.h; sourceTree = "<group>"; }; 9236 9238 46F2768E1B85297F005C2556 /* JSDOMNamedFlowCollectionCustom.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSDOMNamedFlowCollectionCustom.cpp; sourceTree = "<group>"; }; … … 19317 19319 A871DB190A150BD600B12A68 /* HTMLTableElement.h */, 19318 19320 8555425A0AA48B1E00BA89F2 /* HTMLTableElement.idl */, 19321 46DCFDBF1C768A150025B868 /* HTMLTableHeaderCellElement.cpp */, 19319 19322 836BAD1F1BD1CA670037356A /* HTMLTableHeaderCellElement.h */, 19320 19323 83FE5F1F1BD1C55E0038BEEC /* HTMLTableHeaderCellElement.idl */, … … 29433 29436 859A9C480AA5E3BD00B694B2 /* DOMHTMLBaseElement.mm in Sources */, 29434 29437 85ECBEEE0AA7626900544F0B /* DOMHTMLBaseFontElement.mm in Sources */, 29438 46DCFDC01C768A150025B868 /* HTMLTableHeaderCellElement.cpp in Sources */, 29435 29439 859A9C4A0AA5E3BD00B694B2 /* DOMHTMLBodyElement.mm in Sources */, 29436 29440 85183B430AA6926100F19FA3 /* DOMHTMLBRElement.mm in Sources */, -
trunk/Source/WebCore/html/HTMLElementsAllInOne.cpp
r195627 r196793 104 104 #include "HTMLTableColElement.cpp" 105 105 #include "HTMLTableElement.cpp" 106 #include "HTMLTableHeaderCellElement.cpp" 106 107 #include "HTMLTablePartElement.cpp" 107 108 #include "HTMLTableRowElement.cpp" -
trunk/Source/WebCore/html/HTMLTableHeaderCellElement.cpp
r196792 r196793 1 1 /* 2 * Copyright (C) 201 5Apple Inc. All rights reserved.2 * Copyright (C) 2016 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 24 24 */ 25 25 26 #i fndef HTMLTableHeaderCellElement_h27 # define HTMLTableHeaderCellElement_h26 #include "config.h" 27 #include "HTMLTableHeaderCellElement.h" 28 28 29 29 #include "HTMLNames.h" 30 #include "HTMLTableCellElement.h"30 #include <wtf/text/AtomicString.h> 31 31 32 32 namespace WebCore { 33 33 34 class HTMLTableHeaderCellElement final : public HTMLTableCellElement { 35 public: 36 static Ref<HTMLTableHeaderCellElement> create(Document& document) 37 { 38 return adoptRef(*new HTMLTableHeaderCellElement(HTMLNames::thTag, document)); 39 } 34 const AtomicString& HTMLTableHeaderCellElement::scope() const 35 { 36 // https://html.spec.whatwg.org/multipage/tables.html#attr-th-scope 37 static NeverDestroyed<const AtomicString> row("row", AtomicString::ConstructFromLiteral); 38 static NeverDestroyed<const AtomicString> col("col", AtomicString::ConstructFromLiteral); 39 static NeverDestroyed<const AtomicString> rowgroup("rowgroup", AtomicString::ConstructFromLiteral); 40 static NeverDestroyed<const AtomicString> colgroup("colgroup", AtomicString::ConstructFromLiteral); 40 41 41 static Ref<HTMLTableHeaderCellElement> create(const QualifiedName& tagName, Document& document)42 {43 ASSERT(tagName == HTMLNames::thTag);44 return adoptRef(*new HTMLTableHeaderCellElement(tagName, document));45 }46 47 private: 48 using HTMLTableCellElement::HTMLTableCellElement;49 };50 42 const AtomicString& value = fastGetAttribute(HTMLNames::scopeAttr); 43 if (equalIgnoringASCIICase(value, row)) 44 return row; 45 if (equalIgnoringASCIICase(value, col)) 46 return col; 47 if (equalIgnoringASCIICase(value, rowgroup)) 48 return rowgroup; 49 if (equalIgnoringASCIICase(value, colgroup)) 50 return colgroup; 51 return emptyAtom; 51 52 } 52 53 53 #endif // HTMLTableHeaderCellElement_h 54 void HTMLTableHeaderCellElement::setScope(const AtomicString& scope) 55 { 56 setAttributeWithoutSynchronization(HTMLNames::scopeAttr, scope); 57 } 54 58 59 } // namespace WebCore -
trunk/Source/WebCore/html/HTMLTableHeaderCellElement.h
r191247 r196793 45 45 } 46 46 47 const AtomicString& scope() const; 48 void setScope(const AtomicString&); 49 47 50 private: 48 51 using HTMLTableCellElement::HTMLTableCellElement; -
trunk/Source/WebCore/html/HTMLTableHeaderCellElement.idl
r191247 r196793 26 26 interface HTMLTableHeaderCellElement : HTMLTableCellElement { 27 27 [Reflect] attribute DOMString abbr; 28 [Reflect]attribute DOMString scope;28 attribute DOMString scope; 29 29 };
Note: See TracChangeset
for help on using the changeset viewer.