WebCore/ChangeLog

 12010-06-26 Darin Adler <darin@apple.com>
 2
 3 Reviewed by NOBODY (OOPS!).
 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
3132 Reviewed by Adam Barth.
61958

WebCore/html/HTMLAppletElement.cpp

@@void HTMLAppletElement::finishParsingChi
168168 renderer()->setNeedsLayout(true); // This will cause it to create its widget & the Java applet
169169}
170170
171 String HTMLAppletElement::hspace() const
172 {
173  return getAttribute(hspaceAttr);
174 }
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 
191171}
61957

WebCore/html/HTMLAppletElement.h

@@class HTMLAppletElement : public HTMLPlu
3131public:
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*);
4236
61957

WebCore/html/HTMLAreaElement.cpp

@@Path HTMLAreaElement::getRegion(const In
163163 return path;
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{
183168 Node* mapElement = parent();
61957

WebCore/html/HTMLAreaElement.h

@@public:
4343
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*);
5752
61957

WebCore/html/HTMLBaseFontElement.cpp

@@PassRefPtr<HTMLBaseFontElement> HTMLBase
4040 return adoptRef(new HTMLBaseFontElement(tagName, document));
4141}
4242
43 int HTMLBaseFontElement::size() const
44 {
45  return getAttribute(sizeAttr).toInt();
46 }
47 
48 void HTMLBaseFontElement::setSize(int value)
49 {
50  setAttribute(sizeAttr, String::number(value));
51 }
52 
5343}
61957

WebCore/html/HTMLBaseFontElement.h

@@class HTMLBaseFontElement : public HTMLE
3131public:
3232 static PassRefPtr<HTMLBaseFontElement> create(const QualifiedName&, Document*);
3333
34  int size() const;
35  void setSize(int);
36 
3734private:
3835 HTMLBaseFontElement(const QualifiedName&, Document*);
3936
61957

WebCore/html/HTMLBaseFontElement.idl

@@module html {
2323 attribute [Reflect] DOMString color;
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;
2929#endif
61957

WebCore/html/HTMLButtonElement.cpp

@@bool HTMLButtonElement::appendFormData(F
164164}
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);
171171}
172172
173 String HTMLButtonElement::accessKey() const
174 {
175  return getAttribute(accesskeyAttr);
176 }
177 
178 void HTMLButtonElement::setAccessKey(const String &value)
179 {
180  setAttribute(accesskeyAttr, value);
181 }
182 
183173String HTMLButtonElement::value() const
184174{
185175 return getAttribute(valueAttr);
186176}
187177
188 void HTMLButtonElement::setValue(const String &value)
189 {
190  setAttribute(valueAttr, value);
191 }
192 
193178} // namespace
61957

WebCore/html/HTMLButtonElement.h

@@class HTMLButtonElement : public HTMLFor
3232public:
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:
4238 HTMLButtonElement(const QualifiedName& tagName, Document*, HTMLFormElement*);
61957

WebCore/html/HTMLDListElement.cpp

@@PassRefPtr<HTMLDListElement> HTMLDListEl
4040 return adoptRef(new HTMLDListElement(tagName, document));
4141}
4242
43 bool HTMLDListElement::compact() const
44 {
45  return !getAttribute(compactAttr).isNull();
46 }
47 
48 void HTMLDListElement::setCompact(bool b)
49 {
50  setAttribute(compactAttr, b ? "" : 0);
51 }
52 
5343}
61957

WebCore/html/HTMLDListElement.h

@@class HTMLDListElement : public HTMLElem
3131public:
3232 static PassRefPtr<HTMLDListElement> create(const QualifiedName&, Document*);
3333
34  bool compact() const;
35  void setCompact(bool);
36 
3734private:
3835 HTMLDListElement(const QualifiedName&, Document*);
3936
61957

WebCore/html/HTMLDirectoryElement.cpp

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
67 * modify it under the terms of the GNU Library General Public

1819 * Boston, MA 02110-1301, USA.
1920 *
2021 */
 22
2123#include "config.h"
2224#include "HTMLDirectoryElement.h"
2325

@@namespace WebCore {
2729
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
37 {
38  return !getAttribute(compactAttr).isNull();
39 }
40 
41 void HTMLDirectoryElement::setCompact(bool b)
 38PassRefPtr<HTMLDirectoryElement> HTMLDirectoryElement::create(const QualifiedName& tagName, Document* document)
4239{
43  setAttribute(compactAttr, b ? "" : 0);
 40 return adoptRef(new HTMLDirectoryElement(tagName, document));
4441}
4542
4643}
61957

WebCore/html/HTMLDirectoryElement.h

11/*
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
67 * modify it under the terms of the GNU Library General Public

@@namespace WebCore {
2829
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
4041} //namespace
61957

WebCore/html/HTMLDivElement.cpp

@@void HTMLDivElement::parseMappedAttribut
7373 HTMLElement::parseMappedAttribute(attr);
7474}
7575
76 String HTMLDivElement::align() const
77 {
78  return getAttribute(alignAttr);
79 }
80 
81 void HTMLDivElement::setAlign(const String &value)
82 {
83  setAttribute(alignAttr, value);
84 }
85 
8676}
61957

WebCore/html/HTMLDivElement.h

@@public:
3232 static PassRefPtr<HTMLDivElement> create(Document*);
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*);
4037
61957

WebCore/html/HTMLFontElement.cpp

@@void HTMLFontElement::parseMappedAttribu
149149 HTMLElement::parseMappedAttribute(attr);
150150}
151151
152 String HTMLFontElement::color() const
153 {
154  return getAttribute(colorAttr);
155 }
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 
182152}
61957

WebCore/html/HTMLFontElement.h

@@class HTMLFontElement : public HTMLEleme
3232public:
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
4637private:
61957

WebCore/html/HTMLFormControlElement.cpp

@@bool HTMLFormControlElement::formNoValid
8181 return !getAttribute(formnovalidateAttr).isNull();
8282}
8383
84 void HTMLFormControlElement::setFormNoValidate(bool formnovalidate)
85 {
86  setAttribute(formnovalidateAttr, formnovalidate ? "" : 0);
87 }
88 
8984ValidityState* HTMLFormControlElement::validity()
9085{
9186 if (!m_validityState)

@@const AtomicString& HTMLFormControlEleme
196191 return name.isNull() ? emptyAtom : name;
197192}
198193
199 void HTMLFormControlElement::setName(const AtomicString &value)
 194void HTMLFormControlElement::setName(const AtomicString& value)
200195{
201196 setAttribute(nameAttr, value);
202197}

@@void HTMLFormControlElement::setDisabled
211206 setAttribute(disabledAttr, b ? "" : 0);
212207}
213208
214 void HTMLFormControlElement::setReadOnly(bool b)
215 {
216  setAttribute(readonlyAttr, b ? "" : 0);
217 }
218 
219209bool HTMLFormControlElement::autofocus() const
220210{
221211 return hasAttribute(autofocusAttr);
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;
232217}
233218
234 void HTMLFormControlElement::setRequired(bool b)
235 {
236  setAttribute(requiredAttr, b ? "" : 0);
237 }
238 
239219static void updateFromElementCallback(Node* node)
240220{
241221 ASSERT_ARG(node, node->isElementNode());
61957

WebCore/html/HTMLFormControlElement.h

@@public:
4444 ValidityState* validity();
4545
4646 bool formNoValidate() const;
47  void setFormNoValidate(bool);
4847
4948 virtual void reset() { }
5049

@@public:
5958 virtual bool isFocusable() const;
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(); }
7267 const AtomicString& name() const { return formControlName(); }
61957

WebCore/html/HTMLFormElement.cpp

@@PassRefPtr<HTMLCollection> HTMLFormEleme
519519 return HTMLFormCollection::create(this);
520520}
521521
522 String HTMLFormElement::name() const
523 {
524  return getAttribute(nameAttr);
525 }
526 
527 void HTMLFormElement::setName(const String &value)
528 {
529  setAttribute(nameAttr, value);
530 }
531 
532522bool HTMLFormElement::noValidate() const
533523{
534524 return !getAttribute(novalidateAttr).isNull();
535525}
536526
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 
547527String HTMLFormElement::action() const
548528{
549529 return getAttribute(actionAttr);

@@void HTMLFormElement::setEnctype(const S
559539 setAttribute(enctypeAttr, value);
560540}
561541
562 String HTMLFormElement::method() const
563 {
564  return getAttribute(methodAttr);
565 }
566 
567542void HTMLFormElement::setMethod(const String &value)
568543{
569544 setAttribute(methodAttr, value);

@@String HTMLFormElement::target() const
574549 return getAttribute(targetAttr);
575550}
576551
577 void HTMLFormElement::setTarget(const String &value)
578 {
579  setAttribute(targetAttr, value);
580 }
581 
582552HTMLFormControlElement* HTMLFormElement::defaultButton() const
583553{
584554 for (unsigned i = 0; i < m_associatedElements.size(); ++i) {
61957

WebCore/html/HTMLFormElement.h

@@public:
8484 void submitImplicitly(Event*, bool fromImplicitSubmissionTrigger);
8585 bool formWouldHaveSecureSubmission(const String& url);
8686
87  String name() const;
88  void setName(const String&);
89 
9087 bool noValidate() const;
91  void setNoValidate(bool);
9288
9389 String acceptCharset() const { return m_formDataBuilder.acceptCharset(); }
94  void setAcceptCharset(const String&);
9590
9691 String action() const;
9792 void setAction(const String&);
9893
99  String method() const;
10094 void setMethod(const String&);
10195
10296 virtual String target() const;
103  void setTarget(const String&);
10497
10598 HTMLFormControlElement* defaultButton() const;
10699
61957

WebCore/html/HTMLFrameElement.cpp

@@void HTMLFrameElement::parseMappedAttrib
9191 // FIXME: If we are already attached, this has no effect.
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
61957

WebCore/html/HTMLFrameElement.h

@@public:
3535 bool hasFrameBorder() const { return m_frameBorder; }
3636
3737 bool noResize() const { return m_noResize; }
38  void setNoResize(bool);
3938
4039private:
4140 HTMLFrameElement(const QualifiedName&, Document*);
61957

WebCore/html/HTMLFrameSetElement.cpp

@@void HTMLFrameSetElement::recalcStyle(St
213213 HTMLElement::recalcStyle(ch);
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
61957

WebCore/html/HTMLFrameSetElement.h

@@public:
4242
4343 bool hasBorderColor() const { return m_borderColorSet; }
4444
45  String cols() const;
46  void setCols(const String&);
47 
48  String rows() const;
49  void setRows(const String&);
50 
5145 const Length* rowLengths() const { return m_rowLengths.get(); }
5246 const Length* colLengths() const { return m_colLengths.get(); }
5347
61957

WebCore/html/HTMLHRElement.cpp

@@void HTMLHRElement::parseMappedAttribute
106106 HTMLElement::parseMappedAttribute(attr);
107107}
108108
109 String HTMLHRElement::align() const
110 {
111  return getAttribute(alignAttr);
112 }
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 
149109}
61957

WebCore/html/HTMLHRElement.h

@@class HTMLHRElement : public HTMLElement
3131public:
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:
4836 HTMLHRElement(const QualifiedName&, Document*);
61957

WebCore/html/HTMLHeadElement.cpp

@@PassRefPtr<HTMLHeadElement> HTMLHeadElem
4747 return adoptRef(new HTMLHeadElement(tagName, document));
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{
6252 // Do not allow non-whitespace text nodes in the head
61957

WebCore/html/HTMLHeadElement.h

@@public:
3333 static PassRefPtr<HTMLHeadElement> create(Document*);
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
4138private:
61957

WebCore/html/HTMLHeadingElement.cpp

@@bool HTMLHeadingElement::checkDTD(const
4949 return inEitherTagList(newChild);
5050}
5151
52 String HTMLHeadingElement::align() const
53 {
54  return getAttribute(alignAttr);
55 }
56 
57 void HTMLHeadingElement::setAlign(const String &value)
58 {
59  setAttribute(alignAttr, value);
60 }
61 
6252}
61957

WebCore/html/HTMLHeadingElement.h

@@class HTMLHeadingElement : public HTMLEl
3131public:
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*);
3936
61957

WebCore/html/HTMLHtmlElement.cpp

@@PassRefPtr<HTMLHtmlElement> HTMLHtmlElem
5050 return adoptRef(new HTMLHtmlElement(tagName, document));
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{
6555 return newChild->hasTagName(headTag) || newChild->hasTagName(bodyTag) ||
61957

WebCore/html/HTMLHtmlElement.h

@@public:
3333 static PassRefPtr<HTMLHtmlElement> create(Document*);
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*);
4138
61957

WebCore/html/HTMLImageElement.cpp

@@void HTMLImageElement::setHeight(int val
342342 setAttribute(heightAttr, String::number(value));
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{
388347 return document()->completeURL(getAttribute(srcAttr));

@@void HTMLImageElement::setSrc(const Stri
393352 setAttribute(srcAttr, value);
394353}
395354
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));
405 }
406 
407355void HTMLImageElement::setWidth(int value)
408356{
409357 setAttribute(widthAttr, String::number(value));
61957

WebCore/html/HTMLImageElement.h

@@public:
6262
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&);
7967
80  int vspace() const;
81  void setVspace(int);
82 
8368 void setWidth(int);
8469
8570 int x() const;
61957

WebCore/html/HTMLInputElement.cpp

@@void HTMLInputElement::setDefaultValue(c
24102410 setAttribute(valueAttr, value);
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{
24252415 m_data.setName(name);

@@String HTMLInputElement::accept() const
24302420 return getAttribute(acceptAttr);
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);
24612426}
24622427
2463 void HTMLInputElement::setAlt(const String &value)
2464 {
2465  setAttribute(altAttr, value);
2466 }
2467 
24682428int HTMLInputElement::maxLength() const
24692429{
24702430 return m_data.maxLength();

@@bool HTMLInputElement::multiple() const
24832443 return !getAttribute(multipleAttr).isNull();
24842444}
24852445
2486 void HTMLInputElement::setMultiple(bool multiple)
2487 {
2488  setAttribute(multipleAttr, multiple ? "" : 0);
2489 }
2490 
24912446void HTMLInputElement::setSize(unsigned size)
24922447{
24932448 setAttribute(sizeAttr, String::number(size));

@@KURL HTMLInputElement::src() const
24982453 return document()->completeURL(getAttribute(srcAttr));
24992454}
25002455
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);
2514 }
2515 
25162456void HTMLInputElement::setAutofilled(bool b)
25172457{
25182458 if (b == m_autofilled)

@@bool HTMLInputElement::parseToDateCompon
27182658}
27192659
27202660#if ENABLE(DATALIST)
 2661
27212662HTMLElement* HTMLInputElement::list() const
27222663{
27232664 return dataList();

@@HTMLOptionElement* HTMLInputElement::sel
27822723 }
27832724 return 0;
27842725}
 2726
27852727#endif // ENABLE(DATALIST)
27862728
27872729void HTMLInputElement::stepUpFromRenderer(int n)
61957

WebCore/html/HTMLInputElement.h

@@public:
161161 String defaultValue() const;
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;
187174 void setMaxLength(int, ExceptionCode&);
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; }
196179 void setAutofilled(bool value = true);
61957

WebCore/html/HTMLIsIndexElement.cpp

@@void HTMLIsIndexElement::parseMappedAttr
6161 HTMLFormControlElement::parseMappedAttribute(attr);
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
61957

WebCore/html/HTMLIsIndexElement.h

@@public:
3333 static PassRefPtr<HTMLIsIndexElement> create(Document*, HTMLFormElement*);
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*);
4138
61957

WebCore/html/HTMLLIElement.cpp

@@void HTMLLIElement::attach()
116116 }
117117}
118118
119 String HTMLLIElement::type() const
120 {
121  return getAttribute(typeAttr);
122 }
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 
139119}
61957

WebCore/html/HTMLLIElement.h

@@public:
3232 static PassRefPtr<HTMLLIElement> create(Document*);
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*);
4337
61957

WebCore/html/HTMLLabelElement.cpp

@@void HTMLLabelElement::accessKeyAction(b
154154 HTMLElement::accessKeyAction(sendToAnyElement);
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{
179159 if (attribute->name() == forAttr) {
61957

WebCore/html/HTMLLabelElement.h

@@public:
3535
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*);
4640
61957

WebCore/html/HTMLLegendElement.cpp

@@const AtomicString& HTMLLegendElement::f
5454 return legend;
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{
7959 // Check if there's a fieldset belonging to this legend.
61957

WebCore/html/HTMLLegendElement.h

@@class HTMLLegendElement : public HTMLFor
3232public:
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*);
4337
61957

WebCore/html/HTMLLinkElement.cpp

@@bool HTMLLinkElement::isURLAttribute(Att
362362 return attr->name() == hrefAttr;
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{
387367 return document()->completeURL(getAttribute(hrefAttr));
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 
415 String HTMLLinkElement::rel() const
416 {
417  return getAttribute(relAttr);
418 }
419 
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 
435370String HTMLLinkElement::target() const
436371{
437372 return getAttribute(targetAttr);
438373}
439374
440 void HTMLLinkElement::setTarget(const String& value)
441 {
442  setAttribute(targetAttr, value);
443 }
444 
445 String HTMLLinkElement::type() const
446 {
447  return getAttribute(typeAttr);
448 }
449 
450 void HTMLLinkElement::setType(const String& value)
451 {
452  setAttribute(typeAttr, value);
453 }
454 
455375void HTMLLinkElement::addSubresourceAttributeURLs(ListHashSet<KURL>& urls) const
456376{
457377 HTMLElement::addSubresourceAttributeURLs(urls);
61957

WebCore/html/HTMLLinkElement.h

@@public:
4747 static PassRefPtr<HTMLLinkElement> create(const QualifiedName&, Document*, bool createdByParser);
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 
65  String rel() const;
66  void setRel(const String&);
67 
68  String rev() const;
69  void setRev(const String&);
7051
7152 virtual String target() const;
72  void setTarget(const String&);
73 
74  String type() const;
75  void setType(const String&);
7653
7754 StyleSheet* sheet() const;
7855
61957

WebCore/html/HTMLMapElement.cpp

@@PassRefPtr<HTMLCollection> HTMLMapElemen
137137 return HTMLCollection::create(this, MapAreas);
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{
152142 document()->addImageMap(this);
61957

WebCore/html/HTMLMapElement.h

@@public:
4444 HTMLImageElement* imageElement() const;
4545 PassRefPtr<HTMLCollection> areas();
4646
47  String name() const;
48  void setName(const String&);
49 
5047private:
5148 HTMLMapElement(const QualifiedName&, Document*);
5249
61957

WebCore/html/HTMLMenuElement.cpp

@@PassRefPtr<HTMLMenuElement> HTMLMenuElem
4040 return adoptRef(new HTMLMenuElement(tagName, document));
4141}
4242
43 bool HTMLMenuElement::compact() const
44 {
45  return !getAttribute(compactAttr).isNull();
46 }
47 
48 void HTMLMenuElement::setCompact(bool b)
49 {
50  setAttribute(compactAttr, b ? "" : 0);
51 }
52 
5343}
61957

WebCore/html/HTMLMenuElement.h

@@class HTMLMenuElement : public HTMLEleme
3131public:
3232 static PassRefPtr<HTMLMenuElement> create(const QualifiedName&, Document*);
3333
34  bool compact() const;
35  void setCompact(bool);
36 
3734private:
3835 HTMLMenuElement(const QualifiedName&, Document*);
3936
61957

WebCore/html/HTMLMetaElement.cpp

@@void HTMLMetaElement::process()
7676 document()->processHttpEquiv(m_equiv, m_content);
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{
10181 return getAttribute(nameAttr);
10282}
10383
104 void HTMLMetaElement::setName(const String& value)
105 {
106  setAttribute(nameAttr, value);
107 }
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 
11984}
61957

WebCore/html/HTMLMetaElement.h

@@class HTMLMetaElement : public HTMLEleme
3131public:
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:
4737 HTMLMetaElement(const QualifiedName&, Document*);
61957

WebCore/html/HTMLModElement.cpp

@@PassRefPtr<HTMLModElement> HTMLModElemen
3939 return adoptRef(new HTMLModElement(tagName, document));
4040}
4141
42 String HTMLModElement::cite() const
43 {
44  return getAttribute(citeAttr);
45 }
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 
6242}
61957

WebCore/html/HTMLModElement.h

@@class HTMLModElement : public HTMLElemen
3232public:
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*);
4337
61957

WebCore/html/HTMLOListElement.cpp

@@void HTMLOListElement::parseMappedAttrib
8989 HTMLElement::parseMappedAttribute(attr);
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{
10494 setAttribute(startAttr, String::number(start));
10595}
10696
107 String HTMLOListElement::type() const
108 {
109  return getAttribute(typeAttr);
110 }
111 
112 void HTMLOListElement::setType(const String& value)
113 {
114  setAttribute(typeAttr, value);
115 }
116 
11797}
61957

WebCore/html/HTMLOListElement.h

@@public:
3232 static PassRefPtr<HTMLOListElement> create(Document*);
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);
4037
41  String type() const;
42  void setType(const String&);
43 
4438private:
4539 HTMLOListElement(const QualifiedName&, Document*);
4640
61957

WebCore/html/HTMLObjectElement.cpp

@@void HTMLObjectElement::updateDocNamedIt
301301 m_docNamedItem = isNamedItem;
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{
336306 if (MIMETypeRegistry::isJavaAppletMIMEType(getAttribute(typeAttr)))
61957

WebCore/html/HTMLObjectElement.h

@@public:
3535
3636 void renderFallbackContent();
3737
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);
46 
4738 bool isDocNamedItem() const { return m_docNamedItem; }
4839
4940 const String& classId() const { return m_classId; }
61957

WebCore/html/HTMLOptGroupElement.cpp

@@void HTMLOptGroupElement::recalcSelectOp
8686 static_cast<HTMLSelectElement*>(select)->setRecalcListItems();
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{
10191 // Make sure to keep this in sync with <select> (other than not allowing an optgroup).
61957

WebCore/html/HTMLOptGroupElement.h

@@class HTMLOptGroupElement : public HTMLF
3535public:
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
4340 virtual String groupLabelText() const;
61957

WebCore/html/HTMLOptionElement.cpp

@@HTMLSelectElement* HTMLOptionElement::ow
208208 return static_cast<HTMLSelectElement*>(select);
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);
219214}
220215
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);
229 }
230 
231216void HTMLOptionElement::setRenderStyle(PassRefPtr<RenderStyle> newStyle)
232217{
233218 m_style = newStyle;
61957

WebCore/html/HTMLOptionElement.h

@@public:
5454
5555 HTMLSelectElement* ownerSelectElement() const;
5656
57  bool defaultSelected() const;
5857 void setDefaultSelected(bool);
5958
60  String label() const;
61  void setLabel(const String&);
62 
6359 bool ownElementDisabled() const { return HTMLFormControlElement::disabled(); }
6460
6561 virtual bool disabled() const;
61957

WebCore/html/HTMLParagraphElement.cpp

@@void HTMLParagraphElement::parseMappedAt
7474 HTMLElement::parseMappedAttribute(attr);
7575}
7676
77 String HTMLParagraphElement::align() const
78 {
79  return getAttribute(alignAttr);
80 }
81 
82 void HTMLParagraphElement::setAlign(const String &value)
83 {
84  setAttribute(alignAttr, value);
85 }
86 
8777}
61957

WebCore/html/HTMLParagraphElement.h

@@class HTMLParagraphElement : public HTML
3131public:
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*);
3936
61957

WebCore/html/HTMLParamElement.cpp

@@bool HTMLParamElement::isURLAttribute(At
7171 return false;
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{
10676 HTMLElement::addSubresourceAttributeURLs(urls);
61957

WebCore/html/HTMLParamElement.h

@@public:
3232 static PassRefPtr<HTMLParamElement> create(const QualifiedName&, Document*);
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:
4738 HTMLParamElement(const QualifiedName&, Document*);
61957

WebCore/html/HTMLPlugInElement.cpp

@@PassScriptInstance HTMLPlugInElement::ge
8888 return m_instance;
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{
11393 if (attrName == widthAttr ||
61957

WebCore/html/HTMLPlugInElement.h

@@class HTMLPlugInElement : public HTMLFra
3838public:
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
4943#if ENABLE(NETSCAPE_PLUGIN_API)
61957

WebCore/html/HTMLPreElement.cpp

@@void HTMLPreElement::parseMappedAttribut
6565 return HTMLElement::parseMappedAttribute(attr);
6666}
6767
68 int HTMLPreElement::width() const
69 {
70  return getAttribute(widthAttr).toInt();
71 }
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 
8868}
61957

WebCore/html/HTMLPreElement.h

@@class HTMLPreElement : public HTMLElemen
3131public:
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*);
4236
61957

WebCore/html/HTMLQuoteElement.cpp

@@void HTMLQuoteElement::insertedIntoDocum
4848 HTMLElement::insertedIntoDocument();
4949}
5050
51 String HTMLQuoteElement::cite() const
52 {
53  return getAttribute(citeAttr);
54 }
55 
56 void HTMLQuoteElement::setCite(const String &value)
57 {
58  setAttribute(citeAttr, value);
59 }
60 
6151}
61957

WebCore/html/HTMLQuoteElement.h

@@class HTMLQuoteElement : public HTMLElem
3434public:
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*);
4239
61957

WebCore/html/HTMLScriptElement.cpp

@@void HTMLScriptElement::setText(const St
117117 appendChild(document()->createTextNode(value.impl()), ec);
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());
175123}
176124
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);
190 }
191 
192125String HTMLScriptElement::scriptCharset() const
193126{
194127 return m_data.scriptCharset();
61957

WebCore/html/HTMLScriptElement.h

@@public:
3838 String text() const;
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;
6344
61957

WebCore/html/HTMLSelectElement.idl

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 *
55 * This library is free software; you can redistribute it and/or

@@module html {
2424 HasIndexGetter,
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
6764 // These methods are not in DOM Level 2 IDL, but are mentioned in the standard:
6865 // "The contained options can be directly accessed through the select element as a collection."
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
7471}
61957

WebCore/html/HTMLStyleElement.cpp

@@PassRefPtr<HTMLStyleElement> HTMLStyleEl
4545 return adoptRef(new HTMLStyleElement(tagName, document, createdByParser));
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}
5855

@@bool HTMLStyleElement::sheetLoaded()
110107 return false;
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{
125112 return getAttribute(mediaAttr);
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);
136118}
137119
138 void HTMLStyleElement::setType(const AtomicString &value)
139 {
140  setAttribute(typeAttr, value);
141 }
142 
143120void HTMLStyleElement::addSubresourceAttributeURLs(ListHashSet<KURL>& urls) const
144121{
145122 HTMLElement::addSubresourceAttributeURLs(urls);
61957

WebCore/html/HTMLStyleElement.h

1919 * Boston, MA 02110-1301, USA.
2020 *
2121 */
 22
2223#ifndef HTMLStyleElement_h
2324#define HTMLStyleElement_h
2425

@@namespace WebCore {
2930
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
4539 StyleSheet* sheet();

@@private:
6660
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;
7268};
61957

WebCore/html/HTMLStyleElement.idl

2121module html {
2222
2323 interface HTMLStyleElement : HTMLElement {
24  attribute boolean disabled;
 24 attribute [Reflect] boolean disabled;
2525 attribute [Reflect] DOMString media;
2626 attribute [Reflect] DOMString type;
2727
61957

WebCore/html/HTMLTableCaptionElement.cpp

@@void HTMLTableCaptionElement::parseMappe
6363 HTMLElement::parseMappedAttribute(attr);
6464}
6565
66 String HTMLTableCaptionElement::align() const
67 {
68  return getAttribute(alignAttr);
69 }
70 
71 void HTMLTableCaptionElement::setAlign(const String &value)
72 {
73  setAttribute(alignAttr, value);
74 }
75 
7666}
61957

WebCore/html/HTMLTableCaptionElement.h

@@class HTMLTableCaptionElement : public H
3434public:
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*);
4239
61957

WebCore/html/HTMLTableCellElement.cpp

@@String HTMLTableCellElement::abbr() cons
133133 return getAttribute(abbrAttr);
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);
154139}
155140
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);
189 }
190 
191141void HTMLTableCellElement::setColSpan(int n)
192142{
193143 setAttribute(colspanAttr, String::number(n));

@@String HTMLTableCellElement::headers() c
198148 return getAttribute(headersAttr);
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{
228153 setAttribute(rowspanAttr, String::number(n));

@@String HTMLTableCellElement::scope() con
233158 return getAttribute(scopeAttr);
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{
263163 HTMLTablePartElement::addSubresourceAttributeURLs(urls);
61957

WebCore/html/HTMLTableCellElement.h

@@public:
4747 void setCellIndex(int);
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:
9057 HTMLTableCellElement(const QualifiedName&, Document*);
61957

WebCore/html/HTMLTableCellElement.idl

@@module html {
3131 attribute long colSpan;
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;
3737 attribute [Reflect] DOMString vAlign;
61957

WebCore/html/HTMLTableColElement.cpp

@@void HTMLTableColElement::additionalAttr
110110 static_cast<HTMLTableElement*>(p)->addSharedGroupDecls(false, results);
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));
146116}
147117
148 String HTMLTableColElement::vAlign() const
149 {
150  return getAttribute(valignAttr);
151 }
152 
153 void HTMLTableColElement::setVAlign(const String &value)
154 {
155  setAttribute(valignAttr, value);
156 }
157 
158118String HTMLTableColElement::width() const
159119{
160120 return getAttribute(widthAttr);
161121}
162122
163 void HTMLTableColElement::setWidth(const String &value)
164 {
165  setAttribute(widthAttr, value);
166 }
167 
168123}
61957

WebCore/html/HTMLTableColElement.h

@@public:
3535 static PassRefPtr<HTMLTableColElement> create(const QualifiedName& tagName, Document*);
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:
5743 HTMLTableColElement(const QualifiedName& tagName, Document*);
61957

WebCore/html/HTMLTableElement.cpp

@@PassRefPtr<HTMLCollection> HTMLTableElem
669669 return HTMLCollection::create(this, TableTBodies);
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{
734674 return getAttribute(rulesAttr);
735675}
736676
737 void HTMLTableElement::setRules(const String &value)
738 {
739  setAttribute(rulesAttr, value);
740 }
741 
742677String HTMLTableElement::summary() const
743678{
744679 return getAttribute(summaryAttr);
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{
764684 HTMLElement::addSubresourceAttributeURLs(urls);
61957

WebCore/html/HTMLTableElement.h

@@public:
6060 PassRefPtr<HTMLCollection> rows();
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>);
9167
61957

WebCore/html/HTMLTableRowElement.cpp

@@PassRefPtr<HTMLCollection> HTMLTableRowE
181181 return HTMLCollection::create(this, TRCells);
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);
192 }
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 
239189}
61957

WebCore/html/HTMLTableRowElement.h

@@public:
4949 PassRefPtr<HTMLCollection> cells();
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*);
6954
61957

WebCore/html/HTMLTextAreaElement.cpp

@@void HTMLTextAreaElement::accessKeyActio
399399 focus();
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{
414404 setAttribute(colsAttr, String::number(cols));
61957

WebCore/html/HTMLTextAreaElement.h

@@public:
5151
5252 void rendererWillBeDestroyed();
5353
54  const AtomicString& accessKey() const;
55  void setAccessKey(const String&);
56 
5754 void setCols(int);
5855 void setRows(int);
5956
61957

WebCore/html/HTMLTextAreaElement.idl

@@module html {
2626 readonly attribute ValidityState validity;
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;
3838 attribute [ConvertNullToNullString] DOMString value;
61957

WebCore/html/HTMLUListElement.cpp

@@void HTMLUListElement::parseMappedAttrib
6565 HTMLElement::parseMappedAttribute(attr);
6666}
6767
68 bool HTMLUListElement::compact() const
69 {
70  return !getAttribute(compactAttr).isNull();
71 }
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 
8868}
61957

WebCore/html/HTMLUListElement.h

@@public:
3232 static PassRefPtr<HTMLUListElement> create(Document*);
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*);
4337
61957

WebCore/html/HTMLUListElement.idl

2020module html {
2121
2222 interface HTMLUListElement : HTMLElement {
23  attribute boolean compact;
 23 attribute [Reflect] boolean compact;
2424 attribute [Reflect] DOMString type;
2525 };
2626
61957

WebCore/html/HTMLVideoElement.cpp

@@unsigned HTMLVideoElement::width() const
154154 unsigned w = getAttribute(widthAttr).string().toUInt(&ok);
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
164159{

@@unsigned HTMLVideoElement::height() cons
167162 return ok ? h : 0;
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{
182167 return HTMLMediaElement::isURLAttribute(attribute)
61957

WebCore/html/HTMLVideoElement.h

@@public:
3939 static PassRefPtr<HTMLVideoElement> create(const QualifiedName&, Document*);
4040
4141 unsigned width() const;
42  void setWidth(unsigned);
4342 unsigned height() const;
44  void setHeight(unsigned);
4543
4644 unsigned videoWidth() const;
4745 unsigned videoHeight() const;
4846
4947 virtual const KURL poster() const { return m_posterURL; }
50  void setPoster(const String&);
5148
5249 // Fullscreen
5350 void webkitEnterFullscreen(bool isUserGesture, ExceptionCode&);
61957