Changeset 44937 in webkit
- Timestamp:
- Jun 22, 2009 9:34:12 AM (15 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 3 added
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r44934 r44937 1 2009-06-22 David Hyatt <hyatt@apple.com> 2 3 Reviewed by Sam Weinig. 4 5 https://bugs.webkit.org/show_bug.cgi?id=26607 6 7 Add IDL for HTMLDataGridRowElement. 8 9 * DerivedSources.make: 10 * GNUmakefile.am: 11 * WebCore.pro: 12 * WebCore.vcproj/WebCore.vcproj: 13 * WebCore.xcodeproj/project.pbxproj: 14 * WebCoreSources.bkl: 15 * html/HTMLAttributeNames.in: 16 * html/HTMLDataGridColElement.cpp: 17 (WebCore::HTMLDataGridColElement::primary): 18 (WebCore::HTMLDataGridColElement::setPrimary): 19 * html/HTMLDataGridColElement.h: 20 * html/HTMLDataGridColElement.idl: 21 * html/HTMLDataGridElement.cpp: 22 (WebCore::HTMLDataGridElement::checkDTD): 23 (WebCore::HTMLDataGridElement::multiple): 24 (WebCore::HTMLDataGridElement::setMultiple): 25 * html/HTMLDataGridElement.h: 26 * html/HTMLDataGridElement.idl: 27 * html/HTMLDataGridRowElement.cpp: Added. 28 (WebCore::HTMLDataGridRowElement::HTMLDataGridRowElement): 29 (WebCore::HTMLDataGridRowElement::selected): 30 (WebCore::HTMLDataGridRowElement::setSelected): 31 (WebCore::HTMLDataGridRowElement::focused): 32 (WebCore::HTMLDataGridRowElement::setFocused): 33 * html/HTMLDataGridRowElement.h: Added. 34 (WebCore::HTMLDataGridRowElement::tagPriority): 35 * html/HTMLDataGridRowElement.idl: Added. 36 * html/HTMLTagNames.in: 37 1 38 2009-06-19 Yael Aharon <yael.aharon@nokia.com> 2 39 -
trunk/WebCore/DerivedSources.make
r44867 r44937 113 113 HTMLDataGridElement \ 114 114 HTMLDataGridColElement \ 115 HTMLDataGridRowElement \ 115 116 HTMLDListElement \ 116 117 HTMLDirectoryElement \ -
trunk/WebCore/GNUmakefile.am
r44919 r44937 171 171 WebCore/html/HTMLDataGridElement.idl \ 172 172 WebCore/html/HTMLDataGridColElement.idl \ 173 WebCore/html/HTMLDataGridRowElement.idl \ 173 174 WebCore/html/HTMLDListElement.idl \ 174 175 WebCore/html/HTMLDirectoryElement.idl \ … … 925 926 WebCore/html/HTMLCollection.cpp \ 926 927 WebCore/html/HTMLCollection.h \ 928 WebCore/html/HTMLDataGridElement.cpp \ 929 WebCore/html/HTMLDataGridElement.h \ 927 930 WebCore/html/HTMLDataGridColElement.cpp \ 928 931 WebCore/html/HTMLDataGridColElement.h \ 929 WebCore/html/HTMLDataGrid Element.cpp \930 WebCore/html/HTMLDataGrid Element.h \932 WebCore/html/HTMLDataGridRowElement.cpp \ 933 WebCore/html/HTMLDataGridRowElement.h \ 931 934 WebCore/html/HTMLDListElement.cpp \ 932 935 WebCore/html/HTMLDListElement.h \ -
trunk/WebCore/WebCore.pro
r44933 r44937 348 348 html/HTMLDataGridElement.idl \ 349 349 html/HTMLDataGridColElement.idl \ 350 html/HTMLDataGridRowElement.idl \ 350 351 html/HTMLDirectoryElement.idl \ 351 352 html/HTMLDivElement.idl \ … … 760 761 html/HTMLDataGridElement.cpp \ 761 762 html/HTMLDataGridColElement.cpp \ 763 html/HTMLDataGridRowElement.cpp \ 762 764 html/HTMLDirectoryElement.cpp \ 763 765 html/HTMLDivElement.cpp \ -
trunk/WebCore/WebCore.vcproj/WebCore.vcproj
r44921 r44937 3492 3492 <File 3493 3493 RelativePath="$(WebKitOutputDir)\obj\$(ProjectName)\DerivedSources\JSHTMLDataGridColElement.h" 3494 > 3495 </File> 3496 <File 3497 RelativePath="$(WebKitOutputDir)\obj\$(ProjectName)\DerivedSources\JSHTMLDataGridRowElement.cpp" 3498 > 3499 <FileConfiguration 3500 Name="Debug|Win32" 3501 ExcludedFromBuild="true" 3502 > 3503 <Tool 3504 Name="VCCLCompilerTool" 3505 /> 3506 </FileConfiguration> 3507 <FileConfiguration 3508 Name="Release|Win32" 3509 ExcludedFromBuild="true" 3510 > 3511 <Tool 3512 Name="VCCLCompilerTool" 3513 /> 3514 </FileConfiguration> 3515 <FileConfiguration 3516 Name="Debug_Internal|Win32" 3517 ExcludedFromBuild="true" 3518 > 3519 <Tool 3520 Name="VCCLCompilerTool" 3521 /> 3522 </FileConfiguration> 3523 <FileConfiguration 3524 Name="Debug_Cairo|Win32" 3525 ExcludedFromBuild="true" 3526 > 3527 <Tool 3528 Name="VCCLCompilerTool" 3529 /> 3530 </FileConfiguration> 3531 <FileConfiguration 3532 Name="Release_Cairo|Win32" 3533 ExcludedFromBuild="true" 3534 > 3535 <Tool 3536 Name="VCCLCompilerTool" 3537 /> 3538 </FileConfiguration> 3539 </File> 3540 <File 3541 RelativePath="$(WebKitOutputDir)\obj\$(ProjectName)\DerivedSources\JSHTMLDataGridRowElement.h" 3494 3542 > 3495 3543 </File> … … 24815 24863 > 24816 24864 </File> 24865 <File 24866 RelativePath="..\html\HTMLDataGridRowElement.cpp" 24867 > 24868 <FileConfiguration 24869 Name="Debug|Win32" 24870 ExcludedFromBuild="true" 24871 > 24872 <Tool 24873 Name="VCCLCompilerTool" 24874 /> 24875 </FileConfiguration> 24876 <FileConfiguration 24877 Name="Release|Win32" 24878 ExcludedFromBuild="true" 24879 > 24880 <Tool 24881 Name="VCCLCompilerTool" 24882 /> 24883 </FileConfiguration> 24884 <FileConfiguration 24885 Name="Debug_Internal|Win32" 24886 ExcludedFromBuild="true" 24887 > 24888 <Tool 24889 Name="VCCLCompilerTool" 24890 /> 24891 </FileConfiguration> 24892 <FileConfiguration 24893 Name="Debug_Cairo|Win32" 24894 ExcludedFromBuild="true" 24895 > 24896 <Tool 24897 Name="VCCLCompilerTool" 24898 /> 24899 </FileConfiguration> 24900 <FileConfiguration 24901 Name="Release_Cairo|Win32" 24902 ExcludedFromBuild="true" 24903 > 24904 <Tool 24905 Name="VCCLCompilerTool" 24906 /> 24907 </FileConfiguration> 24908 </File> 24909 <File 24910 RelativePath="..\html\HTMLDataGridRowElement.h" 24911 > 24912 </File> 24817 24913 <File 24818 24914 RelativePath="..\html\HTMLDirectoryElement.cpp" -
trunk/WebCore/WebCore.xcodeproj/project.pbxproj
r44915 r44937 4042 4042 BC77CBD30FEBF8310070887B /* JSHTMLDataGridColElement.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC77CBD10FEBF8310070887B /* JSHTMLDataGridColElement.cpp */; }; 4043 4043 BC77CBD40FEBF8310070887B /* JSHTMLDataGridColElement.h in Headers */ = {isa = PBXBuildFile; fileRef = BC77CBD20FEBF8310070887B /* JSHTMLDataGridColElement.h */; }; 4044 BC77CC6C0FEC3D5F0070887B /* HTMLDataGridRowElement.idl in Resources */ = {isa = PBXBuildFile; fileRef = BC77CC6B0FEC3D5F0070887B /* HTMLDataGridRowElement.idl */; }; 4045 BC77CCEE0FEFDE6C0070887B /* HTMLDataGridRowElement.h in Headers */ = {isa = PBXBuildFile; fileRef = BC77CCED0FEFDE6C0070887B /* HTMLDataGridRowElement.h */; }; 4046 BC77CD420FEFE0C40070887B /* HTMLDataGridRowElement.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC77CD410FEFE0C40070887B /* HTMLDataGridRowElement.cpp */; }; 4047 BC77CD4E0FEFE1610070887B /* JSHTMLDataGridRowElement.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC77CD4C0FEFE1610070887B /* JSHTMLDataGridRowElement.cpp */; }; 4048 BC77CD4F0FEFE1610070887B /* JSHTMLDataGridRowElement.h in Headers */ = {isa = PBXBuildFile; fileRef = BC77CD4D0FEFE1610070887B /* JSHTMLDataGridRowElement.h */; }; 4044 4049 BC7F44A80B9E324E00A9D081 /* ImageObserver.h in Headers */ = {isa = PBXBuildFile; fileRef = BC7F44A70B9E324E00A9D081 /* ImageObserver.h */; settings = {ATTRIBUTES = (Private, ); }; }; 4045 4050 BC7FA6200D1F0CBD00DB22A9 /* DynamicNodeList.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC7FA61E0D1F0CBD00DB22A9 /* DynamicNodeList.cpp */; }; … … 8836 8841 BC77CBD10FEBF8310070887B /* JSHTMLDataGridColElement.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSHTMLDataGridColElement.cpp; sourceTree = "<group>"; }; 8837 8842 BC77CBD20FEBF8310070887B /* JSHTMLDataGridColElement.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSHTMLDataGridColElement.h; sourceTree = "<group>"; }; 8843 BC77CC6B0FEC3D5F0070887B /* HTMLDataGridRowElement.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = HTMLDataGridRowElement.idl; sourceTree = "<group>"; }; 8844 BC77CCED0FEFDE6C0070887B /* HTMLDataGridRowElement.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HTMLDataGridRowElement.h; sourceTree = "<group>"; }; 8845 BC77CD410FEFE0C40070887B /* HTMLDataGridRowElement.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = HTMLDataGridRowElement.cpp; sourceTree = "<group>"; }; 8846 BC77CD4C0FEFE1610070887B /* JSHTMLDataGridRowElement.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSHTMLDataGridRowElement.cpp; sourceTree = "<group>"; }; 8847 BC77CD4D0FEFE1610070887B /* JSHTMLDataGridRowElement.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSHTMLDataGridRowElement.h; sourceTree = "<group>"; }; 8838 8848 BC7B2AF80450824100A8000F /* Scrollbar.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = Scrollbar.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 8839 8849 BC7F44A70B9E324E00A9D081 /* ImageObserver.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = ImageObserver.h; sourceTree = "<group>"; }; … … 11650 11660 BC77CB860FEBF5AF0070887B /* HTMLDataGridColElement.h */, 11651 11661 BC77CB880FEBF5BA0070887B /* HTMLDataGridColElement.idl */, 11662 BC77CD410FEFE0C40070887B /* HTMLDataGridRowElement.cpp */, 11663 BC77CCED0FEFDE6C0070887B /* HTMLDataGridRowElement.h */, 11664 BC77CC6B0FEC3D5F0070887B /* HTMLDataGridRowElement.idl */, 11652 11665 A8EA79E90A1916DF00A8EF5F /* HTMLDListElement.cpp */, 11653 11666 A8EA79EB0A1916DF00A8EF5F /* HTMLDListElement.h */, … … 11921 11934 BC77CBD10FEBF8310070887B /* JSHTMLDataGridColElement.cpp */, 11922 11935 BC77CBD20FEBF8310070887B /* JSHTMLDataGridColElement.h */, 11936 BC77CD4C0FEFE1610070887B /* JSHTMLDataGridRowElement.cpp */, 11937 BC77CD4D0FEFE1610070887B /* JSHTMLDataGridRowElement.h */, 11923 11938 1A85B1E20A1B240500D8C87C /* JSHTMLDListElement.cpp */, 11924 11939 1A85B1E30A1B240500D8C87C /* JSHTMLDListElement.h */, … … 16848 16863 BC77CBD40FEBF8310070887B /* JSHTMLDataGridColElement.h in Headers */, 16849 16864 97DD4D870FDF4D6E00ECF9A4 /* XSSAuditor.h in Headers */, 16865 BC77CCEE0FEFDE6C0070887B /* HTMLDataGridRowElement.h in Headers */, 16866 BC77CD4F0FEFE1610070887B /* JSHTMLDataGridRowElement.h in Headers */, 16850 16867 ); 16851 16868 runOnlyForDeploymentPostprocessing = 0; … … 16952 16969 BC212A240FE8345D00EC3708 /* HTMLDataGridElement.idl in Resources */, 16953 16970 BC77CB890FEBF5BA0070887B /* HTMLDataGridColElement.idl in Resources */, 16971 BC77CC6C0FEC3D5F0070887B /* HTMLDataGridRowElement.idl in Resources */, 16954 16972 ); 16955 16973 runOnlyForDeploymentPostprocessing = 0; … … 18850 18868 BC77CBD30FEBF8310070887B /* JSHTMLDataGridColElement.cpp in Sources */, 18851 18869 97DD4D860FDF4D6E00ECF9A4 /* XSSAuditor.cpp in Sources */, 18870 BC77CD420FEFE0C40070887B /* HTMLDataGridRowElement.cpp in Sources */, 18871 BC77CD4E0FEFE1610070887B /* JSHTMLDataGridRowElement.cpp in Sources */, 18852 18872 ); 18853 18873 runOnlyForDeploymentPostprocessing = 0; -
trunk/WebCore/WebCoreSources.bkl
r44879 r44937 297 297 DerivedSources/WebCore/JSHTMLDataGridElement.cpp 298 298 DerivedSources/WebCore/JSHTMLDataGridColElement.cpp 299 DerivedSources/WebCore/JSHTMLDataGridRowElement.cpp 299 300 DerivedSources/WebCore/JSHTMLDListElement.cpp 300 301 DerivedSources/WebCore/JSHTMLDirectoryElement.cpp … … 581 582 html/HTMLDataGridElement.cpp 582 583 html/HTMLDataGridColElement.cpp 584 html/HTMLDataGridRowElement.cpp 583 585 html/HTMLDListElement.cpp 584 586 html/HTMLDirectoryElement.cpp -
trunk/WebCore/html/HTMLAttributeNames.in
r44867 r44937 69 69 end 70 70 face 71 focused 71 72 for 72 73 frame … … 162 163 poster 163 164 precision 165 primary 164 166 profile 165 167 prompt -
trunk/WebCore/html/HTMLDataGridColElement.cpp
r44867 r44937 79 79 } 80 80 81 bool HTMLDataGridColElement:: selected() const81 bool HTMLDataGridColElement::primary() const 82 82 { 83 return hasAttribute( selectedAttr);83 return hasAttribute(primaryAttr); 84 84 } 85 85 86 void HTMLDataGridColElement::set Selected(bool selected)86 void HTMLDataGridColElement::setPrimary(bool primary) 87 87 { 88 setAttribute( selectedAttr, selected? "" : 0);88 setAttribute(primaryAttr, primary ? "" : 0); 89 89 } 90 90 -
trunk/WebCore/html/HTMLDataGridColElement.h
r44867 r44937 51 51 void setSortDirection(const String&); 52 52 53 bool selected() const;54 void set Selected(bool);53 bool primary() const; 54 void setPrimary(bool); 55 55 }; 56 56 -
trunk/WebCore/html/HTMLDataGridColElement.idl
r44867 r44937 33 33 attribute DOMString sortDirection; // The sort direction for the column. Valid values are ascending, descending and natural (no sort applied). 34 34 35 attribute boolean selected; // Whether or not the column as a whole has been selected.35 attribute boolean primary; // Whether or not this is the primary column of the tree (this will be where the disclosure triangle and connecting tree lines will display) 36 36 }; 37 37 -
trunk/WebCore/html/HTMLDataGridElement.cpp
r44872 r44937 43 43 if (newChild->isTextNode()) 44 44 return static_cast<const Text*>(newChild)->containsOnlyWhitespace(); 45 return newChild->hasTagName(datagridcolTag); 45 return newChild->hasTagName(dcolTag) || newChild->hasTagName(drowTag); 46 } 47 48 bool HTMLDataGridElement::multiple() const 49 { 50 return hasAttribute(multipleAttr); 51 } 52 53 void HTMLDataGridElement::setMultiple(bool multiple) 54 { 55 setAttribute(multipleAttr, multiple ? "" : 0); 46 56 } 47 57 -
trunk/WebCore/html/HTMLDataGridElement.h
r44867 r44937 38 38 virtual int tagPriority() const { return 6; } // Same as <select>s 39 39 virtual bool checkDTD(const Node*); 40 41 bool multiple() const; 42 void setMultiple(bool); 40 43 }; 41 44 -
trunk/WebCore/html/HTMLDataGridElement.idl
r44778 r44937 27 27 28 28 interface [GenerateConstructor] HTMLDataGridElement : HTMLElement { 29 attribute boolean multiple; // Whether or not the datagrid supports multiple selection. 29 30 }; 30 31 -
trunk/WebCore/html/HTMLTagNames.in
r44867 r44937 27 27 colgroup interfaceName=HTMLTableColElement 28 28 datagrid interfaceName=HTMLDataGridElement 29 datagridcol interfaceName=HTMLDataGridColElement 29 dcol interfaceName=HTMLDataGridColElement 30 drow interfaceName=HTMLDataGridRowElement 30 31 dd interfaceName=HTMLElement 31 32 del interfaceName=HTMLModElement
Note: See TracChangeset
for help on using the changeset viewer.