Changeset 61959 in webkit


Ignore:
Timestamp:
Jun 26, 2010 1:42:56 PM (14 years ago)
Author:
Darin Adler
Message:

2010-06-26 Darin Adler <Darin Adler>

Reviewed by Sam Weinig.

Add more use of reflection, remove unused functions
https://bugs.webkit.org/show_bug.cgi?id=41255

Also noticed that HTMLDirectoryElement was missing its create function
and added that so the element will get the correct class.

  • html/HTMLBaseFontElement.idl: Use reflection for the size attribute in the Objective-C code path too.
  • html/HTMLSelectElement.idl: Use reflection for disabled and autofocus attributes. Also removed spaces and indenting to match other IDL files.
  • html/HTMLStyleElement.idl: Use reflection for disabled attribute.
  • html/HTMLTableCellElement.idl: Use reflection for noWrap attribute.
  • html/HTMLTextAreaElement.idl: Use reflection for disabled, autofocus, readOnly, and required attributes.
  • html/HTMLUListElement.idl: Use reflection for compact attribute.
  • html/HTMLDirectoryElement.cpp: (WebCore::HTMLDirectoryElement::HTMLDirectoryElement): Made inline. (WebCore::HTMLDirectoryElement::create): Added.
  • html/HTMLDirectoryElement.h: Added create, made constructor private, removed unused functions.
  • html/HTMLStyleElement.cpp: (WebCore::HTMLStyleElement::parseMappedAttribute): Removed code to set unused m_media data member.
  • html/HTMLStyleElement.h: Removed unused functions and m_media data member. Also made some functions private.
  • html/HTMLAppletElement.cpp:
  • html/HTMLAppletElement.h:
  • html/HTMLAreaElement.cpp:
  • html/HTMLAreaElement.h:
  • html/HTMLBaseFontElement.cpp:
  • html/HTMLBaseFontElement.h:
  • html/HTMLButtonElement.cpp:
  • html/HTMLButtonElement.h:
  • html/HTMLDListElement.cpp:
  • html/HTMLDListElement.h:
  • html/HTMLDivElement.cpp:
  • html/HTMLDivElement.h:
  • html/HTMLFontElement.cpp:
  • html/HTMLFontElement.h:
  • html/HTMLFormControlElement.cpp:
  • html/HTMLFormControlElement.h:
  • html/HTMLFormElement.cpp:
  • html/HTMLFormElement.h:
  • html/HTMLFrameElement.cpp: Also removed an incorrect FIXME comment here after I did a little research to disprove it.
  • html/HTMLFrameElement.h:
  • html/HTMLFrameSetElement.cpp:
  • html/HTMLFrameSetElement.h:
  • html/HTMLHRElement.cpp:
  • html/HTMLHRElement.h:
  • html/HTMLHeadElement.cpp:
  • html/HTMLHeadElement.h:
  • html/HTMLHeadingElement.cpp:
  • html/HTMLHeadingElement.h:
  • html/HTMLHtmlElement.cpp:
  • html/HTMLHtmlElement.h:
  • html/HTMLImageElement.cpp:
  • html/HTMLImageElement.h:
  • html/HTMLInputElement.cpp:
  • html/HTMLInputElement.h:
  • html/HTMLIsIndexElement.cpp:
  • html/HTMLIsIndexElement.h:
  • html/HTMLLIElement.cpp:
  • html/HTMLLIElement.h:
  • html/HTMLLabelElement.cpp:
  • html/HTMLLabelElement.h:
  • html/HTMLLegendElement.cpp:
  • html/HTMLLegendElement.h:
  • html/HTMLLinkElement.cpp:
  • html/HTMLLinkElement.h:
  • html/HTMLMapElement.cpp:
  • html/HTMLMapElement.h:
  • html/HTMLMenuElement.cpp:
  • html/HTMLMenuElement.h:
  • html/HTMLMetaElement.cpp:
  • html/HTMLMetaElement.h:
  • html/HTMLModElement.cpp:
  • html/HTMLModElement.h:
  • html/HTMLOListElement.cpp:
  • html/HTMLOListElement.h:
  • html/HTMLObjectElement.cpp:
  • html/HTMLObjectElement.h:
  • html/HTMLOptGroupElement.cpp:
  • html/HTMLOptGroupElement.h:
  • html/HTMLOptionElement.cpp:
  • html/HTMLOptionElement.h:
  • html/HTMLParagraphElement.cpp:
  • html/HTMLParagraphElement.h:
  • html/HTMLParamElement.cpp:
  • html/HTMLParamElement.h:
  • html/HTMLPlugInElement.cpp:
  • html/HTMLPlugInElement.h:
  • html/HTMLPreElement.cpp:
  • html/HTMLPreElement.h:
  • html/HTMLQuoteElement.cpp:
  • html/HTMLQuoteElement.h:
  • html/HTMLScriptElement.cpp:
  • html/HTMLScriptElement.h:
  • html/HTMLTableCaptionElement.cpp:
  • html/HTMLTableCaptionElement.h:
  • html/HTMLTableCellElement.cpp:
  • html/HTMLTableCellElement.h:
  • html/HTMLTableColElement.cpp:
  • html/HTMLTableColElement.h:
  • html/HTMLTableElement.cpp:
  • html/HTMLTableElement.h:
  • html/HTMLTableRowElement.cpp:
  • html/HTMLTableRowElement.h:
  • html/HTMLTextAreaElement.cpp:
  • html/HTMLTextAreaElement.h:
  • html/HTMLUListElement.cpp:
  • html/HTMLUListElement.h:
  • html/HTMLVideoElement.cpp:
  • html/HTMLVideoElement.h: Removed unused functions.
Location:
trunk/WebCore
Files:
99 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r61956 r61959  
     12010-06-26  Darin Adler  <darin@apple.com>
     2
     3        Reviewed by Sam Weinig.
     4
     5        Add more use of reflection, remove unused functions
     6        https://bugs.webkit.org/show_bug.cgi?id=41255
     7
     8        Also noticed that HTMLDirectoryElement was missing its create function
     9        and added that so the element will get the correct class.
     10
     11        * html/HTMLBaseFontElement.idl: Use reflection for the size attribute
     12        in the Objective-C code path too.
     13
     14        * html/HTMLSelectElement.idl: Use reflection for disabled and autofocus
     15        attributes. Also removed spaces and indenting to match other IDL files.
     16
     17        * html/HTMLStyleElement.idl: Use reflection for disabled attribute.
     18
     19        * html/HTMLTableCellElement.idl: Use reflection for noWrap attribute.
     20
     21        * html/HTMLTextAreaElement.idl: Use reflection for disabled, autofocus,
     22        readOnly, and required attributes.
     23
     24        * html/HTMLUListElement.idl: Use reflection for compact attribute.
     25
     26        * html/HTMLDirectoryElement.cpp:
     27        (WebCore::HTMLDirectoryElement::HTMLDirectoryElement): Made inline.
     28        (WebCore::HTMLDirectoryElement::create): Added.
     29        * html/HTMLDirectoryElement.h:
     30        Added create, made constructor private, removed unused functions.
     31
     32        * html/HTMLStyleElement.cpp:
     33        (WebCore::HTMLStyleElement::parseMappedAttribute): Removed code to
     34        set unused m_media data member.
     35        * html/HTMLStyleElement.h:
     36        Removed unused functions and m_media data member. Also made some
     37        functions private.
     38
     39        * html/HTMLAppletElement.cpp:
     40        * html/HTMLAppletElement.h:
     41        * html/HTMLAreaElement.cpp:
     42        * html/HTMLAreaElement.h:
     43        * html/HTMLBaseFontElement.cpp:
     44        * html/HTMLBaseFontElement.h:
     45        * html/HTMLButtonElement.cpp:
     46        * html/HTMLButtonElement.h:
     47        * html/HTMLDListElement.cpp:
     48        * html/HTMLDListElement.h:
     49        * html/HTMLDivElement.cpp:
     50        * html/HTMLDivElement.h:
     51        * html/HTMLFontElement.cpp:
     52        * html/HTMLFontElement.h:
     53        * html/HTMLFormControlElement.cpp:
     54        * html/HTMLFormControlElement.h:
     55        * html/HTMLFormElement.cpp:
     56        * html/HTMLFormElement.h:
     57        * html/HTMLFrameElement.cpp: Also removed an incorrect FIXME comment
     58        here after I did a little research to disprove it.
     59        * html/HTMLFrameElement.h:
     60        * html/HTMLFrameSetElement.cpp:
     61        * html/HTMLFrameSetElement.h:
     62        * html/HTMLHRElement.cpp:
     63        * html/HTMLHRElement.h:
     64        * html/HTMLHeadElement.cpp:
     65        * html/HTMLHeadElement.h:
     66        * html/HTMLHeadingElement.cpp:
     67        * html/HTMLHeadingElement.h:
     68        * html/HTMLHtmlElement.cpp:
     69        * html/HTMLHtmlElement.h:
     70        * html/HTMLImageElement.cpp:
     71        * html/HTMLImageElement.h:
     72        * html/HTMLInputElement.cpp:
     73        * html/HTMLInputElement.h:
     74        * html/HTMLIsIndexElement.cpp:
     75        * html/HTMLIsIndexElement.h:
     76        * html/HTMLLIElement.cpp:
     77        * html/HTMLLIElement.h:
     78        * html/HTMLLabelElement.cpp:
     79        * html/HTMLLabelElement.h:
     80        * html/HTMLLegendElement.cpp:
     81        * html/HTMLLegendElement.h:
     82        * html/HTMLLinkElement.cpp:
     83        * html/HTMLLinkElement.h:
     84        * html/HTMLMapElement.cpp:
     85        * html/HTMLMapElement.h:
     86        * html/HTMLMenuElement.cpp:
     87        * html/HTMLMenuElement.h:
     88        * html/HTMLMetaElement.cpp:
     89        * html/HTMLMetaElement.h:
     90        * html/HTMLModElement.cpp:
     91        * html/HTMLModElement.h:
     92        * html/HTMLOListElement.cpp:
     93        * html/HTMLOListElement.h:
     94        * html/HTMLObjectElement.cpp:
     95        * html/HTMLObjectElement.h:
     96        * html/HTMLOptGroupElement.cpp:
     97        * html/HTMLOptGroupElement.h:
     98        * html/HTMLOptionElement.cpp:
     99        * html/HTMLOptionElement.h:
     100        * html/HTMLParagraphElement.cpp:
     101        * html/HTMLParagraphElement.h:
     102        * html/HTMLParamElement.cpp:
     103        * html/HTMLParamElement.h:
     104        * html/HTMLPlugInElement.cpp:
     105        * html/HTMLPlugInElement.h:
     106        * html/HTMLPreElement.cpp:
     107        * html/HTMLPreElement.h:
     108        * html/HTMLQuoteElement.cpp:
     109        * html/HTMLQuoteElement.h:
     110        * html/HTMLScriptElement.cpp:
     111        * html/HTMLScriptElement.h:
     112        * html/HTMLTableCaptionElement.cpp:
     113        * html/HTMLTableCaptionElement.h:
     114        * html/HTMLTableCellElement.cpp:
     115        * html/HTMLTableCellElement.h:
     116        * html/HTMLTableColElement.cpp:
     117        * html/HTMLTableColElement.h:
     118        * html/HTMLTableElement.cpp:
     119        * html/HTMLTableElement.h:
     120        * html/HTMLTableRowElement.cpp:
     121        * html/HTMLTableRowElement.h:
     122        * html/HTMLTextAreaElement.cpp:
     123        * html/HTMLTextAreaElement.h:
     124        * html/HTMLUListElement.cpp:
     125        * html/HTMLUListElement.h:
     126        * html/HTMLVideoElement.cpp:
     127        * html/HTMLVideoElement.h:
     128        Removed unused functions.
     129
    11302010-06-26  Tony Gentilcore  <tonyg@chromium.org>
    2131
  • trunk/WebCore/html/HTMLAppletElement.cpp

    r61094 r61959  
    169169}
    170170
    171 String HTMLAppletElement::hspace() const
    172 {
    173     return getAttribute(hspaceAttr);
    174171}
    175 
    176 void HTMLAppletElement::setHspace(const String &value)
    177 {
    178     setAttribute(hspaceAttr, value);
    179 }
    180 
    181 String HTMLAppletElement::vspace() const
    182 {
    183     return getAttribute(vspaceAttr);
    184 }
    185 
    186 void HTMLAppletElement::setVspace(const String &value)
    187 {
    188     setAttribute(vspaceAttr, value);
    189 }
    190 
    191 }
  • trunk/WebCore/html/HTMLAppletElement.h

    r59773 r61959  
    3232    static PassRefPtr<HTMLAppletElement> create(const QualifiedName&, Document*);
    3333
    34     String hspace() const;
    35     void setHspace(const String&);
    36 
    37     String vspace() const;
    38     void setVspace(const String&);
    39 
    4034private:
    4135    HTMLAppletElement(const QualifiedName&, Document*);
  • trunk/WebCore/html/HTMLAreaElement.cpp

    r59773 r61959  
    164164}
    165165
    166 KURL HTMLAreaElement::href() const
    167 {
    168     return document()->completeURL(getAttribute(hrefAttr));
    169 }
    170 
    171 bool HTMLAreaElement::noHref() const
    172 {
    173     return !getAttribute(nohrefAttr).isNull();
    174 }
    175 
    176 void HTMLAreaElement::setNoHref(bool noHref)
    177 {
    178     setAttribute(nohrefAttr, noHref ? "" : 0);
    179 }
    180    
    181166HTMLImageElement* HTMLAreaElement::imageElement() const
    182167{
  • trunk/WebCore/html/HTMLAreaElement.h

    r59773 r61959  
    4444    IntRect getRect(RenderObject*) const;
    4545    Path getPath(RenderObject*) const;
    46    
    47     // Convenience method to get the parent map's image.
     46
     47    // The parent map's image.
    4848    HTMLImageElement* imageElement() const;
    4949   
    50     KURL href() const;
    51 
    52     bool noHref() const;
    53     void setNoHref(bool);
    54 
    5550private:
    5651    HTMLAreaElement(const QualifiedName&, Document*);
  • trunk/WebCore/html/HTMLBaseFontElement.cpp

    r61293 r61959  
    4141}
    4242
    43 int HTMLBaseFontElement::size() const
    44 {
    45     return getAttribute(sizeAttr).toInt();
    4643}
    47 
    48 void HTMLBaseFontElement::setSize(int value)
    49 {
    50     setAttribute(sizeAttr, String::number(value));
    51 }
    52 
    53 }
  • trunk/WebCore/html/HTMLBaseFontElement.h

    r60342 r61959  
    3232    static PassRefPtr<HTMLBaseFontElement> create(const QualifiedName&, Document*);
    3333
    34     int size() const;
    35     void setSize(int);
    36 
    3734private:
    3835    HTMLBaseFontElement(const QualifiedName&, Document*);
  • trunk/WebCore/html/HTMLBaseFontElement.idl

    r61413 r61959  
    2424        attribute [Reflect] DOMString face;
    2525#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C
    26         attribute [ConvertToString] DOMString size; // this changed to a long, but our existing API is a string
     26        attribute [Reflect] DOMString size; // this changed to a long, but our existing API is a string
    2727#else
    2828        attribute [Reflect] long size;
  • trunk/WebCore/html/HTMLButtonElement.cpp

    r61293 r61959  
    165165
    166166void HTMLButtonElement::accessKeyAction(bool sendToAnyElement)
    167 {   
     167{
    168168    focus();
    169169    // send the mouse button events iff the caller specified sendToAnyElement
    170170    dispatchSimulatedClick(0, sendToAnyElement);
    171 }
    172 
    173 String HTMLButtonElement::accessKey() const
    174 {
    175     return getAttribute(accesskeyAttr);
    176 }
    177 
    178 void HTMLButtonElement::setAccessKey(const String &value)
    179 {
    180     setAttribute(accesskeyAttr, value);
    181171}
    182172
     
    186176}
    187177
    188 void HTMLButtonElement::setValue(const String &value)
    189 {
    190     setAttribute(valueAttr, value);
    191 }
    192    
    193178} // namespace
  • trunk/WebCore/html/HTMLButtonElement.h

    r60342 r61959  
    3333    static PassRefPtr<HTMLButtonElement> create(const QualifiedName&, Document*, HTMLFormElement*);
    3434
    35     String accessKey() const;
    36     void setAccessKey(const String&);
    37 
    3835    String value() const;
    39     void setValue(const String&);
    4036
    4137private:
  • trunk/WebCore/html/HTMLDListElement.cpp

    r61293 r61959  
    4141}
    4242
    43 bool HTMLDListElement::compact() const
    44 {
    45     return !getAttribute(compactAttr).isNull();
    4643}
    47 
    48 void HTMLDListElement::setCompact(bool b)
    49 {
    50     setAttribute(compactAttr, b ? "" : 0);
    51 }
    52 
    53 }
  • trunk/WebCore/html/HTMLDListElement.h

    r60342 r61959  
    3232    static PassRefPtr<HTMLDListElement> create(const QualifiedName&, Document*);
    3333
    34     bool compact() const;
    35     void setCompact(bool);
    36 
    3734private:
    3835    HTMLDListElement(const QualifiedName&, Document*);
  • trunk/WebCore/html/HTMLDirectoryElement.cpp

    r38878 r61959  
    1 /**
     1/*
    22 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
    33 *           (C) 1999 Antti Koivisto (koivisto@kde.org)
     4 * Copyright (C) 2010 Apple Inc. All rights reserved.
    45 *
    56 * This library is free software; you can redistribute it and/or
     
    1920 *
    2021 */
     22
    2123#include "config.h"
    2224#include "HTMLDirectoryElement.h"
     
    2830using namespace HTMLNames;
    2931
    30 HTMLDirectoryElement::HTMLDirectoryElement(const QualifiedName& tagName, Document* doc)
    31     : HTMLElement(tagName, doc)
     32inline HTMLDirectoryElement::HTMLDirectoryElement(const QualifiedName& tagName, Document* document)
     33    : HTMLElement(tagName, document)
    3234{
    3335    ASSERT(hasTagName(dirTag));
    3436}
    3537
    36 bool HTMLDirectoryElement::compact() const
     38PassRefPtr<HTMLDirectoryElement> HTMLDirectoryElement::create(const QualifiedName& tagName, Document* document)
    3739{
    38     return !getAttribute(compactAttr).isNull();
    39 }
    40 
    41 void HTMLDirectoryElement::setCompact(bool b)
    42 {
    43     setAttribute(compactAttr, b ? "" : 0);
     40    return adoptRef(new HTMLDirectoryElement(tagName, document));
    4441}
    4542
  • trunk/WebCore/html/HTMLDirectoryElement.h

    r45747 r61959  
    22 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
    33 *           (C) 1999 Antti Koivisto (koivisto@kde.org)
     4 * Copyright (C) 2010 Apple Inc. All rights reserved.
    45 *
    56 * This library is free software; you can redistribute it and/or
     
    2930class HTMLDirectoryElement : public HTMLElement {
    3031public:
     32    static PassRefPtr<HTMLDirectoryElement> create(const QualifiedName& tagName, Document*);
     33
     34private:
    3135    HTMLDirectoryElement(const QualifiedName&, Document*);
    3236
    3337    virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; }
    3438    virtual int tagPriority() const { return 5; }
    35 
    36     bool compact() const;
    37     void setCompact(bool);
    3839};
    3940
  • trunk/WebCore/html/HTMLDivElement.cpp

    r61293 r61959  
    7474}
    7575
    76 String HTMLDivElement::align() const
    77 {
    78     return getAttribute(alignAttr);
    7976}
    80 
    81 void HTMLDivElement::setAlign(const String &value)
    82 {
    83     setAttribute(alignAttr, value);
    84 }
    85 
    86 }
  • trunk/WebCore/html/HTMLDivElement.h

    r60418 r61959  
    3333    static PassRefPtr<HTMLDivElement> create(const QualifiedName&, Document*);
    3434
    35     String align() const;
    36     void setAlign(const String&);
    37 
    3835protected:
    3936    HTMLDivElement(const QualifiedName&, Document*);
  • trunk/WebCore/html/HTMLFontElement.cpp

    r61293 r61959  
    150150}
    151151
    152 String HTMLFontElement::color() const
    153 {
    154     return getAttribute(colorAttr);
    155152}
    156 
    157 void HTMLFontElement::setColor(const String& value)
    158 {
    159     setAttribute(colorAttr, value);
    160 }
    161 
    162 String HTMLFontElement::face() const
    163 {
    164     return getAttribute(faceAttr);
    165 }
    166 
    167 void HTMLFontElement::setFace(const String& value)
    168 {
    169     setAttribute(faceAttr, value);
    170 }
    171 
    172 String HTMLFontElement::size() const
    173 {
    174     return getAttribute(sizeAttr);
    175 }
    176 
    177 void HTMLFontElement::setSize(const String& value)
    178 {
    179     setAttribute(sizeAttr, value);
    180 }
    181 
    182 }
  • trunk/WebCore/html/HTMLFontElement.h

    r60418 r61959  
    3333    static PassRefPtr<HTMLFontElement> create(const QualifiedName&, Document*);
    3434   
    35     String color() const;
    36     void setColor(const String&);
    37 
    38     String face() const;
    39     void setFace(const String&);
    40 
    41     String size() const;
    42     void setSize(const String&);
    43    
    4435    static bool cssValueFromFontSizeNumber(const String&, int&);
    4536
  • trunk/WebCore/html/HTMLFormControlElement.cpp

    r61677 r61959  
    8080{
    8181    return !getAttribute(formnovalidateAttr).isNull();
    82 }
    83 
    84 void HTMLFormControlElement::setFormNoValidate(bool formnovalidate)
    85 {
    86     setAttribute(formnovalidateAttr, formnovalidate ? "" : 0);
    8782}
    8883
     
    197192}
    198193
    199 void HTMLFormControlElement::setName(const AtomicString &value)
     194void HTMLFormControlElement::setName(const AtomicString& value)
    200195{
    201196    setAttribute(nameAttr, value);
     
    212207}
    213208
    214 void HTMLFormControlElement::setReadOnly(bool b)
    215 {
    216     setAttribute(readonlyAttr, b ? "" : 0);
    217 }
    218 
    219209bool HTMLFormControlElement::autofocus() const
    220210{
     
    222212}
    223213
    224 void HTMLFormControlElement::setAutofocus(bool b)
    225 {
    226     setAttribute(autofocusAttr, b ? "" : 0);
    227 }
    228 
    229214bool HTMLFormControlElement::required() const
    230215{
    231216    return m_required;
    232 }
    233 
    234 void HTMLFormControlElement::setRequired(bool b)
    235 {
    236     setAttribute(requiredAttr, b ? "" : 0);
    237217}
    238218
  • trunk/WebCore/html/HTMLFormControlElement.h

    r61293 r61959  
    4545
    4646    bool formNoValidate() const;
    47     void setFormNoValidate(bool);
    4847
    4948    virtual void reset() { }
     
    6059    virtual bool isEnumeratable() const { return false; }
    6160
    62     void setReadOnly(bool);
    63 
    64     // Determines whether or not a control will be automatically focused
     61    // Determines whether or not a control will be automatically focused.
    6562    virtual bool autofocus() const;
    66     void setAutofocus(bool);
    6763
    6864    bool required() const;
    69     void setRequired(bool);
    7065
    7166    const AtomicString& type() const { return formControlType(); }
  • trunk/WebCore/html/HTMLFormElement.cpp

    r61618 r61959  
    525525}
    526526
    527 void HTMLFormElement::setName(const String &value)
    528 {
    529     setAttribute(nameAttr, value);
    530 }
    531 
    532527bool HTMLFormElement::noValidate() const
    533528{
     
    535530}
    536531
    537 void HTMLFormElement::setNoValidate(bool novalidate)
    538 {
    539     setAttribute(novalidateAttr, novalidate ? "" : 0);
    540 }
    541 
    542 void HTMLFormElement::setAcceptCharset(const String &value)
    543 {
    544     setAttribute(accept_charsetAttr, value);
    545 }
    546 
    547532String HTMLFormElement::action() const
    548533{
     
    573558{
    574559    return getAttribute(targetAttr);
    575 }
    576 
    577 void HTMLFormElement::setTarget(const String &value)
    578 {
    579     setAttribute(targetAttr, value);
    580560}
    581561
  • trunk/WebCore/html/HTMLFormElement.h

    r61618 r61959  
    1 /*
     1r/*
    22 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
    33 *           (C) 1999 Antti Koivisto (koivisto@kde.org)
     
    8686
    8787    String name() const;
    88     void setName(const String&);
    8988
    9089    bool noValidate() const;
    91     void setNoValidate(bool);
    9290
    9391    String acceptCharset() const { return m_formDataBuilder.acceptCharset(); }
    94     void setAcceptCharset(const String&);
    9592
    9693    String action() const;
     
    10198
    10299    virtual String target() const;
    103     void setTarget(const String&);
    104100
    105101    HTMLFormControlElement* defaultButton() const;
  • trunk/WebCore/html/HTMLFrameElement.cpp

    r59773 r61959  
    9292        // FIXME: Since this does not check attr->isNull(), it can
    9393        // never reset m_noResize to false if the attribute is removed.
    94         // FIXME: There seems to be no code that looks at this
    95         // value and prevents resizing.
    9694    } else
    9795        HTMLFrameElementBase::parseMappedAttribute(attr);
    9896}
    9997
    100 void HTMLFrameElement::setNoResize(bool noResize)
    101 {
    102     setAttribute(noresizeAttr, noResize ? "" : 0);
    103 }
    104 
    10598} // namespace WebCore
  • trunk/WebCore/html/HTMLFrameElement.h

    r59773 r61959  
    3636
    3737    bool noResize() const { return m_noResize; }
    38     void setNoResize(bool);
    3938
    4039private:
  • trunk/WebCore/html/HTMLFrameSetElement.cpp

    r61293 r61959  
    214214}
    215215
    216 String HTMLFrameSetElement::cols() const
    217 {
    218     return getAttribute(colsAttr);
    219 }
    220 
    221 void HTMLFrameSetElement::setCols(const String &value)
    222 {
    223     setAttribute(colsAttr, value);
    224 }
    225 
    226 String HTMLFrameSetElement::rows() const
    227 {
    228     return getAttribute(rowsAttr);
    229 }
    230 
    231 void HTMLFrameSetElement::setRows(const String &value)
    232 {
    233     setAttribute(rowsAttr, value);
    234 }
    235 
    236216} // namespace WebCore
  • trunk/WebCore/html/HTMLFrameSetElement.h

    r60418 r61959  
    4242
    4343    bool hasBorderColor() const { return m_borderColorSet; }
    44 
    45     String cols() const;
    46     void setCols(const String&);
    47 
    48     String rows() const;
    49     void setRows(const String&);
    5044
    5145    const Length* rowLengths() const { return m_rowLengths.get(); }
  • trunk/WebCore/html/HTMLHRElement.cpp

    r61293 r61959  
    107107}
    108108
    109 String HTMLHRElement::align() const
    110 {
    111     return getAttribute(alignAttr);
    112109}
    113 
    114 void HTMLHRElement::setAlign(const String &value)
    115 {
    116     setAttribute(alignAttr, value);
    117 }
    118 
    119 bool HTMLHRElement::noShade() const
    120 {
    121     return !getAttribute(noshadeAttr).isNull();
    122 }
    123 
    124 void HTMLHRElement::setNoShade(bool noShade)
    125 {
    126     setAttribute(noshadeAttr, noShade ? "" : 0);
    127 }
    128 
    129 String HTMLHRElement::size() const
    130 {
    131     return getAttribute(sizeAttr);
    132 }
    133 
    134 void HTMLHRElement::setSize(const String &value)
    135 {
    136     setAttribute(sizeAttr, value);
    137 }
    138 
    139 String HTMLHRElement::width() const
    140 {
    141     return getAttribute(widthAttr);
    142 }
    143 
    144 void HTMLHRElement::setWidth(const String &value)
    145 {
    146     setAttribute(widthAttr, value);
    147 }
    148 
    149 }
  • trunk/WebCore/html/HTMLHRElement.h

    r60418 r61959  
    3232    static PassRefPtr<HTMLHRElement> create(Document*);
    3333    static PassRefPtr<HTMLHRElement> create(const QualifiedName&, Document*);
    34    
    35     String align() const;
    36     void setAlign(const String&);
    37 
    38     bool noShade() const;
    39     void setNoShade(bool);
    40 
    41     String size() const;
    42     void setSize(const String&);
    43 
    44     String width() const;
    45     void setWidth(const String&);
    4634
    4735private:
  • trunk/WebCore/html/HTMLHeadElement.cpp

    r61293 r61959  
    4848}
    4949
    50 String HTMLHeadElement::profile() const
    51 {
    52     return getAttribute(profileAttr);
    53 }
    54 
    55 void HTMLHeadElement::setProfile(const String &value)
    56 {
    57     setAttribute(profileAttr, value);
    58 }
    59 
    6050bool HTMLHeadElement::childAllowed(Node* newChild)
    6151{
  • trunk/WebCore/html/HTMLHeadElement.h

    r60418 r61959  
    3434    static PassRefPtr<HTMLHeadElement> create(const QualifiedName&, Document*);
    3535
    36     String profile() const;
    37     void setProfile(const String&);
    38 
    3936    virtual int tagPriority() const { return 10; }
    4037
  • trunk/WebCore/html/HTMLHeadingElement.cpp

    r61293 r61959  
    5050}
    5151
    52 String HTMLHeadingElement::align() const
    53 {
    54     return getAttribute(alignAttr);
    5552}
    56 
    57 void HTMLHeadingElement::setAlign(const String &value)
    58 {
    59     setAttribute(alignAttr, value);
    60 }
    61 
    62 }
  • trunk/WebCore/html/HTMLHeadingElement.h

    r60418 r61959  
    3232    static PassRefPtr<HTMLHeadingElement> create(const QualifiedName&, Document*);
    3333
    34     String align() const;
    35     void setAlign(const String&);
    36 
    3734private:
    3835    HTMLHeadingElement(const QualifiedName&, Document*);
  • trunk/WebCore/html/HTMLHtmlElement.cpp

    r61293 r61959  
    5151}
    5252
    53 String HTMLHtmlElement::version() const
    54 {
    55     return getAttribute(versionAttr);
    56 }
    57 
    58 void HTMLHtmlElement::setVersion(const String &value)
    59 {
    60     setAttribute(versionAttr, value);
    61 }
    62 
    6353bool HTMLHtmlElement::checkDTD(const Node* newChild)
    6454{
  • trunk/WebCore/html/HTMLHtmlElement.h

    r60418 r61959  
    3434    static PassRefPtr<HTMLHtmlElement> create(const QualifiedName&, Document*);
    3535
    36     String version() const;
    37     void setVersion(const String&);
    38 
    3936private:
    4037    HTMLHtmlElement(const QualifiedName&, Document*);
  • trunk/WebCore/html/HTMLImageElement.cpp

    r61293 r61959  
    343343}
    344344
    345 int HTMLImageElement::hspace() const
    346 {
    347     // ### return actual value
    348     return getAttribute(hspaceAttr).toInt();
    349 }
    350 
    351 void HTMLImageElement::setHspace(int value)
    352 {
    353     setAttribute(hspaceAttr, String::number(value));
    354 }
    355 
    356 bool HTMLImageElement::isMap() const
    357 {
    358     return !getAttribute(ismapAttr).isNull();
    359 }
    360 
    361 void HTMLImageElement::setIsMap(bool isMap)
    362 {
    363     setAttribute(ismapAttr, isMap ? "" : 0);
    364 }
    365 
    366 KURL HTMLImageElement::longDesc() const
    367 {
    368     return document()->completeURL(getAttribute(longdescAttr));
    369 }
    370 
    371 void HTMLImageElement::setLongDesc(const String& value)
    372 {
    373     setAttribute(longdescAttr, value);
    374 }
    375 
    376 KURL HTMLImageElement::lowsrc() const
    377 {
    378     return document()->completeURL(getAttribute(lowsrcAttr));
    379 }
    380 
    381 void HTMLImageElement::setLowsrc(const String& value)
    382 {
    383     setAttribute(lowsrcAttr, value);
    384 }
    385 
    386345KURL HTMLImageElement::src() const
    387346{
     
    392351{
    393352    setAttribute(srcAttr, value);
    394 }
    395 
    396 int HTMLImageElement::vspace() const
    397 {
    398     // ### return actual vspace
    399     return getAttribute(vspaceAttr).toInt();
    400 }
    401 
    402 void HTMLImageElement::setVspace(int value)
    403 {
    404     setAttribute(vspaceAttr, String::number(value));
    405353}
    406354
  • trunk/WebCore/html/HTMLImageElement.h

    r60418 r61959  
    6363    void setHeight(int);
    6464
    65     int hspace() const;
    66     void setHspace(int);
    67 
    68     bool isMap() const;
    69     void setIsMap(bool);
    70 
    71     KURL longDesc() const;
    72     void setLongDesc(const String&);
    73 
    74     KURL lowsrc() const;
    75     void setLowsrc(const String&);
    76 
    7765    KURL src() const;
    7866    void setSrc(const String&);
    79 
    80     int vspace() const;
    81     void setVspace(int);
    8267
    8368    void setWidth(int);
  • trunk/WebCore/html/HTMLInputElement.cpp

    r61756 r61959  
    24112411}
    24122412
    2413 bool HTMLInputElement::defaultChecked() const
    2414 {
    2415     return !getAttribute(checkedAttr).isNull();
    2416 }
    2417 
    2418 void HTMLInputElement::setDefaultChecked(bool defaultChecked)
    2419 {
    2420     setAttribute(checkedAttr, defaultChecked ? "" : 0);
    2421 }
    2422 
    24232413void HTMLInputElement::setDefaultName(const AtomicString& name)
    24242414{
     
    24312421}
    24322422
    2433 void HTMLInputElement::setAccept(const String &value)
    2434 {
    2435     setAttribute(acceptAttr, value);
    2436 }
    2437 
    2438 String HTMLInputElement::accessKey() const
    2439 {
    2440     return getAttribute(accesskeyAttr);
    2441 }
    2442 
    2443 void HTMLInputElement::setAccessKey(const String &value)
    2444 {
    2445     setAttribute(accesskeyAttr, value);
    2446 }
    2447 
    2448 String HTMLInputElement::align() const
    2449 {
    2450     return getAttribute(alignAttr);
    2451 }
    2452 
    2453 void HTMLInputElement::setAlign(const String &value)
    2454 {
    2455     setAttribute(alignAttr, value);
    2456 }
    2457 
    24582423String HTMLInputElement::alt() const
    24592424{
    24602425    return getAttribute(altAttr);
    2461 }
    2462 
    2463 void HTMLInputElement::setAlt(const String &value)
    2464 {
    2465     setAttribute(altAttr, value);
    24662426}
    24672427
     
    24842444}
    24852445
    2486 void HTMLInputElement::setMultiple(bool multiple)
    2487 {
    2488     setAttribute(multipleAttr, multiple ? "" : 0);
    2489 }
    2490    
    24912446void HTMLInputElement::setSize(unsigned size)
    24922447{
     
    24972452{
    24982453    return document()->completeURL(getAttribute(srcAttr));
    2499 }
    2500 
    2501 void HTMLInputElement::setSrc(const String &value)
    2502 {
    2503     setAttribute(srcAttr, value);
    2504 }
    2505 
    2506 String HTMLInputElement::useMap() const
    2507 {
    2508     return getAttribute(usemapAttr);
    2509 }
    2510 
    2511 void HTMLInputElement::setUseMap(const String &value)
    2512 {
    2513     setAttribute(usemapAttr, value);
    25142454}
    25152455
     
    27192659
    27202660#if ENABLE(DATALIST)
     2661
    27212662HTMLElement* HTMLInputElement::list() const
    27222663{
     
    27832724    return 0;
    27842725}
     2726
    27852727#endif // ENABLE(DATALIST)
    27862728
  • trunk/WebCore/html/HTMLInputElement.h

    r61752 r61959  
    162162    void setDefaultValue(const String&);
    163163   
    164     bool defaultChecked() const;
    165     void setDefaultChecked(bool);
    166 
    167164    void setDefaultName(const AtomicString&);
    168165
    169166    String accept() const;
    170     void setAccept(const String&);
    171 
    172     String accessKey() const;
    173     void setAccessKey(const String&);
    174 
    175     String align() const;
    176     void setAlign(const String&);
    177 
    178167    String alt() const;
    179     void setAlt(const String&);
    180168
    181169    void setSize(unsigned);
    182170
    183171    KURL src() const;
    184     void setSrc(const String&);
    185172
    186173    int maxLength() const;
     
    188175
    189176    bool multiple() const;
    190     void setMultiple(bool);
    191 
    192     String useMap() const;
    193     void setUseMap(const String&);
    194177
    195178    virtual bool isAutofilled() const { return m_autofilled; }
  • trunk/WebCore/html/HTMLIsIndexElement.cpp

    r61293 r61959  
    6262}
    6363
    64 String HTMLIsIndexElement::prompt() const
    65 {
    66     return getAttribute(promptAttr);
    67 }
    68 
    69 void HTMLIsIndexElement::setPrompt(const String &value)
    70 {
    71     setAttribute(promptAttr, value);
    72 }
    73 
    7464} // namespace
  • trunk/WebCore/html/HTMLIsIndexElement.h

    r60418 r61959  
    3434    static PassRefPtr<HTMLIsIndexElement> create(const QualifiedName&, Document*, HTMLFormElement*);
    3535
    36     String prompt() const;
    37     void setPrompt(const String&);
    38 
    3936private:
    4037    HTMLIsIndexElement(const QualifiedName&, Document*, HTMLFormElement*);
  • trunk/WebCore/html/HTMLLIElement.cpp

    r61293 r61959  
    117117}
    118118
    119 String HTMLLIElement::type() const
    120 {
    121     return getAttribute(typeAttr);
    122119}
    123 
    124 void HTMLLIElement::setType(const String& value)
    125 {
    126     setAttribute(typeAttr, value);
    127 }
    128 
    129 int HTMLLIElement::value() const
    130 {
    131     return getAttribute(valueAttr).toInt();
    132 }
    133 
    134 void HTMLLIElement::setValue(int value)
    135 {
    136     setAttribute(valueAttr, String::number(value));
    137 }
    138 
    139 }
  • trunk/WebCore/html/HTMLLIElement.h

    r60418 r61959  
    3333    static PassRefPtr<HTMLLIElement> create(const QualifiedName&, Document*);
    3434
    35     String type() const;
    36     void setType(const String&);
    37 
    38     int value() const;
    39     void setValue(int);
    40 
    4135private:
    4236    HTMLLIElement(const QualifiedName&, Document*);
  • trunk/WebCore/html/HTMLLabelElement.cpp

    r61293 r61959  
    155155}
    156156
    157 String HTMLLabelElement::accessKey() const
    158 {
    159     return getAttribute(accesskeyAttr);
    160 }
    161 
    162 void HTMLLabelElement::setAccessKey(const String &value)
    163 {
    164     setAttribute(accesskeyAttr, value);
    165 }
    166 
    167 String HTMLLabelElement::htmlFor() const
    168 {
    169     return getAttribute(forAttr);
    170 }
    171 
    172 void HTMLLabelElement::setHtmlFor(const String &value)
    173 {
    174     setAttribute(forAttr, value);
    175 }
    176 
    177157void HTMLLabelElement::parseMappedAttribute(Attribute* attribute)
    178158{
  • trunk/WebCore/html/HTMLLabelElement.h

    r60418 r61959  
    3636    HTMLFormControlElement* control();
    3737
    38     String accessKey() const;
    39     void setAccessKey(const String&);
    40    
    41     String htmlFor() const;
    42     void setHtmlFor(const String&);
    43 
    4438private:
    4539    HTMLLabelElement(const QualifiedName&, Document*);
  • trunk/WebCore/html/HTMLLegendElement.cpp

    r61293 r61959  
    5555}
    5656
    57 String HTMLLegendElement::accessKey() const
    58 {
    59     return getAttribute(accesskeyAttr);
    60 }
    61 
    62 void HTMLLegendElement::setAccessKey(const String &value)
    63 {
    64     setAttribute(accesskeyAttr, value);
    65 }
    66 
    67 String HTMLLegendElement::align() const
    68 {
    69     return getAttribute(alignAttr);
    70 }
    71 
    72 void HTMLLegendElement::setAlign(const String &value)
    73 {
    74     setAttribute(alignAttr, value);
    75 }
    76 
    7757HTMLFormControlElement* HTMLLegendElement::associatedControl()
    7858{
  • trunk/WebCore/html/HTMLLegendElement.h

    r60418 r61959  
    3333    static PassRefPtr<HTMLLegendElement> create(const QualifiedName&, Document*, HTMLFormElement*);
    3434
    35     String accessKey() const;
    36     void setAccessKey(const String&);
    37 
    38     String align() const;
    39     void setAlign(const String&);
    40    
    4135private:
    4236    HTMLLegendElement(const QualifiedName&, Document*, HTMLFormElement*);
  • trunk/WebCore/html/HTMLLinkElement.cpp

    r61424 r61959  
    363363}
    364364
    365 bool HTMLLinkElement::disabled() const
    366 {
    367     return !getAttribute(disabledAttr).isNull();
    368 }
    369 
    370 void HTMLLinkElement::setDisabled(bool disabled)
    371 {
    372     setAttribute(disabledAttr, disabled ? "" : 0);
    373 }
    374 
    375 String HTMLLinkElement::charset() const
    376 {
    377     return getAttribute(charsetAttr);
    378 }
    379 
    380 void HTMLLinkElement::setCharset(const String& value)
    381 {
    382     setAttribute(charsetAttr, value);
    383 }
    384 
    385365KURL HTMLLinkElement::href() const
    386366{
     
    388368}
    389369
    390 void HTMLLinkElement::setHref(const String& value)
    391 {
    392     setAttribute(hrefAttr, value);
    393 }
    394 
    395 String HTMLLinkElement::hreflang() const
    396 {
    397     return getAttribute(hreflangAttr);
    398 }
    399 
    400 void HTMLLinkElement::setHreflang(const String& value)
    401 {
    402     setAttribute(hreflangAttr, value);
    403 }
    404 
    405 String HTMLLinkElement::media() const
    406 {
    407     return getAttribute(mediaAttr);
    408 }
    409 
    410 void HTMLLinkElement::setMedia(const String& value)
    411 {
    412     setAttribute(mediaAttr, value);
    413 }
    414 
    415370String HTMLLinkElement::rel() const
    416371{
     
    418373}
    419374
    420 void HTMLLinkElement::setRel(const String& value)
    421 {
    422     setAttribute(relAttr, value);
    423 }
    424 
    425 String HTMLLinkElement::rev() const
    426 {
    427     return getAttribute(revAttr);
    428 }
    429 
    430 void HTMLLinkElement::setRev(const String& value)
    431 {
    432     setAttribute(revAttr, value);
    433 }
    434 
    435375String HTMLLinkElement::target() const
    436376{
     
    438378}
    439379
    440 void HTMLLinkElement::setTarget(const String& value)
    441 {
    442     setAttribute(targetAttr, value);
    443 }
    444 
    445380String HTMLLinkElement::type() const
    446381{
    447382    return getAttribute(typeAttr);
    448 }
    449 
    450 void HTMLLinkElement::setType(const String& value)
    451 {
    452     setAttribute(typeAttr, value);
    453383}
    454384
  • trunk/WebCore/html/HTMLLinkElement.h

    r61425 r61959  
    4848    virtual ~HTMLLinkElement();
    4949
    50     bool disabled() const;
    51     void setDisabled(bool);
    52 
    53     String charset() const;
    54     void setCharset(const String&);
    55 
    5650    KURL href() const;
    57     void setHref(const String&);
    58 
    59     String hreflang() const;
    60     void setHreflang(const String&);
    61 
    62     String media() const;
    63     void setMedia(const String&);
    64 
    6551    String rel() const;
    66     void setRel(const String&);
    67 
    68     String rev() const;
    69     void setRev(const String&);
    7052
    7153    virtual String target() const;
    72     void setTarget(const String&);
    7354
    7455    String type() const;
    75     void setType(const String&);
    7656
    7757    StyleSheet* sheet() const;
  • trunk/WebCore/html/HTMLMapElement.cpp

    r61293 r61959  
    138138}
    139139
    140 String HTMLMapElement::name() const
    141 {
    142     return getAttribute(nameAttr);
    143 }
    144 
    145 void HTMLMapElement::setName(const String& value)
    146 {
    147     setAttribute(nameAttr, value);
    148 }
    149 
    150140void HTMLMapElement::insertedIntoDocument()
    151141{
  • trunk/WebCore/html/HTMLMapElement.h

    r60937 r61959  
    4545    PassRefPtr<HTMLCollection> areas();
    4646
    47     String name() const;
    48     void setName(const String&);
    49 
    5047private:
    5148    HTMLMapElement(const QualifiedName&, Document*);
  • trunk/WebCore/html/HTMLMenuElement.cpp

    r61293 r61959  
    4141}
    4242
    43 bool HTMLMenuElement::compact() const
    44 {
    45     return !getAttribute(compactAttr).isNull();
    4643}
    47 
    48 void HTMLMenuElement::setCompact(bool b)
    49 {
    50     setAttribute(compactAttr, b ? "" : 0);
    51 }
    52 
    53 }
  • trunk/WebCore/html/HTMLMenuElement.h

    r60361 r61959  
    3232    static PassRefPtr<HTMLMenuElement> create(const QualifiedName&, Document*);
    3333   
    34     bool compact() const;
    35     void setCompact(bool);
    36 
    3734private:
    3835    HTMLMenuElement(const QualifiedName&, Document*);
  • trunk/WebCore/html/HTMLMetaElement.cpp

    r61293 r61959  
    7777}
    7878
    79 String HTMLMetaElement::content() const
    80 {
    81     return getAttribute(contentAttr);
    82 }
    83 
    84 void HTMLMetaElement::setContent(const String& value)
    85 {
    86     setAttribute(contentAttr, value);
    87 }
    88 
    89 String HTMLMetaElement::httpEquiv() const
    90 {
    91     return getAttribute(http_equivAttr);
    92 }
    93 
    94 void HTMLMetaElement::setHttpEquiv(const String& value)
    95 {
    96     setAttribute(http_equivAttr, value);
    97 }
    98 
    9979String HTMLMetaElement::name() const
    10080{
     
    10282}
    10383
    104 void HTMLMetaElement::setName(const String& value)
    105 {
    106     setAttribute(nameAttr, value);
    10784}
    108 
    109 String HTMLMetaElement::scheme() const
    110 {
    111     return getAttribute(schemeAttr);
    112 }
    113 
    114 void HTMLMetaElement::setScheme(const String &value)
    115 {
    116     setAttribute(schemeAttr, value);
    117 }
    118 
    119 }
  • trunk/WebCore/html/HTMLMetaElement.h

    r60361 r61959  
    3232    static PassRefPtr<HTMLMetaElement> create(const QualifiedName&, Document*);
    3333
    34     String content() const;
    35     void setContent(const String&);
    36 
    37     String httpEquiv() const;
    38     void setHttpEquiv(const String&);
    39 
    4034    String name() const;
    41     void setName(const String&);
    42 
    43     String scheme() const;
    44     void setScheme(const String&);
    4535
    4636private:
  • trunk/WebCore/html/HTMLModElement.cpp

    r61293 r61959  
    4040}
    4141
    42 String HTMLModElement::cite() const
    43 {
    44     return getAttribute(citeAttr);
    4542}
    46 
    47 void HTMLModElement::setCite(const String& value)
    48 {
    49     setAttribute(citeAttr, value);
    50 }
    51 
    52 String HTMLModElement::dateTime() const
    53 {
    54     return getAttribute(datetimeAttr);
    55 }
    56 
    57 void HTMLModElement::setDateTime(const String& value)
    58 {
    59     setAttribute(datetimeAttr, value);
    60 }
    61 
    62 }
  • trunk/WebCore/html/HTMLModElement.h

    r60342 r61959  
    3333    static PassRefPtr<HTMLModElement> create(const QualifiedName&, Document*);
    3434
    35     String cite() const;
    36     void setCite(const String&);
    37 
    38     String dateTime() const;
    39     void setDateTime(const String&);
    40 
    4135private:
    4236    HTMLModElement(const QualifiedName&, Document*);
  • trunk/WebCore/html/HTMLOListElement.cpp

    r61293 r61959  
    9090}
    9191
    92 bool HTMLOListElement::compact() const
    93 {
    94     return !getAttribute(compactAttr).isNull();
    95 }
    96 
    97 void HTMLOListElement::setCompact(bool b)
    98 {
    99     setAttribute(compactAttr, b ? "" : 0);
    100 }
    101 
    10292void HTMLOListElement::setStart(int start)
    10393{
     
    10595}
    10696
    107 String HTMLOListElement::type() const
    108 {
    109     return getAttribute(typeAttr);
    11097}
    111 
    112 void HTMLOListElement::setType(const String& value)
    113 {
    114     setAttribute(typeAttr, value);
    115 }
    116 
    117 }
  • trunk/WebCore/html/HTMLOListElement.h

    r60361 r61959  
    3333    static PassRefPtr<HTMLOListElement> create(const QualifiedName&, Document*);
    3434
    35     bool compact() const;
    36     void setCompact(bool);
    37 
    3835    int start() const { return m_start; }
    3936    void setStart(int);
    40 
    41     String type() const;
    42     void setType(const String&);
    4337
    4438private:
  • trunk/WebCore/html/HTMLObjectElement.cpp

    r61707 r61959  
    302302}
    303303
    304 bool HTMLObjectElement::declare() const
    305 {
    306     return !getAttribute(declareAttr).isNull();
    307 }
    308 
    309 void HTMLObjectElement::setDeclare(bool declare)
    310 {
    311     setAttribute(declareAttr, declare ? "" : 0);
    312 }
    313 
    314 int HTMLObjectElement::hspace() const
    315 {
    316     return getAttribute(hspaceAttr).toInt();
    317 }
    318 
    319 void HTMLObjectElement::setHspace(int value)
    320 {
    321     setAttribute(hspaceAttr, String::number(value));
    322 }
    323 
    324 int HTMLObjectElement::vspace() const
    325 {
    326     return getAttribute(vspaceAttr).toInt();
    327 }
    328 
    329 void HTMLObjectElement::setVspace(int value)
    330 {
    331     setAttribute(vspaceAttr, String::number(value));
    332 }
    333 
    334304bool HTMLObjectElement::containsJavaApplet() const
    335305{
  • trunk/WebCore/html/HTMLObjectElement.h

    r59773 r61959  
    3535
    3636    void renderFallbackContent();
    37 
    38     bool declare() const;
    39     void setDeclare(bool);
    40 
    41     int hspace() const;
    42     void setHspace(int);
    43 
    44     int vspace() const;
    45     void setVspace(int);
    4637
    4738    bool isDocNamedItem() const { return m_docNamedItem; }
  • trunk/WebCore/html/HTMLOptGroupElement.cpp

    r61293 r61959  
    8787}
    8888
    89 String HTMLOptGroupElement::label() const
    90 {
    91     return getAttribute(labelAttr);
    92 }
    93 
    94 void HTMLOptGroupElement::setLabel(const String &value)
    95 {
    96     setAttribute(labelAttr, value);
    97 }
    98 
    9989bool HTMLOptGroupElement::checkDTD(const Node* newChild)
    10090{
  • trunk/WebCore/html/HTMLOptGroupElement.h

    r60361 r61959  
    3636    static PassRefPtr<HTMLOptGroupElement> create(const QualifiedName&, Document*, HTMLFormElement*);
    3737
    38     String label() const;
    39     void setLabel(const String&);
    40    
    4138    HTMLSelectElement* ownerSelectElement() const;
    4239   
  • trunk/WebCore/html/HTMLOptionElement.cpp

    r61293 r61959  
    209209}
    210210
    211 bool HTMLOptionElement::defaultSelected() const
    212 {
    213     return !getAttribute(selectedAttr).isNull();
    214 }
    215 
    216211void HTMLOptionElement::setDefaultSelected(bool b)
    217212{
    218213    setAttribute(selectedAttr, b ? "" : 0);
    219 }
    220 
    221 String HTMLOptionElement::label() const
    222 {
    223     return m_data.label();
    224 }
    225 
    226 void HTMLOptionElement::setLabel(const String& value)
    227 {
    228     setAttribute(labelAttr, value);
    229214}
    230215
  • trunk/WebCore/html/HTMLOptionElement.h

    r60361 r61959  
    5555    HTMLSelectElement* ownerSelectElement() const;
    5656
    57     bool defaultSelected() const;
    5857    void setDefaultSelected(bool);
    59 
    60     String label() const;
    61     void setLabel(const String&);
    6258
    6359    bool ownElementDisabled() const { return HTMLFormControlElement::disabled(); }
  • trunk/WebCore/html/HTMLParagraphElement.cpp

    r61293 r61959  
    7575}
    7676
    77 String HTMLParagraphElement::align() const
    78 {
    79     return getAttribute(alignAttr);
    8077}
    81 
    82 void HTMLParagraphElement::setAlign(const String &value)
    83 {
    84     setAttribute(alignAttr, value);
    85 }
    86 
    87 }
  • trunk/WebCore/html/HTMLParagraphElement.h

    r60361 r61959  
    3232    static PassRefPtr<HTMLParagraphElement> create(const QualifiedName&, Document*);
    3333
    34     String align() const;
    35     void setAlign(const String&);
    36 
    3734private:
    3835    HTMLParagraphElement(const QualifiedName&, Document*);
  • trunk/WebCore/html/HTMLParamElement.cpp

    r61293 r61959  
    7272}
    7373
    74 void HTMLParamElement::setName(const String& value)
    75 {
    76     setAttribute(nameAttr, value);
    77 }
    78 
    79 String HTMLParamElement::type() const
    80 {
    81     return getAttribute(typeAttr);
    82 }
    83 
    84 void HTMLParamElement::setType(const String& value)
    85 {
    86     setAttribute(typeAttr, value);
    87 }
    88 
    89 void HTMLParamElement::setValue(const String& value)
    90 {
    91     setAttribute(valueAttr, value);
    92 }
    93 
    94 String HTMLParamElement::valueType() const
    95 {
    96     return getAttribute(valuetypeAttr);
    97 }
    98 
    99 void HTMLParamElement::setValueType(const String& value)
    100 {
    101     setAttribute(valuetypeAttr, value);
    102 }
    103 
    10474void HTMLParamElement::addSubresourceAttributeURLs(ListHashSet<KURL>& urls) const
    10575{
  • trunk/WebCore/html/HTMLParamElement.h

    r60361 r61959  
    3333
    3434    String name() const { return m_name; }
    35     void setName(const String&);
    36 
    37     String type() const;
    38     void setType(const String&);
    39 
    4035    String value() const { return m_value; }
    41     void setValue(const String&);
    42 
    43     String valueType() const;
    44     void setValueType(const String&);
    4536
    4637private:
  • trunk/WebCore/html/HTMLPlugInElement.cpp

    r59773 r61959  
    8989}
    9090
    91 String HTMLPlugInElement::height() const
    92 {
    93     return getAttribute(heightAttr);
    94 }
    95 
    96 void HTMLPlugInElement::setHeight(const String& value)
    97 {
    98     setAttribute(heightAttr, value);
    99 }
    100 
    101 String HTMLPlugInElement::width() const
    102 {
    103     return getAttribute(widthAttr);
    104 }
    105 
    106 void HTMLPlugInElement::setWidth(const String& value)
    107 {
    108     setAttribute(widthAttr, value);
    109 }
    110 
    11191bool HTMLPlugInElement::mapToEntry(const QualifiedName& attrName, MappedAttributeEntry& result) const
    11292{
  • trunk/WebCore/html/HTMLPlugInElement.h

    r59773 r61959  
    3939    virtual ~HTMLPlugInElement();
    4040
    41     String height() const;
    42     void setHeight(const String&);
    43    
    44     String width() const;
    45     void setWidth(const String&);
    46 
    4741    PassScriptInstance getInstance() const;
    4842
  • trunk/WebCore/html/HTMLPreElement.cpp

    r61293 r61959  
    6666}
    6767
    68 int HTMLPreElement::width() const
    69 {
    70     return getAttribute(widthAttr).toInt();
    7168}
    72 
    73 void HTMLPreElement::setWidth(int width)
    74 {
    75     setAttribute(widthAttr, String::number(width));
    76 }
    77 
    78 bool HTMLPreElement::wrap() const
    79 {
    80     return !getAttribute(wrapAttr).isNull();
    81 }
    82 
    83 void HTMLPreElement::setWrap(bool wrap)
    84 {
    85     setAttribute(wrapAttr, wrap ? "" : 0);
    86 }
    87 
    88 }
  • trunk/WebCore/html/HTMLPreElement.h

    r60361 r61959  
    3232    static PassRefPtr<HTMLPreElement> create(const QualifiedName&, Document*);
    3333
    34     int width() const;
    35     void setWidth(int);
    36 
    37     bool wrap() const;
    38     void setWrap(bool);
    39 
    4034private:
    4135    HTMLPreElement(const QualifiedName&, Document*);
  • trunk/WebCore/html/HTMLQuoteElement.cpp

    r61293 r61959  
    4949}
    5050
    51 String HTMLQuoteElement::cite() const
    52 {
    53     return getAttribute(citeAttr);
    5451}
    55 
    56 void HTMLQuoteElement::setCite(const String &value)
    57 {
    58     setAttribute(citeAttr, value);
    59 }
    60 
    61 }
  • trunk/WebCore/html/HTMLQuoteElement.h

    r60361 r61959  
    3535    static PassRefPtr<HTMLQuoteElement> create(const QualifiedName&, Document*);
    3636
    37     String cite() const;
    38     void setCite(const String&);
    39 
    4037private:
    4138    HTMLQuoteElement(const QualifiedName&, Document*);
  • trunk/WebCore/html/HTMLScriptElement.cpp

    r61518 r61959  
    118118}
    119119
    120 String HTMLScriptElement::htmlFor() const
    121 {
    122     // DOM Level 1 says: reserved for future use.
    123     return String();
    124 }
    125 
    126 void HTMLScriptElement::setHtmlFor(const String&)
    127 {
    128     // DOM Level 1 says: reserved for future use.
    129 }
    130 
    131 String HTMLScriptElement::event() const
    132 {
    133     // DOM Level 1 says: reserved for future use.
    134     return String();
    135 }
    136 
    137 void HTMLScriptElement::setEvent(const String&)
    138 {
    139     // DOM Level 1 says: reserved for future use.
    140 }
    141 
    142 String HTMLScriptElement::charset() const
    143 {
    144     return charsetAttributeValue();
    145 }
    146 
    147 void HTMLScriptElement::setCharset(const String &value)
    148 {
    149     setAttribute(charsetAttr, value);
    150 }
    151 
    152 bool HTMLScriptElement::async() const
    153 {
    154     return asyncAttributeValue();
    155 }
    156 
    157 void HTMLScriptElement::setAsync(bool async)
    158 {
    159     setAttribute(asyncAttr, async ? "" : 0);
    160 }
    161 
    162 bool HTMLScriptElement::defer() const
    163 {
    164     return deferAttributeValue();
    165 }
    166 
    167 void HTMLScriptElement::setDefer(bool defer)
    168 {
    169     setAttribute(deferAttr, defer ? "" : 0);
    170 }
    171 
    172120KURL HTMLScriptElement::src() const
    173121{
    174122    return document()->completeURL(sourceAttributeValue());
    175 }
    176 
    177 void HTMLScriptElement::setSrc(const String &value)
    178 {
    179     setAttribute(srcAttr, value);
    180 }
    181 
    182 String HTMLScriptElement::type() const
    183 {
    184     return typeAttributeValue();
    185 }
    186 
    187 void HTMLScriptElement::setType(const String &value)
    188 {
    189     setAttribute(typeAttr, value);
    190123}
    191124
  • trunk/WebCore/html/HTMLScriptElement.h

    r61518 r61959  
    3939    void setText(const String&);
    4040
    41     String htmlFor() const;
    42     void setHtmlFor(const String&);
    43 
    44     String event() const;
    45     void setEvent(const String&);
    46 
    47     String charset() const;
    48     void setCharset(const String&);
    49 
    50     bool async() const;
    51     void setAsync(bool);
    52 
    53     bool defer() const;
    54     void setDefer(bool);
    55 
    5641    KURL src() const;
    57     void setSrc(const String&);
    58 
    59     String type() const;
    60     void setType(const String&);
    6142
    6243    virtual String scriptCharset() const;
  • trunk/WebCore/html/HTMLSelectElement.idl

    r60232 r61959  
    11/*
    2  * Copyright (C) 2006 Apple Computer, Inc.
     2 * Copyright (C) 2006, 2010 Apple Inc. All rights reserved.
    33 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
    44 *
     
    2525        HasCustomIndexSetter
    2626    ] HTMLSelectElement : HTMLElement {
    27 
    28         readonly attribute DOMString       type;
    29                  attribute long            selectedIndex;
    30                  attribute [ConvertNullToNullString] DOMString       value;
     27        readonly attribute DOMString type;
     28        attribute long selectedIndex;
     29        attribute [ConvertNullToNullString] DOMString value;
    3130       
    3231        // Modified in DOM Level 2:
    3332#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C
    34         readonly attribute long            length;
     33        readonly attribute long length;
    3534#else
    36                  attribute unsigned long   length
    37                     setter raises (DOMException);
     35        attribute unsigned long length setter raises (DOMException);
    3836#endif
    3937
    4038        readonly attribute HTMLFormElement form;
    41         readonly attribute ValidityState   validity;
    42         readonly attribute boolean         willValidate;
    43         readonly attribute DOMString       validationMessage;
    44         boolean            checkValidity();
    45         void               setCustomValidity(in [ConvertUndefinedOrNullToNullString] DOMString error);
     39        readonly attribute ValidityState validity;
     40        readonly attribute boolean willValidate;
     41        readonly attribute DOMString validationMessage;
     42        boolean checkValidity();
     43        void setCustomValidity(in [ConvertUndefinedOrNullToNullString] DOMString error);
    4644
    4745        // Modified in DOM Level 2:
    4846        readonly attribute HTMLOptionsCollection options;
    4947
    50                  attribute boolean        disabled;
    51                  attribute boolean        autofocus;
    52                  attribute boolean        multiple;
    53                  attribute [ConvertNullToNullString] DOMString      name;
    54                  attribute long            size;
     48        attribute [Reflect] boolean disabled;
     49        attribute [Reflect] boolean autofocus;
     50        attribute boolean multiple;
     51        attribute [ConvertNullToNullString] DOMString name;
     52        attribute long size;
    5553       
    56         [OldStyleObjC] void add(in HTMLElement element,
    57                                in HTMLElement before)
    58             raises(DOMException);
     54        [OldStyleObjC] void add(in HTMLElement element, in HTMLElement before) raises(DOMException);
    5955
    6056#if defined(LANGUAGE_JAVASCRIPT) && LANGUAGE_JAVASCRIPT
    61         // In JS, we support both options index and options object parameters - this cannot be autogenerated now.
    62         [Custom] void      remove(/* 1 */);
     57        // In JavaScript, we support both option index and option object parameters.
     58        // As of this writing this cannot be auto-generated.
     59        [Custom] void remove(/* indexOrOption */);
    6360#else
    64         void               remove(in long index);
     61        void remove(in long index);
    6562#endif
    6663
     
    6966        Node item(in [IsIndex] unsigned long index);
    7067        Node namedItem(in DOMString name);
    71         readonly attribute NodeList        labels;
     68        readonly attribute NodeList labels;
    7269    };
    7370
  • trunk/WebCore/html/HTMLStyleElement.cpp

    r61293 r61959  
    4646}
    4747
    48 // other stuff...
    4948void HTMLStyleElement::parseMappedAttribute(Attribute* attr)
    5049{
    51     if (attr->name() == mediaAttr)
    52         m_media = attr->value().string().lower();
    53     else if (attr->name() == titleAttr && m_sheet)
     50    if (attr->name() == titleAttr && m_sheet)
    5451        m_sheet->setTitle(attr->value());
    55      else
     52    else
    5653        HTMLElement::parseMappedAttribute(attr);
    5754}
     
    111108}
    112109
    113 bool HTMLStyleElement::disabled() const
    114 {
    115     return !getAttribute(disabledAttr).isNull();
    116 }
    117 
    118 void HTMLStyleElement::setDisabled(bool disabled)
    119 {
    120     setAttribute(disabledAttr, disabled ? "" : 0);
    121 }
    122 
    123110const AtomicString& HTMLStyleElement::media() const
    124111{
     
    126113}
    127114
    128 void HTMLStyleElement::setMedia(const AtomicString &value)
    129 {
    130     setAttribute(mediaAttr, value);
    131 }
    132 
    133115const AtomicString& HTMLStyleElement::type() const
    134116{
    135117    return getAttribute(typeAttr);
    136 }
    137 
    138 void HTMLStyleElement::setType(const AtomicString &value)
    139 {
    140     setAttribute(typeAttr, value);
    141118}
    142119
  • trunk/WebCore/html/HTMLStyleElement.h

    r60361 r61959  
    2020 *
    2121 */
     22
    2223#ifndef HTMLStyleElement_h
    2324#define HTMLStyleElement_h
     
    3031class StyleSheet;
    3132
    32 class HTMLStyleElement : public HTMLElement, public StyleElement {
     33class HTMLStyleElement : public HTMLElement, private StyleElement {
    3334public:
    3435    static PassRefPtr<HTMLStyleElement> create(const QualifiedName&, Document*, bool createdByParser);
    3536
    36     bool disabled() const;
    37     void setDisabled(bool);
    38 
    39     virtual const AtomicString& media() const;
    40     void setMedia(const AtomicString&);
    41 
    42     virtual const AtomicString& type() const;
    4337    void setType(const AtomicString&);
    4438
     
    6761    virtual void addSubresourceAttributeURLs(ListHashSet<KURL>&) const;
    6862
    69     String m_media;
     63    virtual const AtomicString& media() const;
     64    virtual const AtomicString& type() const;
     65
    7066    bool m_loading;
    7167    bool m_createdByParser;
  • trunk/WebCore/html/HTMLStyleElement.idl

    r61413 r61959  
    2222
    2323    interface HTMLStyleElement : HTMLElement {
    24         attribute boolean disabled;
     24        attribute [Reflect] boolean disabled;
    2525        attribute [Reflect] DOMString media;
    2626        attribute [Reflect] DOMString type;
  • trunk/WebCore/html/HTMLTableCaptionElement.cpp

    r61293 r61959  
    6464}
    6565
    66 String HTMLTableCaptionElement::align() const
    67 {
    68     return getAttribute(alignAttr);
    6966}
    70 
    71 void HTMLTableCaptionElement::setAlign(const String &value)
    72 {
    73     setAttribute(alignAttr, value);
    74 }
    75 
    76 }
  • trunk/WebCore/html/HTMLTableCaptionElement.h

    r60342 r61959  
    3535    static PassRefPtr<HTMLTableCaptionElement> create(const QualifiedName&, Document*);
    3636
    37     String align() const;
    38     void setAlign(const String&);
    39 
    4037private:
    4138    HTMLTableCaptionElement(const QualifiedName&, Document*);
  • trunk/WebCore/html/HTMLTableCellElement.cpp

    r61630 r61959  
    134134}
    135135
    136 void HTMLTableCellElement::setAbbr(const String &value)
    137 {
    138     setAttribute(abbrAttr, value);
    139 }
    140 
    141 String HTMLTableCellElement::align() const
    142 {
    143     return getAttribute(alignAttr);
    144 }
    145 
    146 void HTMLTableCellElement::setAlign(const String &value)
    147 {
    148     setAttribute(alignAttr, value);
    149 }
    150 
    151136String HTMLTableCellElement::axis() const
    152137{
    153138    return getAttribute(axisAttr);
    154 }
    155 
    156 void HTMLTableCellElement::setAxis(const String &value)
    157 {
    158     setAttribute(axisAttr, value);
    159 }
    160 
    161 String HTMLTableCellElement::bgColor() const
    162 {
    163     return getAttribute(bgcolorAttr);
    164 }
    165 
    166 void HTMLTableCellElement::setBgColor(const String &value)
    167 {
    168     setAttribute(bgcolorAttr, value);
    169 }
    170 
    171 String HTMLTableCellElement::ch() const
    172 {
    173     return getAttribute(charAttr);
    174 }
    175 
    176 void HTMLTableCellElement::setCh(const String &value)
    177 {
    178     setAttribute(charAttr, value);
    179 }
    180 
    181 String HTMLTableCellElement::chOff() const
    182 {
    183     return getAttribute(charoffAttr);
    184 }
    185 
    186 void HTMLTableCellElement::setChOff(const String &value)
    187 {
    188     setAttribute(charoffAttr, value);
    189139}
    190140
     
    199149}
    200150
    201 void HTMLTableCellElement::setHeaders(const String &value)
    202 {
    203     setAttribute(headersAttr, value);
    204 }
    205 
    206 String HTMLTableCellElement::height() const
    207 {
    208     return getAttribute(heightAttr);
    209 }
    210 
    211 void HTMLTableCellElement::setHeight(const String &value)
    212 {
    213     setAttribute(heightAttr, value);
    214 }
    215 
    216 bool HTMLTableCellElement::noWrap() const
    217 {
    218     return !getAttribute(nowrapAttr).isNull();
    219 }
    220 
    221 void HTMLTableCellElement::setNoWrap(bool b)
    222 {
    223     setAttribute(nowrapAttr, b ? "" : 0);
    224 }
    225 
    226151void HTMLTableCellElement::setRowSpan(int n)
    227152{
     
    234159}
    235160
    236 void HTMLTableCellElement::setScope(const String &value)
    237 {
    238     setAttribute(scopeAttr, value);
    239 }
    240 
    241 String HTMLTableCellElement::vAlign() const
    242 {
    243     return getAttribute(valignAttr);
    244 }
    245 
    246 void HTMLTableCellElement::setVAlign(const String &value)
    247 {
    248     setAttribute(valignAttr, value);
    249 }
    250 
    251 String HTMLTableCellElement::width() const
    252 {
    253     return getAttribute(widthAttr);
    254 }
    255 
    256 void HTMLTableCellElement::setWidth(const String &value)
    257 {
    258     setAttribute(widthAttr, value);
    259 }
    260 
    261161void HTMLTableCellElement::addSubresourceAttributeURLs(ListHashSet<KURL>& urls) const
    262162{
  • trunk/WebCore/html/HTMLTableCellElement.h

    r60361 r61959  
    4848
    4949    String abbr() const;
    50     void setAbbr(const String&);
    51 
    52     String align() const;
    53     void setAlign(const String&);
    54 
    5550    String axis() const;
    56     void setAxis(const String&);
    57 
    58     String bgColor() const;
    59     void setBgColor(const String&);
    60 
    61     String ch() const;
    62     void setCh(const String&);
    63 
    64     String chOff() const;
    65     void setChOff(const String&);
    66 
    6751    void setColSpan(int);
    68 
    6952    String headers() const;
    70     void setHeaders(const String&);
    71 
    72     String height() const;
    73     void setHeight(const String&);
    74 
    75     bool noWrap() const;
    76     void setNoWrap(bool);
    77 
    7853    void setRowSpan(int);
    79 
    8054    String scope() const;
    81     void setScope(const String&);
    82 
    83     String vAlign() const;
    84     void setVAlign(const String&);
    85 
    86     String width() const;
    87     void setWidth(const String&);
    8855
    8956private:
  • trunk/WebCore/html/HTMLTableCellElement.idl

    r61413 r61959  
    3232        attribute [Reflect] DOMString headers;
    3333        attribute [Reflect] DOMString height;
    34         attribute boolean noWrap;
     34        attribute [Reflect] boolean noWrap;
    3535        attribute long rowSpan;
    3636        attribute [Reflect] DOMString scope;
  • trunk/WebCore/html/HTMLTableColElement.cpp

    r61293 r61959  
    111111}
    112112
    113 String HTMLTableColElement::align() const
    114 {
    115     return getAttribute(alignAttr);
    116 }
    117 
    118 void HTMLTableColElement::setAlign(const String &value)
    119 {
    120     setAttribute(alignAttr, value);
    121 }
    122 
    123 String HTMLTableColElement::ch() const
    124 {
    125     return getAttribute(charAttr);
    126 }
    127 
    128 void HTMLTableColElement::setCh(const String &value)
    129 {
    130     setAttribute(charAttr, value);
    131 }
    132 
    133 String HTMLTableColElement::chOff() const
    134 {
    135     return getAttribute(charoffAttr);
    136 }
    137 
    138 void HTMLTableColElement::setChOff(const String &value)
    139 {
    140     setAttribute(charoffAttr, value);
    141 }
    142 
    143113void HTMLTableColElement::setSpan(int n)
    144114{
    145115    setAttribute(spanAttr, String::number(n));
    146 }
    147 
    148 String HTMLTableColElement::vAlign() const
    149 {
    150     return getAttribute(valignAttr);
    151 }
    152 
    153 void HTMLTableColElement::setVAlign(const String &value)
    154 {
    155     setAttribute(valignAttr, value);
    156116}
    157117
     
    161121}
    162122
    163 void HTMLTableColElement::setWidth(const String &value)
    164 {
    165     setAttribute(widthAttr, value);
    166123}
    167 
    168 }
  • trunk/WebCore/html/HTMLTableColElement.h

    r60342 r61959  
    3636
    3737    int span() const { return m_span; }
    38 
    39     String align() const;
    40     void setAlign(const String&);
    41 
    42     String ch() const;
    43     void setCh(const String&);
    44 
    45     String chOff() const;
    46     void setChOff(const String&);
    47 
    4838    void setSpan(int);
    4939
    50     String vAlign() const;
    51     void setVAlign(const String&);
    52 
    5340    String width() const;
    54     void setWidth(const String&);
    5541
    5642private:
  • trunk/WebCore/html/HTMLTableElement.cpp

    r61293 r61959  
    670670}
    671671
    672 String HTMLTableElement::align() const
    673 {
    674     return getAttribute(alignAttr);
    675 }
    676 
    677 void HTMLTableElement::setAlign(const String &value)
    678 {
    679     setAttribute(alignAttr, value);
    680 }
    681 
    682 String HTMLTableElement::bgColor() const
    683 {
    684     return getAttribute(bgcolorAttr);
    685 }
    686 
    687 void HTMLTableElement::setBgColor(const String &value)
    688 {
    689     setAttribute(bgcolorAttr, value);
    690 }
    691 
    692 String HTMLTableElement::border() const
    693 {
    694     return getAttribute(borderAttr);
    695 }
    696 
    697 void HTMLTableElement::setBorder(const String &value)
    698 {
    699     setAttribute(borderAttr, value);
    700 }
    701 
    702 String HTMLTableElement::cellPadding() const
    703 {
    704     return getAttribute(cellpaddingAttr);
    705 }
    706 
    707 void HTMLTableElement::setCellPadding(const String &value)
    708 {
    709     setAttribute(cellpaddingAttr, value);
    710 }
    711 
    712 String HTMLTableElement::cellSpacing() const
    713 {
    714     return getAttribute(cellspacingAttr);
    715 }
    716 
    717 void HTMLTableElement::setCellSpacing(const String &value)
    718 {
    719     setAttribute(cellspacingAttr, value);
    720 }
    721 
    722 String HTMLTableElement::frame() const
    723 {
    724     return getAttribute(frameAttr);
    725 }
    726 
    727 void HTMLTableElement::setFrame(const String &value)
    728 {
    729     setAttribute(frameAttr, value);
    730 }
    731 
    732672String HTMLTableElement::rules() const
    733673{
     
    735675}
    736676
    737 void HTMLTableElement::setRules(const String &value)
    738 {
    739     setAttribute(rulesAttr, value);
    740 }
    741 
    742677String HTMLTableElement::summary() const
    743678{
     
    745680}
    746681
    747 void HTMLTableElement::setSummary(const String &value)
    748 {
    749     setAttribute(summaryAttr, value);
    750 }
    751 
    752 String HTMLTableElement::width() const
    753 {
    754     return getAttribute(widthAttr);
    755 }
    756 
    757 void HTMLTableElement::setWidth(const String &value)
    758 {
    759     setAttribute(widthAttr, value);
    760 }
    761 
    762682void HTMLTableElement::addSubresourceAttributeURLs(ListHashSet<KURL>& urls) const
    763683{
  • trunk/WebCore/html/HTMLTableElement.h

    r60361 r61959  
    6161    PassRefPtr<HTMLCollection> tBodies();
    6262
    63     String align() const;
    64     void setAlign(const String&);
    65 
    66     String bgColor() const;
    67     void setBgColor(const String&);
    68 
    69     String border() const;
    70     void setBorder(const String&);
    71 
    72     String cellPadding() const;
    73     void setCellPadding(const String&);
    74 
    75     String cellSpacing() const;
    76     void setCellSpacing(const String&);
    77 
    78     String frame() const;
    79     void setFrame(const String&);
    80 
    8163    String rules() const;
    82     void setRules(const String&);
    83 
    8464    String summary() const;
    85     void setSummary(const String&);
    86 
    87     String width() const;
    88     void setWidth(const String&);
    8965
    9066    virtual ContainerNode* addChild(PassRefPtr<Node>);
  • trunk/WebCore/html/HTMLTableRowElement.cpp

    r61293 r61959  
    182182}
    183183
    184 void HTMLTableRowElement::setCells(HTMLCollection *, ExceptionCode& ec)
     184void HTMLTableRowElement::setCells(HTMLCollection*, ExceptionCode& ec)
    185185{
    186186    ec = NO_MODIFICATION_ALLOWED_ERR;
    187187}
    188188
    189 String HTMLTableRowElement::align() const
    190 {
    191     return getAttribute(alignAttr);
    192189}
    193 
    194 void HTMLTableRowElement::setAlign(const String &value)
    195 {
    196     setAttribute(alignAttr, value);
    197 }
    198 
    199 String HTMLTableRowElement::bgColor() const
    200 {
    201     return getAttribute(bgcolorAttr);
    202 }
    203 
    204 void HTMLTableRowElement::setBgColor(const String &value)
    205 {
    206     setAttribute(bgcolorAttr, value);
    207 }
    208 
    209 String HTMLTableRowElement::ch() const
    210 {
    211     return getAttribute(charAttr);
    212 }
    213 
    214 void HTMLTableRowElement::setCh(const String &value)
    215 {
    216     setAttribute(charAttr, value);
    217 }
    218 
    219 String HTMLTableRowElement::chOff() const
    220 {
    221     return getAttribute(charoffAttr);
    222 }
    223 
    224 void HTMLTableRowElement::setChOff(const String &value)
    225 {
    226     setAttribute(charoffAttr, value);
    227 }
    228 
    229 String HTMLTableRowElement::vAlign() const
    230 {
    231     return getAttribute(valignAttr);
    232 }
    233 
    234 void HTMLTableRowElement::setVAlign(const String &value)
    235 {
    236     setAttribute(valignAttr, value);
    237 }
    238 
    239 }
  • trunk/WebCore/html/HTMLTableRowElement.h

    r60361 r61959  
    5050    void setCells(HTMLCollection *, ExceptionCode&);
    5151
    52     String align() const;
    53     void setAlign(const String&);
    54 
    55     String bgColor() const;
    56     void setBgColor(const String&);
    57 
    58     String ch() const;
    59     void setCh(const String&);
    60 
    61     String chOff() const;
    62     void setChOff(const String&);
    63 
    64     String vAlign() const;
    65     void setVAlign(const String&);
    66 
    6752private:
    6853    HTMLTableRowElement(const QualifiedName&, Document*);
  • trunk/WebCore/html/HTMLTextAreaElement.cpp

    r61293 r61959  
    400400}
    401401
    402 const AtomicString& HTMLTextAreaElement::accessKey() const
    403 {
    404     return getAttribute(accesskeyAttr);
    405 }
    406 
    407 void HTMLTextAreaElement::setAccessKey(const String& value)
    408 {
    409     setAttribute(accesskeyAttr, value);
    410 }
    411 
    412402void HTMLTextAreaElement::setCols(int cols)
    413403{
  • trunk/WebCore/html/HTMLTextAreaElement.h

    r60418 r61959  
    5252    void rendererWillBeDestroyed();
    5353   
    54     const AtomicString& accessKey() const;
    55     void setAccessKey(const String&);
    56 
    5754    void setCols(int);
    5855    void setRows(int);
  • trunk/WebCore/html/HTMLTextAreaElement.idl

    r61413 r61959  
    2727        attribute [Reflect] DOMString accessKey;
    2828        attribute long cols;
    29         attribute boolean disabled;
    30         attribute boolean autofocus;
     29        attribute [Reflect] boolean disabled;
     30        attribute [Reflect] boolean autofocus;
    3131        attribute long maxLength setter raises(DOMException);
    3232        attribute [ConvertNullToNullString] DOMString name;
    3333        attribute [Reflect] DOMString placeholder;
    34         attribute boolean readOnly;
    35         attribute boolean required;
     34        attribute [Reflect] boolean readOnly;
     35        attribute [Reflect] boolean required;
    3636        attribute long rows;
    3737        readonly attribute DOMString type;
  • trunk/WebCore/html/HTMLUListElement.cpp

    r61293 r61959  
    6666}
    6767
    68 bool HTMLUListElement::compact() const
    69 {
    70     return !getAttribute(compactAttr).isNull();
    7168}
    72 
    73 void HTMLUListElement::setCompact(bool b)
    74 {
    75     setAttribute(compactAttr, b ? "" : 0);
    76 }
    77 
    78 String HTMLUListElement::type() const
    79 {
    80     return getAttribute(typeAttr);
    81 }
    82 
    83 void HTMLUListElement::setType(const String &value)
    84 {
    85     setAttribute(typeAttr, value);
    86 }
    87 
    88 }
  • trunk/WebCore/html/HTMLUListElement.h

    r60361 r61959  
    3333    static PassRefPtr<HTMLUListElement> create(const QualifiedName&, Document*);
    3434
    35     bool compact() const;
    36     void setCompact(bool);
    37 
    38     String type() const;
    39     void setType(const String&);
    40 
    4135private:
    4236    HTMLUListElement(const QualifiedName&, Document*);
  • trunk/WebCore/html/HTMLUListElement.idl

    r61413 r61959  
    2121
    2222    interface HTMLUListElement : HTMLElement {
    23         attribute boolean compact;
     23        attribute [Reflect] boolean compact;
    2424        attribute [Reflect] DOMString type;
    2525    };
  • trunk/WebCore/html/HTMLVideoElement.cpp

    r61413 r61959  
    155155    return ok ? w : 0;
    156156}
    157 
    158 void HTMLVideoElement::setWidth(unsigned value)
    159 {
    160     setAttribute(widthAttr, String::number(value));
    161 }
    162157   
    163158unsigned HTMLVideoElement::height() const
     
    168163}
    169164   
    170 void HTMLVideoElement::setHeight(unsigned value)
    171 {
    172     setAttribute(heightAttr, String::number(value));
    173 }
    174 
    175 void HTMLVideoElement::setPoster(const String& value)
    176 {
    177     setAttribute(posterAttr, value);
    178 }
    179 
    180165bool HTMLVideoElement::isURLAttribute(Attribute* attribute) const
    181166{
  • trunk/WebCore/html/HTMLVideoElement.h

    r60361 r61959  
    4040
    4141    unsigned width() const;
    42     void setWidth(unsigned);
    4342    unsigned height() const;
    44     void setHeight(unsigned);
    4543   
    4644    unsigned videoWidth() const;
     
    4846   
    4947    virtual const KURL poster() const { return m_posterURL; }
    50     void setPoster(const String&);
    5148
    5249    // Fullscreen
Note: See TracChangeset for help on using the changeset viewer.