Changeset 44937 in webkit


Ignore:
Timestamp:
Jun 22, 2009 9:34:12 AM (15 years ago)
Author:
hyatt@apple.com
Message:

2009-06-22 David Hyatt <hyatt@apple.com>

Reviewed by Sam Weinig.

https://bugs.webkit.org/show_bug.cgi?id=26607

Add IDL for HTMLDataGridRowElement.

  • DerivedSources.make:
  • GNUmakefile.am:
  • WebCore.pro:
  • WebCore.vcproj/WebCore.vcproj:
  • WebCore.xcodeproj/project.pbxproj:
  • WebCoreSources.bkl:
  • html/HTMLAttributeNames.in:
  • html/HTMLDataGridColElement.cpp: (WebCore::HTMLDataGridColElement::primary): (WebCore::HTMLDataGridColElement::setPrimary):
  • html/HTMLDataGridColElement.h:
  • html/HTMLDataGridColElement.idl:
  • html/HTMLDataGridElement.cpp: (WebCore::HTMLDataGridElement::checkDTD): (WebCore::HTMLDataGridElement::multiple): (WebCore::HTMLDataGridElement::setMultiple):
  • html/HTMLDataGridElement.h:
  • html/HTMLDataGridElement.idl:
  • html/HTMLDataGridRowElement.cpp: Added. (WebCore::HTMLDataGridRowElement::HTMLDataGridRowElement): (WebCore::HTMLDataGridRowElement::selected): (WebCore::HTMLDataGridRowElement::setSelected): (WebCore::HTMLDataGridRowElement::focused): (WebCore::HTMLDataGridRowElement::setFocused):
  • html/HTMLDataGridRowElement.h: Added. (WebCore::HTMLDataGridRowElement::tagPriority):
  • html/HTMLDataGridRowElement.idl: Added.
  • html/HTMLTagNames.in:
Location:
trunk/WebCore
Files:
3 added
15 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r44934 r44937  
     12009-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
    1382009-06-19  Yael Aharon <yael.aharon@nokia.com>
    239
  • trunk/WebCore/DerivedSources.make

    r44867 r44937  
    113113    HTMLDataGridElement \
    114114    HTMLDataGridColElement \
     115    HTMLDataGridRowElement \
    115116    HTMLDListElement \
    116117    HTMLDirectoryElement \
  • trunk/WebCore/GNUmakefile.am

    r44919 r44937  
    171171        WebCore/html/HTMLDataGridElement.idl \
    172172        WebCore/html/HTMLDataGridColElement.idl \
     173        WebCore/html/HTMLDataGridRowElement.idl \
    173174        WebCore/html/HTMLDListElement.idl \
    174175        WebCore/html/HTMLDirectoryElement.idl \
     
    925926        WebCore/html/HTMLCollection.cpp \
    926927        WebCore/html/HTMLCollection.h \
     928        WebCore/html/HTMLDataGridElement.cpp \
     929        WebCore/html/HTMLDataGridElement.h \
    927930        WebCore/html/HTMLDataGridColElement.cpp \
    928931        WebCore/html/HTMLDataGridColElement.h \
    929         WebCore/html/HTMLDataGridElement.cpp \
    930         WebCore/html/HTMLDataGridElement.h \
     932        WebCore/html/HTMLDataGridRowElement.cpp \
     933        WebCore/html/HTMLDataGridRowElement.h \
    931934        WebCore/html/HTMLDListElement.cpp \
    932935        WebCore/html/HTMLDListElement.h \
  • trunk/WebCore/WebCore.pro

    r44933 r44937  
    348348    html/HTMLDataGridElement.idl \
    349349    html/HTMLDataGridColElement.idl \
     350    html/HTMLDataGridRowElement.idl \
    350351    html/HTMLDirectoryElement.idl \
    351352    html/HTMLDivElement.idl \
     
    760761    html/HTMLDataGridElement.cpp \
    761762    html/HTMLDataGridColElement.cpp \
     763    html/HTMLDataGridRowElement.cpp \
    762764    html/HTMLDirectoryElement.cpp \
    763765    html/HTMLDivElement.cpp \
  • trunk/WebCore/WebCore.vcproj/WebCore.vcproj

    r44921 r44937  
    34923492                        <File
    34933493                                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"
    34943542                                >
    34953543                        </File>
     
    2481524863                                >
    2481624864                        </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>
    2481724913                        <File
    2481824914                                RelativePath="..\html\HTMLDirectoryElement.cpp"
  • trunk/WebCore/WebCore.xcodeproj/project.pbxproj

    r44915 r44937  
    40424042                BC77CBD30FEBF8310070887B /* JSHTMLDataGridColElement.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC77CBD10FEBF8310070887B /* JSHTMLDataGridColElement.cpp */; };
    40434043                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 */; };
    40444049                BC7F44A80B9E324E00A9D081 /* ImageObserver.h in Headers */ = {isa = PBXBuildFile; fileRef = BC7F44A70B9E324E00A9D081 /* ImageObserver.h */; settings = {ATTRIBUTES = (Private, ); }; };
    40454050                BC7FA6200D1F0CBD00DB22A9 /* DynamicNodeList.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC7FA61E0D1F0CBD00DB22A9 /* DynamicNodeList.cpp */; };
     
    88368841                BC77CBD10FEBF8310070887B /* JSHTMLDataGridColElement.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSHTMLDataGridColElement.cpp; sourceTree = "<group>"; };
    88378842                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>"; };
    88388848                BC7B2AF80450824100A8000F /* Scrollbar.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = Scrollbar.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };
    88398849                BC7F44A70B9E324E00A9D081 /* ImageObserver.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = ImageObserver.h; sourceTree = "<group>"; };
     
    1165011660                                BC77CB860FEBF5AF0070887B /* HTMLDataGridColElement.h */,
    1165111661                                BC77CB880FEBF5BA0070887B /* HTMLDataGridColElement.idl */,
     11662                                BC77CD410FEFE0C40070887B /* HTMLDataGridRowElement.cpp */,
     11663                                BC77CCED0FEFDE6C0070887B /* HTMLDataGridRowElement.h */,
     11664                                BC77CC6B0FEC3D5F0070887B /* HTMLDataGridRowElement.idl */,
    1165211665                                A8EA79E90A1916DF00A8EF5F /* HTMLDListElement.cpp */,
    1165311666                                A8EA79EB0A1916DF00A8EF5F /* HTMLDListElement.h */,
     
    1192111934                                BC77CBD10FEBF8310070887B /* JSHTMLDataGridColElement.cpp */,
    1192211935                                BC77CBD20FEBF8310070887B /* JSHTMLDataGridColElement.h */,
     11936                                BC77CD4C0FEFE1610070887B /* JSHTMLDataGridRowElement.cpp */,
     11937                                BC77CD4D0FEFE1610070887B /* JSHTMLDataGridRowElement.h */,
    1192311938                                1A85B1E20A1B240500D8C87C /* JSHTMLDListElement.cpp */,
    1192411939                                1A85B1E30A1B240500D8C87C /* JSHTMLDListElement.h */,
     
    1684816863                                BC77CBD40FEBF8310070887B /* JSHTMLDataGridColElement.h in Headers */,
    1684916864                                97DD4D870FDF4D6E00ECF9A4 /* XSSAuditor.h in Headers */,
     16865                                BC77CCEE0FEFDE6C0070887B /* HTMLDataGridRowElement.h in Headers */,
     16866                                BC77CD4F0FEFE1610070887B /* JSHTMLDataGridRowElement.h in Headers */,
    1685016867                        );
    1685116868                        runOnlyForDeploymentPostprocessing = 0;
     
    1695216969                                BC212A240FE8345D00EC3708 /* HTMLDataGridElement.idl in Resources */,
    1695316970                                BC77CB890FEBF5BA0070887B /* HTMLDataGridColElement.idl in Resources */,
     16971                                BC77CC6C0FEC3D5F0070887B /* HTMLDataGridRowElement.idl in Resources */,
    1695416972                        );
    1695516973                        runOnlyForDeploymentPostprocessing = 0;
     
    1885018868                                BC77CBD30FEBF8310070887B /* JSHTMLDataGridColElement.cpp in Sources */,
    1885118869                                97DD4D860FDF4D6E00ECF9A4 /* XSSAuditor.cpp in Sources */,
     18870                                BC77CD420FEFE0C40070887B /* HTMLDataGridRowElement.cpp in Sources */,
     18871                                BC77CD4E0FEFE1610070887B /* JSHTMLDataGridRowElement.cpp in Sources */,
    1885218872                        );
    1885318873                        runOnlyForDeploymentPostprocessing = 0;
  • trunk/WebCore/WebCoreSources.bkl

    r44879 r44937  
    297297        DerivedSources/WebCore/JSHTMLDataGridElement.cpp
    298298        DerivedSources/WebCore/JSHTMLDataGridColElement.cpp
     299        DerivedSources/WebCore/JSHTMLDataGridRowElement.cpp
    299300        DerivedSources/WebCore/JSHTMLDListElement.cpp
    300301        DerivedSources/WebCore/JSHTMLDirectoryElement.cpp
     
    581582        html/HTMLDataGridElement.cpp
    582583        html/HTMLDataGridColElement.cpp
     584        html/HTMLDataGridRowElement.cpp
    583585        html/HTMLDListElement.cpp
    584586        html/HTMLDirectoryElement.cpp
  • trunk/WebCore/html/HTMLAttributeNames.in

    r44867 r44937  
    6969end
    7070face
     71focused
    7172for
    7273frame
     
    162163poster
    163164precision
     165primary
    164166profile
    165167prompt
  • trunk/WebCore/html/HTMLDataGridColElement.cpp

    r44867 r44937  
    7979}
    8080
    81 bool HTMLDataGridColElement::selected() const
     81bool HTMLDataGridColElement::primary() const
    8282{
    83     return hasAttribute(selectedAttr);
     83    return hasAttribute(primaryAttr);
    8484}
    8585
    86 void HTMLDataGridColElement::setSelected(bool selected)
     86void HTMLDataGridColElement::setPrimary(bool primary)
    8787{
    88     setAttribute(selectedAttr, selected ? "" : 0);
     88    setAttribute(primaryAttr, primary ? "" : 0);
    8989}
    9090
  • trunk/WebCore/html/HTMLDataGridColElement.h

    r44867 r44937  
    5151    void setSortDirection(const String&);
    5252   
    53     bool selected() const;
    54     void setSelected(bool);
     53    bool primary() const;
     54    void setPrimary(bool);
    5555};
    5656
  • trunk/WebCore/html/HTMLDataGridColElement.idl

    r44867 r44937  
    3333    attribute DOMString sortDirection; // The sort direction for the column.  Valid values are ascending, descending and natural (no sort applied).
    3434   
    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)
    3636};
    3737
  • trunk/WebCore/html/HTMLDataGridElement.cpp

    r44872 r44937  
    4343    if (newChild->isTextNode())
    4444        return static_cast<const Text*>(newChild)->containsOnlyWhitespace();
    45     return newChild->hasTagName(datagridcolTag);
     45    return newChild->hasTagName(dcolTag) || newChild->hasTagName(drowTag);
     46}
     47
     48bool HTMLDataGridElement::multiple() const
     49{
     50    return hasAttribute(multipleAttr);
     51}
     52
     53void HTMLDataGridElement::setMultiple(bool multiple)
     54{
     55    setAttribute(multipleAttr, multiple ? "" : 0);
    4656}
    4757
  • trunk/WebCore/html/HTMLDataGridElement.h

    r44867 r44937  
    3838    virtual int tagPriority() const { return 6; } // Same as <select>s
    3939    virtual bool checkDTD(const Node*);
     40   
     41    bool multiple() const;
     42    void setMultiple(bool);
    4043};
    4144
  • trunk/WebCore/html/HTMLDataGridElement.idl

    r44778 r44937  
    2727
    2828interface [GenerateConstructor] HTMLDataGridElement : HTMLElement {
     29    attribute boolean multiple; // Whether or not the datagrid supports multiple selection.
    2930};
    3031
  • trunk/WebCore/html/HTMLTagNames.in

    r44867 r44937  
    2727colgroup interfaceName=HTMLTableColElement
    2828datagrid interfaceName=HTMLDataGridElement
    29 datagridcol interfaceName=HTMLDataGridColElement
     29dcol interfaceName=HTMLDataGridColElement
     30drow interfaceName=HTMLDataGridRowElement
    3031dd interfaceName=HTMLElement
    3132del interfaceName=HTMLModElement
Note: See TracChangeset for help on using the changeset viewer.