Changeset 61959 in webkit
- Timestamp:
- Jun 26, 2010 1:42:56 PM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 99 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r61956 r61959 1 2010-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 1 130 2010-06-26 Tony Gentilcore <tonyg@chromium.org> 2 131 -
trunk/WebCore/html/HTMLAppletElement.cpp
r61094 r61959 169 169 } 170 170 171 String HTMLAppletElement::hspace() const172 {173 return getAttribute(hspaceAttr);174 171 } 175 176 void HTMLAppletElement::setHspace(const String &value)177 {178 setAttribute(hspaceAttr, value);179 }180 181 String HTMLAppletElement::vspace() const182 {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 32 32 static PassRefPtr<HTMLAppletElement> create(const QualifiedName&, Document*); 33 33 34 String hspace() const;35 void setHspace(const String&);36 37 String vspace() const;38 void setVspace(const String&);39 40 34 private: 41 35 HTMLAppletElement(const QualifiedName&, Document*); -
trunk/WebCore/html/HTMLAreaElement.cpp
r59773 r61959 164 164 } 165 165 166 KURL HTMLAreaElement::href() const167 {168 return document()->completeURL(getAttribute(hrefAttr));169 }170 171 bool HTMLAreaElement::noHref() const172 {173 return !getAttribute(nohrefAttr).isNull();174 }175 176 void HTMLAreaElement::setNoHref(bool noHref)177 {178 setAttribute(nohrefAttr, noHref ? "" : 0);179 }180 181 166 HTMLImageElement* HTMLAreaElement::imageElement() const 182 167 { -
trunk/WebCore/html/HTMLAreaElement.h
r59773 r61959 44 44 IntRect getRect(RenderObject*) const; 45 45 Path getPath(RenderObject*) const; 46 47 // Convenience method to get the parent map's image.46 47 // The parent map's image. 48 48 HTMLImageElement* imageElement() const; 49 49 50 KURL href() const;51 52 bool noHref() const;53 void setNoHref(bool);54 55 50 private: 56 51 HTMLAreaElement(const QualifiedName&, Document*); -
trunk/WebCore/html/HTMLBaseFontElement.cpp
r61293 r61959 41 41 } 42 42 43 int HTMLBaseFontElement::size() const44 {45 return getAttribute(sizeAttr).toInt();46 43 } 47 48 void HTMLBaseFontElement::setSize(int value)49 {50 setAttribute(sizeAttr, String::number(value));51 }52 53 } -
trunk/WebCore/html/HTMLBaseFontElement.h
r60342 r61959 32 32 static PassRefPtr<HTMLBaseFontElement> create(const QualifiedName&, Document*); 33 33 34 int size() const;35 void setSize(int);36 37 34 private: 38 35 HTMLBaseFontElement(const QualifiedName&, Document*); -
trunk/WebCore/html/HTMLBaseFontElement.idl
r61413 r61959 24 24 attribute [Reflect] DOMString face; 25 25 #if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C 26 attribute [ ConvertToString] DOMString size; // this changed to a long, but our existing API is a string26 attribute [Reflect] DOMString size; // this changed to a long, but our existing API is a string 27 27 #else 28 28 attribute [Reflect] long size; -
trunk/WebCore/html/HTMLButtonElement.cpp
r61293 r61959 165 165 166 166 void HTMLButtonElement::accessKeyAction(bool sendToAnyElement) 167 { 167 { 168 168 focus(); 169 169 // send the mouse button events iff the caller specified sendToAnyElement 170 170 dispatchSimulatedClick(0, sendToAnyElement); 171 }172 173 String HTMLButtonElement::accessKey() const174 {175 return getAttribute(accesskeyAttr);176 }177 178 void HTMLButtonElement::setAccessKey(const String &value)179 {180 setAttribute(accesskeyAttr, value);181 171 } 182 172 … … 186 176 } 187 177 188 void HTMLButtonElement::setValue(const String &value)189 {190 setAttribute(valueAttr, value);191 }192 193 178 } // namespace -
trunk/WebCore/html/HTMLButtonElement.h
r60342 r61959 33 33 static PassRefPtr<HTMLButtonElement> create(const QualifiedName&, Document*, HTMLFormElement*); 34 34 35 String accessKey() const;36 void setAccessKey(const String&);37 38 35 String value() const; 39 void setValue(const String&);40 36 41 37 private: -
trunk/WebCore/html/HTMLDListElement.cpp
r61293 r61959 41 41 } 42 42 43 bool HTMLDListElement::compact() const44 {45 return !getAttribute(compactAttr).isNull();46 43 } 47 48 void HTMLDListElement::setCompact(bool b)49 {50 setAttribute(compactAttr, b ? "" : 0);51 }52 53 } -
trunk/WebCore/html/HTMLDListElement.h
r60342 r61959 32 32 static PassRefPtr<HTMLDListElement> create(const QualifiedName&, Document*); 33 33 34 bool compact() const;35 void setCompact(bool);36 37 34 private: 38 35 HTMLDListElement(const QualifiedName&, Document*); -
trunk/WebCore/html/HTMLDirectoryElement.cpp
r38878 r61959 1 /* *1 /* 2 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 3 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 4 * Copyright (C) 2010 Apple Inc. All rights reserved. 4 5 * 5 6 * This library is free software; you can redistribute it and/or … … 19 20 * 20 21 */ 22 21 23 #include "config.h" 22 24 #include "HTMLDirectoryElement.h" … … 28 30 using namespace HTMLNames; 29 31 30 HTMLDirectoryElement::HTMLDirectoryElement(const QualifiedName& tagName, Document* doc)31 : HTMLElement(tagName, doc )32 inline HTMLDirectoryElement::HTMLDirectoryElement(const QualifiedName& tagName, Document* document) 33 : HTMLElement(tagName, document) 32 34 { 33 35 ASSERT(hasTagName(dirTag)); 34 36 } 35 37 36 bool HTMLDirectoryElement::compact() const 38 PassRefPtr<HTMLDirectoryElement> HTMLDirectoryElement::create(const QualifiedName& tagName, Document* document) 37 39 { 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)); 44 41 } 45 42 -
trunk/WebCore/html/HTMLDirectoryElement.h
r45747 r61959 2 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 3 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 4 * Copyright (C) 2010 Apple Inc. All rights reserved. 4 5 * 5 6 * This library is free software; you can redistribute it and/or … … 29 30 class HTMLDirectoryElement : public HTMLElement { 30 31 public: 32 static PassRefPtr<HTMLDirectoryElement> create(const QualifiedName& tagName, Document*); 33 34 private: 31 35 HTMLDirectoryElement(const QualifiedName&, Document*); 32 36 33 37 virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; } 34 38 virtual int tagPriority() const { return 5; } 35 36 bool compact() const;37 void setCompact(bool);38 39 }; 39 40 -
trunk/WebCore/html/HTMLDivElement.cpp
r61293 r61959 74 74 } 75 75 76 String HTMLDivElement::align() const77 {78 return getAttribute(alignAttr);79 76 } 80 81 void HTMLDivElement::setAlign(const String &value)82 {83 setAttribute(alignAttr, value);84 }85 86 } -
trunk/WebCore/html/HTMLDivElement.h
r60418 r61959 33 33 static PassRefPtr<HTMLDivElement> create(const QualifiedName&, Document*); 34 34 35 String align() const;36 void setAlign(const String&);37 38 35 protected: 39 36 HTMLDivElement(const QualifiedName&, Document*); -
trunk/WebCore/html/HTMLFontElement.cpp
r61293 r61959 150 150 } 151 151 152 String HTMLFontElement::color() const153 {154 return getAttribute(colorAttr);155 152 } 156 157 void HTMLFontElement::setColor(const String& value)158 {159 setAttribute(colorAttr, value);160 }161 162 String HTMLFontElement::face() const163 {164 return getAttribute(faceAttr);165 }166 167 void HTMLFontElement::setFace(const String& value)168 {169 setAttribute(faceAttr, value);170 }171 172 String HTMLFontElement::size() const173 {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 33 33 static PassRefPtr<HTMLFontElement> create(const QualifiedName&, Document*); 34 34 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 44 35 static bool cssValueFromFontSizeNumber(const String&, int&); 45 36 -
trunk/WebCore/html/HTMLFormControlElement.cpp
r61677 r61959 80 80 { 81 81 return !getAttribute(formnovalidateAttr).isNull(); 82 }83 84 void HTMLFormControlElement::setFormNoValidate(bool formnovalidate)85 {86 setAttribute(formnovalidateAttr, formnovalidate ? "" : 0);87 82 } 88 83 … … 197 192 } 198 193 199 void HTMLFormControlElement::setName(const AtomicString &value)194 void HTMLFormControlElement::setName(const AtomicString& value) 200 195 { 201 196 setAttribute(nameAttr, value); … … 212 207 } 213 208 214 void HTMLFormControlElement::setReadOnly(bool b)215 {216 setAttribute(readonlyAttr, b ? "" : 0);217 }218 219 209 bool HTMLFormControlElement::autofocus() const 220 210 { … … 222 212 } 223 213 224 void HTMLFormControlElement::setAutofocus(bool b)225 {226 setAttribute(autofocusAttr, b ? "" : 0);227 }228 229 214 bool HTMLFormControlElement::required() const 230 215 { 231 216 return m_required; 232 }233 234 void HTMLFormControlElement::setRequired(bool b)235 {236 setAttribute(requiredAttr, b ? "" : 0);237 217 } 238 218 -
trunk/WebCore/html/HTMLFormControlElement.h
r61293 r61959 45 45 46 46 bool formNoValidate() const; 47 void setFormNoValidate(bool);48 47 49 48 virtual void reset() { } … … 60 59 virtual bool isEnumeratable() const { return false; } 61 60 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. 65 62 virtual bool autofocus() const; 66 void setAutofocus(bool);67 63 68 64 bool required() const; 69 void setRequired(bool);70 65 71 66 const AtomicString& type() const { return formControlType(); } -
trunk/WebCore/html/HTMLFormElement.cpp
r61618 r61959 525 525 } 526 526 527 void HTMLFormElement::setName(const String &value)528 {529 setAttribute(nameAttr, value);530 }531 532 527 bool HTMLFormElement::noValidate() const 533 528 { … … 535 530 } 536 531 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 547 532 String HTMLFormElement::action() const 548 533 { … … 573 558 { 574 559 return getAttribute(targetAttr); 575 }576 577 void HTMLFormElement::setTarget(const String &value)578 {579 setAttribute(targetAttr, value);580 560 } 581 561 -
trunk/WebCore/html/HTMLFormElement.h
r61618 r61959 1 /*1 r/* 2 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 3 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) … … 86 86 87 87 String name() const; 88 void setName(const String&);89 88 90 89 bool noValidate() const; 91 void setNoValidate(bool);92 90 93 91 String acceptCharset() const { return m_formDataBuilder.acceptCharset(); } 94 void setAcceptCharset(const String&);95 92 96 93 String action() const; … … 101 98 102 99 virtual String target() const; 103 void setTarget(const String&);104 100 105 101 HTMLFormControlElement* defaultButton() const; -
trunk/WebCore/html/HTMLFrameElement.cpp
r59773 r61959 92 92 // FIXME: Since this does not check attr->isNull(), it can 93 93 // never reset m_noResize to false if the attribute is removed. 94 // FIXME: There seems to be no code that looks at this95 // value and prevents resizing.96 94 } else 97 95 HTMLFrameElementBase::parseMappedAttribute(attr); 98 96 } 99 97 100 void HTMLFrameElement::setNoResize(bool noResize)101 {102 setAttribute(noresizeAttr, noResize ? "" : 0);103 }104 105 98 } // namespace WebCore -
trunk/WebCore/html/HTMLFrameElement.h
r59773 r61959 36 36 37 37 bool noResize() const { return m_noResize; } 38 void setNoResize(bool);39 38 40 39 private: -
trunk/WebCore/html/HTMLFrameSetElement.cpp
r61293 r61959 214 214 } 215 215 216 String HTMLFrameSetElement::cols() const217 {218 return getAttribute(colsAttr);219 }220 221 void HTMLFrameSetElement::setCols(const String &value)222 {223 setAttribute(colsAttr, value);224 }225 226 String HTMLFrameSetElement::rows() const227 {228 return getAttribute(rowsAttr);229 }230 231 void HTMLFrameSetElement::setRows(const String &value)232 {233 setAttribute(rowsAttr, value);234 }235 236 216 } // namespace WebCore -
trunk/WebCore/html/HTMLFrameSetElement.h
r60418 r61959 42 42 43 43 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&);50 44 51 45 const Length* rowLengths() const { return m_rowLengths.get(); } -
trunk/WebCore/html/HTMLHRElement.cpp
r61293 r61959 107 107 } 108 108 109 String HTMLHRElement::align() const110 {111 return getAttribute(alignAttr);112 109 } 113 114 void HTMLHRElement::setAlign(const String &value)115 {116 setAttribute(alignAttr, value);117 }118 119 bool HTMLHRElement::noShade() const120 {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() const130 {131 return getAttribute(sizeAttr);132 }133 134 void HTMLHRElement::setSize(const String &value)135 {136 setAttribute(sizeAttr, value);137 }138 139 String HTMLHRElement::width() const140 {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 32 32 static PassRefPtr<HTMLHRElement> create(Document*); 33 33 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&);46 34 47 35 private: -
trunk/WebCore/html/HTMLHeadElement.cpp
r61293 r61959 48 48 } 49 49 50 String HTMLHeadElement::profile() const51 {52 return getAttribute(profileAttr);53 }54 55 void HTMLHeadElement::setProfile(const String &value)56 {57 setAttribute(profileAttr, value);58 }59 60 50 bool HTMLHeadElement::childAllowed(Node* newChild) 61 51 { -
trunk/WebCore/html/HTMLHeadElement.h
r60418 r61959 34 34 static PassRefPtr<HTMLHeadElement> create(const QualifiedName&, Document*); 35 35 36 String profile() const;37 void setProfile(const String&);38 39 36 virtual int tagPriority() const { return 10; } 40 37 -
trunk/WebCore/html/HTMLHeadingElement.cpp
r61293 r61959 50 50 } 51 51 52 String HTMLHeadingElement::align() const53 {54 return getAttribute(alignAttr);55 52 } 56 57 void HTMLHeadingElement::setAlign(const String &value)58 {59 setAttribute(alignAttr, value);60 }61 62 } -
trunk/WebCore/html/HTMLHeadingElement.h
r60418 r61959 32 32 static PassRefPtr<HTMLHeadingElement> create(const QualifiedName&, Document*); 33 33 34 String align() const;35 void setAlign(const String&);36 37 34 private: 38 35 HTMLHeadingElement(const QualifiedName&, Document*); -
trunk/WebCore/html/HTMLHtmlElement.cpp
r61293 r61959 51 51 } 52 52 53 String HTMLHtmlElement::version() const54 {55 return getAttribute(versionAttr);56 }57 58 void HTMLHtmlElement::setVersion(const String &value)59 {60 setAttribute(versionAttr, value);61 }62 63 53 bool HTMLHtmlElement::checkDTD(const Node* newChild) 64 54 { -
trunk/WebCore/html/HTMLHtmlElement.h
r60418 r61959 34 34 static PassRefPtr<HTMLHtmlElement> create(const QualifiedName&, Document*); 35 35 36 String version() const;37 void setVersion(const String&);38 39 36 private: 40 37 HTMLHtmlElement(const QualifiedName&, Document*); -
trunk/WebCore/html/HTMLImageElement.cpp
r61293 r61959 343 343 } 344 344 345 int HTMLImageElement::hspace() const346 {347 // ### return actual value348 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() const357 {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() const367 {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() const377 {378 return document()->completeURL(getAttribute(lowsrcAttr));379 }380 381 void HTMLImageElement::setLowsrc(const String& value)382 {383 setAttribute(lowsrcAttr, value);384 }385 386 345 KURL HTMLImageElement::src() const 387 346 { … … 392 351 { 393 352 setAttribute(srcAttr, value); 394 }395 396 int HTMLImageElement::vspace() const397 {398 // ### return actual vspace399 return getAttribute(vspaceAttr).toInt();400 }401 402 void HTMLImageElement::setVspace(int value)403 {404 setAttribute(vspaceAttr, String::number(value));405 353 } 406 354 -
trunk/WebCore/html/HTMLImageElement.h
r60418 r61959 63 63 void setHeight(int); 64 64 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 77 65 KURL src() const; 78 66 void setSrc(const String&); 79 80 int vspace() const;81 void setVspace(int);82 67 83 68 void setWidth(int); -
trunk/WebCore/html/HTMLInputElement.cpp
r61756 r61959 2411 2411 } 2412 2412 2413 bool HTMLInputElement::defaultChecked() const2414 {2415 return !getAttribute(checkedAttr).isNull();2416 }2417 2418 void HTMLInputElement::setDefaultChecked(bool defaultChecked)2419 {2420 setAttribute(checkedAttr, defaultChecked ? "" : 0);2421 }2422 2423 2413 void HTMLInputElement::setDefaultName(const AtomicString& name) 2424 2414 { … … 2431 2421 } 2432 2422 2433 void HTMLInputElement::setAccept(const String &value)2434 {2435 setAttribute(acceptAttr, value);2436 }2437 2438 String HTMLInputElement::accessKey() const2439 {2440 return getAttribute(accesskeyAttr);2441 }2442 2443 void HTMLInputElement::setAccessKey(const String &value)2444 {2445 setAttribute(accesskeyAttr, value);2446 }2447 2448 String HTMLInputElement::align() const2449 {2450 return getAttribute(alignAttr);2451 }2452 2453 void HTMLInputElement::setAlign(const String &value)2454 {2455 setAttribute(alignAttr, value);2456 }2457 2458 2423 String HTMLInputElement::alt() const 2459 2424 { 2460 2425 return getAttribute(altAttr); 2461 }2462 2463 void HTMLInputElement::setAlt(const String &value)2464 {2465 setAttribute(altAttr, value);2466 2426 } 2467 2427 … … 2484 2444 } 2485 2445 2486 void HTMLInputElement::setMultiple(bool multiple)2487 {2488 setAttribute(multipleAttr, multiple ? "" : 0);2489 }2490 2491 2446 void HTMLInputElement::setSize(unsigned size) 2492 2447 { … … 2497 2452 { 2498 2453 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() const2507 {2508 return getAttribute(usemapAttr);2509 }2510 2511 void HTMLInputElement::setUseMap(const String &value)2512 {2513 setAttribute(usemapAttr, value);2514 2454 } 2515 2455 … … 2719 2659 2720 2660 #if ENABLE(DATALIST) 2661 2721 2662 HTMLElement* HTMLInputElement::list() const 2722 2663 { … … 2783 2724 return 0; 2784 2725 } 2726 2785 2727 #endif // ENABLE(DATALIST) 2786 2728 -
trunk/WebCore/html/HTMLInputElement.h
r61752 r61959 162 162 void setDefaultValue(const String&); 163 163 164 bool defaultChecked() const;165 void setDefaultChecked(bool);166 167 164 void setDefaultName(const AtomicString&); 168 165 169 166 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 178 167 String alt() const; 179 void setAlt(const String&);180 168 181 169 void setSize(unsigned); 182 170 183 171 KURL src() const; 184 void setSrc(const String&);185 172 186 173 int maxLength() const; … … 188 175 189 176 bool multiple() const; 190 void setMultiple(bool);191 192 String useMap() const;193 void setUseMap(const String&);194 177 195 178 virtual bool isAutofilled() const { return m_autofilled; } -
trunk/WebCore/html/HTMLIsIndexElement.cpp
r61293 r61959 62 62 } 63 63 64 String HTMLIsIndexElement::prompt() const65 {66 return getAttribute(promptAttr);67 }68 69 void HTMLIsIndexElement::setPrompt(const String &value)70 {71 setAttribute(promptAttr, value);72 }73 74 64 } // namespace -
trunk/WebCore/html/HTMLIsIndexElement.h
r60418 r61959 34 34 static PassRefPtr<HTMLIsIndexElement> create(const QualifiedName&, Document*, HTMLFormElement*); 35 35 36 String prompt() const;37 void setPrompt(const String&);38 39 36 private: 40 37 HTMLIsIndexElement(const QualifiedName&, Document*, HTMLFormElement*); -
trunk/WebCore/html/HTMLLIElement.cpp
r61293 r61959 117 117 } 118 118 119 String HTMLLIElement::type() const120 {121 return getAttribute(typeAttr);122 119 } 123 124 void HTMLLIElement::setType(const String& value)125 {126 setAttribute(typeAttr, value);127 }128 129 int HTMLLIElement::value() const130 {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 33 33 static PassRefPtr<HTMLLIElement> create(const QualifiedName&, Document*); 34 34 35 String type() const;36 void setType(const String&);37 38 int value() const;39 void setValue(int);40 41 35 private: 42 36 HTMLLIElement(const QualifiedName&, Document*); -
trunk/WebCore/html/HTMLLabelElement.cpp
r61293 r61959 155 155 } 156 156 157 String HTMLLabelElement::accessKey() const158 {159 return getAttribute(accesskeyAttr);160 }161 162 void HTMLLabelElement::setAccessKey(const String &value)163 {164 setAttribute(accesskeyAttr, value);165 }166 167 String HTMLLabelElement::htmlFor() const168 {169 return getAttribute(forAttr);170 }171 172 void HTMLLabelElement::setHtmlFor(const String &value)173 {174 setAttribute(forAttr, value);175 }176 177 157 void HTMLLabelElement::parseMappedAttribute(Attribute* attribute) 178 158 { -
trunk/WebCore/html/HTMLLabelElement.h
r60418 r61959 36 36 HTMLFormControlElement* control(); 37 37 38 String accessKey() const;39 void setAccessKey(const String&);40 41 String htmlFor() const;42 void setHtmlFor(const String&);43 44 38 private: 45 39 HTMLLabelElement(const QualifiedName&, Document*); -
trunk/WebCore/html/HTMLLegendElement.cpp
r61293 r61959 55 55 } 56 56 57 String HTMLLegendElement::accessKey() const58 {59 return getAttribute(accesskeyAttr);60 }61 62 void HTMLLegendElement::setAccessKey(const String &value)63 {64 setAttribute(accesskeyAttr, value);65 }66 67 String HTMLLegendElement::align() const68 {69 return getAttribute(alignAttr);70 }71 72 void HTMLLegendElement::setAlign(const String &value)73 {74 setAttribute(alignAttr, value);75 }76 77 57 HTMLFormControlElement* HTMLLegendElement::associatedControl() 78 58 { -
trunk/WebCore/html/HTMLLegendElement.h
r60418 r61959 33 33 static PassRefPtr<HTMLLegendElement> create(const QualifiedName&, Document*, HTMLFormElement*); 34 34 35 String accessKey() const;36 void setAccessKey(const String&);37 38 String align() const;39 void setAlign(const String&);40 41 35 private: 42 36 HTMLLegendElement(const QualifiedName&, Document*, HTMLFormElement*); -
trunk/WebCore/html/HTMLLinkElement.cpp
r61424 r61959 363 363 } 364 364 365 bool HTMLLinkElement::disabled() const366 {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() const376 {377 return getAttribute(charsetAttr);378 }379 380 void HTMLLinkElement::setCharset(const String& value)381 {382 setAttribute(charsetAttr, value);383 }384 385 365 KURL HTMLLinkElement::href() const 386 366 { … … 388 368 } 389 369 390 void HTMLLinkElement::setHref(const String& value)391 {392 setAttribute(hrefAttr, value);393 }394 395 String HTMLLinkElement::hreflang() const396 {397 return getAttribute(hreflangAttr);398 }399 400 void HTMLLinkElement::setHreflang(const String& value)401 {402 setAttribute(hreflangAttr, value);403 }404 405 String HTMLLinkElement::media() const406 {407 return getAttribute(mediaAttr);408 }409 410 void HTMLLinkElement::setMedia(const String& value)411 {412 setAttribute(mediaAttr, value);413 }414 415 370 String HTMLLinkElement::rel() const 416 371 { … … 418 373 } 419 374 420 void HTMLLinkElement::setRel(const String& value)421 {422 setAttribute(relAttr, value);423 }424 425 String HTMLLinkElement::rev() const426 {427 return getAttribute(revAttr);428 }429 430 void HTMLLinkElement::setRev(const String& value)431 {432 setAttribute(revAttr, value);433 }434 435 375 String HTMLLinkElement::target() const 436 376 { … … 438 378 } 439 379 440 void HTMLLinkElement::setTarget(const String& value)441 {442 setAttribute(targetAttr, value);443 }444 445 380 String HTMLLinkElement::type() const 446 381 { 447 382 return getAttribute(typeAttr); 448 }449 450 void HTMLLinkElement::setType(const String& value)451 {452 setAttribute(typeAttr, value);453 383 } 454 384 -
trunk/WebCore/html/HTMLLinkElement.h
r61425 r61959 48 48 virtual ~HTMLLinkElement(); 49 49 50 bool disabled() const;51 void setDisabled(bool);52 53 String charset() const;54 void setCharset(const String&);55 56 50 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 51 String rel() const; 66 void setRel(const String&);67 68 String rev() const;69 void setRev(const String&);70 52 71 53 virtual String target() const; 72 void setTarget(const String&);73 54 74 55 String type() const; 75 void setType(const String&);76 56 77 57 StyleSheet* sheet() const; -
trunk/WebCore/html/HTMLMapElement.cpp
r61293 r61959 138 138 } 139 139 140 String HTMLMapElement::name() const141 {142 return getAttribute(nameAttr);143 }144 145 void HTMLMapElement::setName(const String& value)146 {147 setAttribute(nameAttr, value);148 }149 150 140 void HTMLMapElement::insertedIntoDocument() 151 141 { -
trunk/WebCore/html/HTMLMapElement.h
r60937 r61959 45 45 PassRefPtr<HTMLCollection> areas(); 46 46 47 String name() const;48 void setName(const String&);49 50 47 private: 51 48 HTMLMapElement(const QualifiedName&, Document*); -
trunk/WebCore/html/HTMLMenuElement.cpp
r61293 r61959 41 41 } 42 42 43 bool HTMLMenuElement::compact() const44 {45 return !getAttribute(compactAttr).isNull();46 43 } 47 48 void HTMLMenuElement::setCompact(bool b)49 {50 setAttribute(compactAttr, b ? "" : 0);51 }52 53 } -
trunk/WebCore/html/HTMLMenuElement.h
r60361 r61959 32 32 static PassRefPtr<HTMLMenuElement> create(const QualifiedName&, Document*); 33 33 34 bool compact() const;35 void setCompact(bool);36 37 34 private: 38 35 HTMLMenuElement(const QualifiedName&, Document*); -
trunk/WebCore/html/HTMLMetaElement.cpp
r61293 r61959 77 77 } 78 78 79 String HTMLMetaElement::content() const80 {81 return getAttribute(contentAttr);82 }83 84 void HTMLMetaElement::setContent(const String& value)85 {86 setAttribute(contentAttr, value);87 }88 89 String HTMLMetaElement::httpEquiv() const90 {91 return getAttribute(http_equivAttr);92 }93 94 void HTMLMetaElement::setHttpEquiv(const String& value)95 {96 setAttribute(http_equivAttr, value);97 }98 99 79 String HTMLMetaElement::name() const 100 80 { … … 102 82 } 103 83 104 void HTMLMetaElement::setName(const String& value)105 {106 setAttribute(nameAttr, value);107 84 } 108 109 String HTMLMetaElement::scheme() const110 {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 32 32 static PassRefPtr<HTMLMetaElement> create(const QualifiedName&, Document*); 33 33 34 String content() const;35 void setContent(const String&);36 37 String httpEquiv() const;38 void setHttpEquiv(const String&);39 40 34 String name() const; 41 void setName(const String&);42 43 String scheme() const;44 void setScheme(const String&);45 35 46 36 private: -
trunk/WebCore/html/HTMLModElement.cpp
r61293 r61959 40 40 } 41 41 42 String HTMLModElement::cite() const43 {44 return getAttribute(citeAttr);45 42 } 46 47 void HTMLModElement::setCite(const String& value)48 {49 setAttribute(citeAttr, value);50 }51 52 String HTMLModElement::dateTime() const53 {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 33 33 static PassRefPtr<HTMLModElement> create(const QualifiedName&, Document*); 34 34 35 String cite() const;36 void setCite(const String&);37 38 String dateTime() const;39 void setDateTime(const String&);40 41 35 private: 42 36 HTMLModElement(const QualifiedName&, Document*); -
trunk/WebCore/html/HTMLOListElement.cpp
r61293 r61959 90 90 } 91 91 92 bool HTMLOListElement::compact() const93 {94 return !getAttribute(compactAttr).isNull();95 }96 97 void HTMLOListElement::setCompact(bool b)98 {99 setAttribute(compactAttr, b ? "" : 0);100 }101 102 92 void HTMLOListElement::setStart(int start) 103 93 { … … 105 95 } 106 96 107 String HTMLOListElement::type() const108 {109 return getAttribute(typeAttr);110 97 } 111 112 void HTMLOListElement::setType(const String& value)113 {114 setAttribute(typeAttr, value);115 }116 117 } -
trunk/WebCore/html/HTMLOListElement.h
r60361 r61959 33 33 static PassRefPtr<HTMLOListElement> create(const QualifiedName&, Document*); 34 34 35 bool compact() const;36 void setCompact(bool);37 38 35 int start() const { return m_start; } 39 36 void setStart(int); 40 41 String type() const;42 void setType(const String&);43 37 44 38 private: -
trunk/WebCore/html/HTMLObjectElement.cpp
r61707 r61959 302 302 } 303 303 304 bool HTMLObjectElement::declare() const305 {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() const315 {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() const325 {326 return getAttribute(vspaceAttr).toInt();327 }328 329 void HTMLObjectElement::setVspace(int value)330 {331 setAttribute(vspaceAttr, String::number(value));332 }333 334 304 bool HTMLObjectElement::containsJavaApplet() const 335 305 { -
trunk/WebCore/html/HTMLObjectElement.h
r59773 r61959 35 35 36 36 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);46 37 47 38 bool isDocNamedItem() const { return m_docNamedItem; } -
trunk/WebCore/html/HTMLOptGroupElement.cpp
r61293 r61959 87 87 } 88 88 89 String HTMLOptGroupElement::label() const90 {91 return getAttribute(labelAttr);92 }93 94 void HTMLOptGroupElement::setLabel(const String &value)95 {96 setAttribute(labelAttr, value);97 }98 99 89 bool HTMLOptGroupElement::checkDTD(const Node* newChild) 100 90 { -
trunk/WebCore/html/HTMLOptGroupElement.h
r60361 r61959 36 36 static PassRefPtr<HTMLOptGroupElement> create(const QualifiedName&, Document*, HTMLFormElement*); 37 37 38 String label() const;39 void setLabel(const String&);40 41 38 HTMLSelectElement* ownerSelectElement() const; 42 39 -
trunk/WebCore/html/HTMLOptionElement.cpp
r61293 r61959 209 209 } 210 210 211 bool HTMLOptionElement::defaultSelected() const212 {213 return !getAttribute(selectedAttr).isNull();214 }215 216 211 void HTMLOptionElement::setDefaultSelected(bool b) 217 212 { 218 213 setAttribute(selectedAttr, b ? "" : 0); 219 }220 221 String HTMLOptionElement::label() const222 {223 return m_data.label();224 }225 226 void HTMLOptionElement::setLabel(const String& value)227 {228 setAttribute(labelAttr, value);229 214 } 230 215 -
trunk/WebCore/html/HTMLOptionElement.h
r60361 r61959 55 55 HTMLSelectElement* ownerSelectElement() const; 56 56 57 bool defaultSelected() const;58 57 void setDefaultSelected(bool); 59 60 String label() const;61 void setLabel(const String&);62 58 63 59 bool ownElementDisabled() const { return HTMLFormControlElement::disabled(); } -
trunk/WebCore/html/HTMLParagraphElement.cpp
r61293 r61959 75 75 } 76 76 77 String HTMLParagraphElement::align() const78 {79 return getAttribute(alignAttr);80 77 } 81 82 void HTMLParagraphElement::setAlign(const String &value)83 {84 setAttribute(alignAttr, value);85 }86 87 } -
trunk/WebCore/html/HTMLParagraphElement.h
r60361 r61959 32 32 static PassRefPtr<HTMLParagraphElement> create(const QualifiedName&, Document*); 33 33 34 String align() const;35 void setAlign(const String&);36 37 34 private: 38 35 HTMLParagraphElement(const QualifiedName&, Document*); -
trunk/WebCore/html/HTMLParamElement.cpp
r61293 r61959 72 72 } 73 73 74 void HTMLParamElement::setName(const String& value)75 {76 setAttribute(nameAttr, value);77 }78 79 String HTMLParamElement::type() const80 {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() const95 {96 return getAttribute(valuetypeAttr);97 }98 99 void HTMLParamElement::setValueType(const String& value)100 {101 setAttribute(valuetypeAttr, value);102 }103 104 74 void HTMLParamElement::addSubresourceAttributeURLs(ListHashSet<KURL>& urls) const 105 75 { -
trunk/WebCore/html/HTMLParamElement.h
r60361 r61959 33 33 34 34 String name() const { return m_name; } 35 void setName(const String&);36 37 String type() const;38 void setType(const String&);39 40 35 String value() const { return m_value; } 41 void setValue(const String&);42 43 String valueType() const;44 void setValueType(const String&);45 36 46 37 private: -
trunk/WebCore/html/HTMLPlugInElement.cpp
r59773 r61959 89 89 } 90 90 91 String HTMLPlugInElement::height() const92 {93 return getAttribute(heightAttr);94 }95 96 void HTMLPlugInElement::setHeight(const String& value)97 {98 setAttribute(heightAttr, value);99 }100 101 String HTMLPlugInElement::width() const102 {103 return getAttribute(widthAttr);104 }105 106 void HTMLPlugInElement::setWidth(const String& value)107 {108 setAttribute(widthAttr, value);109 }110 111 91 bool HTMLPlugInElement::mapToEntry(const QualifiedName& attrName, MappedAttributeEntry& result) const 112 92 { -
trunk/WebCore/html/HTMLPlugInElement.h
r59773 r61959 39 39 virtual ~HTMLPlugInElement(); 40 40 41 String height() const;42 void setHeight(const String&);43 44 String width() const;45 void setWidth(const String&);46 47 41 PassScriptInstance getInstance() const; 48 42 -
trunk/WebCore/html/HTMLPreElement.cpp
r61293 r61959 66 66 } 67 67 68 int HTMLPreElement::width() const69 {70 return getAttribute(widthAttr).toInt();71 68 } 72 73 void HTMLPreElement::setWidth(int width)74 {75 setAttribute(widthAttr, String::number(width));76 }77 78 bool HTMLPreElement::wrap() const79 {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 32 32 static PassRefPtr<HTMLPreElement> create(const QualifiedName&, Document*); 33 33 34 int width() const;35 void setWidth(int);36 37 bool wrap() const;38 void setWrap(bool);39 40 34 private: 41 35 HTMLPreElement(const QualifiedName&, Document*); -
trunk/WebCore/html/HTMLQuoteElement.cpp
r61293 r61959 49 49 } 50 50 51 String HTMLQuoteElement::cite() const52 {53 return getAttribute(citeAttr);54 51 } 55 56 void HTMLQuoteElement::setCite(const String &value)57 {58 setAttribute(citeAttr, value);59 }60 61 } -
trunk/WebCore/html/HTMLQuoteElement.h
r60361 r61959 35 35 static PassRefPtr<HTMLQuoteElement> create(const QualifiedName&, Document*); 36 36 37 String cite() const;38 void setCite(const String&);39 40 37 private: 41 38 HTMLQuoteElement(const QualifiedName&, Document*); -
trunk/WebCore/html/HTMLScriptElement.cpp
r61518 r61959 118 118 } 119 119 120 String HTMLScriptElement::htmlFor() const121 {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() const132 {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() const143 {144 return charsetAttributeValue();145 }146 147 void HTMLScriptElement::setCharset(const String &value)148 {149 setAttribute(charsetAttr, value);150 }151 152 bool HTMLScriptElement::async() const153 {154 return asyncAttributeValue();155 }156 157 void HTMLScriptElement::setAsync(bool async)158 {159 setAttribute(asyncAttr, async ? "" : 0);160 }161 162 bool HTMLScriptElement::defer() const163 {164 return deferAttributeValue();165 }166 167 void HTMLScriptElement::setDefer(bool defer)168 {169 setAttribute(deferAttr, defer ? "" : 0);170 }171 172 120 KURL HTMLScriptElement::src() const 173 121 { 174 122 return document()->completeURL(sourceAttributeValue()); 175 }176 177 void HTMLScriptElement::setSrc(const String &value)178 {179 setAttribute(srcAttr, value);180 }181 182 String HTMLScriptElement::type() const183 {184 return typeAttributeValue();185 }186 187 void HTMLScriptElement::setType(const String &value)188 {189 setAttribute(typeAttr, value);190 123 } 191 124 -
trunk/WebCore/html/HTMLScriptElement.h
r61518 r61959 39 39 void setText(const String&); 40 40 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 56 41 KURL src() const; 57 void setSrc(const String&);58 59 String type() const;60 void setType(const String&);61 42 62 43 virtual String scriptCharset() const; -
trunk/WebCore/html/HTMLSelectElement.idl
r60232 r61959 1 1 /* 2 * Copyright (C) 2006 Apple Computer, Inc.2 * Copyright (C) 2006, 2010 Apple Inc. All rights reserved. 3 3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> 4 4 * … … 25 25 HasCustomIndexSetter 26 26 ] 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; 31 30 32 31 // Modified in DOM Level 2: 33 32 #if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C 34 readonly attribute long 33 readonly attribute long length; 35 34 #else 36 attribute unsigned long length 37 setter raises (DOMException); 35 attribute unsigned long length setter raises (DOMException); 38 36 #endif 39 37 40 38 readonly attribute HTMLFormElement form; 41 readonly attribute ValidityState 42 readonly attribute boolean 43 readonly attribute DOMString 44 boolean 45 void 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); 46 44 47 45 // Modified in DOM Level 2: 48 46 readonly attribute HTMLOptionsCollection options; 49 47 50 attribute booleandisabled;51 attribute booleanautofocus;52 attribute booleanmultiple;53 attribute [ConvertNullToNullString] DOMStringname;54 attribute longsize;48 attribute [Reflect] boolean disabled; 49 attribute [Reflect] boolean autofocus; 50 attribute boolean multiple; 51 attribute [ConvertNullToNullString] DOMString name; 52 attribute long size; 55 53 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); 59 55 60 56 #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 */); 63 60 #else 64 void 61 void remove(in long index); 65 62 #endif 66 63 … … 69 66 Node item(in [IsIndex] unsigned long index); 70 67 Node namedItem(in DOMString name); 71 readonly attribute NodeList 68 readonly attribute NodeList labels; 72 69 }; 73 70 -
trunk/WebCore/html/HTMLStyleElement.cpp
r61293 r61959 46 46 } 47 47 48 // other stuff...49 48 void HTMLStyleElement::parseMappedAttribute(Attribute* attr) 50 49 { 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) 54 51 m_sheet->setTitle(attr->value()); 55 52 else 56 53 HTMLElement::parseMappedAttribute(attr); 57 54 } … … 111 108 } 112 109 113 bool HTMLStyleElement::disabled() const114 {115 return !getAttribute(disabledAttr).isNull();116 }117 118 void HTMLStyleElement::setDisabled(bool disabled)119 {120 setAttribute(disabledAttr, disabled ? "" : 0);121 }122 123 110 const AtomicString& HTMLStyleElement::media() const 124 111 { … … 126 113 } 127 114 128 void HTMLStyleElement::setMedia(const AtomicString &value)129 {130 setAttribute(mediaAttr, value);131 }132 133 115 const AtomicString& HTMLStyleElement::type() const 134 116 { 135 117 return getAttribute(typeAttr); 136 }137 138 void HTMLStyleElement::setType(const AtomicString &value)139 {140 setAttribute(typeAttr, value);141 118 } 142 119 -
trunk/WebCore/html/HTMLStyleElement.h
r60361 r61959 20 20 * 21 21 */ 22 22 23 #ifndef HTMLStyleElement_h 23 24 #define HTMLStyleElement_h … … 30 31 class StyleSheet; 31 32 32 class HTMLStyleElement : public HTMLElement, p ublicStyleElement {33 class HTMLStyleElement : public HTMLElement, private StyleElement { 33 34 public: 34 35 static PassRefPtr<HTMLStyleElement> create(const QualifiedName&, Document*, bool createdByParser); 35 36 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;43 37 void setType(const AtomicString&); 44 38 … … 67 61 virtual void addSubresourceAttributeURLs(ListHashSet<KURL>&) const; 68 62 69 String m_media; 63 virtual const AtomicString& media() const; 64 virtual const AtomicString& type() const; 65 70 66 bool m_loading; 71 67 bool m_createdByParser; -
trunk/WebCore/html/HTMLStyleElement.idl
r61413 r61959 22 22 23 23 interface HTMLStyleElement : HTMLElement { 24 attribute boolean disabled;24 attribute [Reflect] boolean disabled; 25 25 attribute [Reflect] DOMString media; 26 26 attribute [Reflect] DOMString type; -
trunk/WebCore/html/HTMLTableCaptionElement.cpp
r61293 r61959 64 64 } 65 65 66 String HTMLTableCaptionElement::align() const67 {68 return getAttribute(alignAttr);69 66 } 70 71 void HTMLTableCaptionElement::setAlign(const String &value)72 {73 setAttribute(alignAttr, value);74 }75 76 } -
trunk/WebCore/html/HTMLTableCaptionElement.h
r60342 r61959 35 35 static PassRefPtr<HTMLTableCaptionElement> create(const QualifiedName&, Document*); 36 36 37 String align() const;38 void setAlign(const String&);39 40 37 private: 41 38 HTMLTableCaptionElement(const QualifiedName&, Document*); -
trunk/WebCore/html/HTMLTableCellElement.cpp
r61630 r61959 134 134 } 135 135 136 void HTMLTableCellElement::setAbbr(const String &value)137 {138 setAttribute(abbrAttr, value);139 }140 141 String HTMLTableCellElement::align() const142 {143 return getAttribute(alignAttr);144 }145 146 void HTMLTableCellElement::setAlign(const String &value)147 {148 setAttribute(alignAttr, value);149 }150 151 136 String HTMLTableCellElement::axis() const 152 137 { 153 138 return getAttribute(axisAttr); 154 }155 156 void HTMLTableCellElement::setAxis(const String &value)157 {158 setAttribute(axisAttr, value);159 }160 161 String HTMLTableCellElement::bgColor() const162 {163 return getAttribute(bgcolorAttr);164 }165 166 void HTMLTableCellElement::setBgColor(const String &value)167 {168 setAttribute(bgcolorAttr, value);169 }170 171 String HTMLTableCellElement::ch() const172 {173 return getAttribute(charAttr);174 }175 176 void HTMLTableCellElement::setCh(const String &value)177 {178 setAttribute(charAttr, value);179 }180 181 String HTMLTableCellElement::chOff() const182 {183 return getAttribute(charoffAttr);184 }185 186 void HTMLTableCellElement::setChOff(const String &value)187 {188 setAttribute(charoffAttr, value);189 139 } 190 140 … … 199 149 } 200 150 201 void HTMLTableCellElement::setHeaders(const String &value)202 {203 setAttribute(headersAttr, value);204 }205 206 String HTMLTableCellElement::height() const207 {208 return getAttribute(heightAttr);209 }210 211 void HTMLTableCellElement::setHeight(const String &value)212 {213 setAttribute(heightAttr, value);214 }215 216 bool HTMLTableCellElement::noWrap() const217 {218 return !getAttribute(nowrapAttr).isNull();219 }220 221 void HTMLTableCellElement::setNoWrap(bool b)222 {223 setAttribute(nowrapAttr, b ? "" : 0);224 }225 226 151 void HTMLTableCellElement::setRowSpan(int n) 227 152 { … … 234 159 } 235 160 236 void HTMLTableCellElement::setScope(const String &value)237 {238 setAttribute(scopeAttr, value);239 }240 241 String HTMLTableCellElement::vAlign() const242 {243 return getAttribute(valignAttr);244 }245 246 void HTMLTableCellElement::setVAlign(const String &value)247 {248 setAttribute(valignAttr, value);249 }250 251 String HTMLTableCellElement::width() const252 {253 return getAttribute(widthAttr);254 }255 256 void HTMLTableCellElement::setWidth(const String &value)257 {258 setAttribute(widthAttr, value);259 }260 261 161 void HTMLTableCellElement::addSubresourceAttributeURLs(ListHashSet<KURL>& urls) const 262 162 { -
trunk/WebCore/html/HTMLTableCellElement.h
r60361 r61959 48 48 49 49 String abbr() const; 50 void setAbbr(const String&);51 52 String align() const;53 void setAlign(const String&);54 55 50 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 67 51 void setColSpan(int); 68 69 52 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 78 53 void setRowSpan(int); 79 80 54 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&);88 55 89 56 private: -
trunk/WebCore/html/HTMLTableCellElement.idl
r61413 r61959 32 32 attribute [Reflect] DOMString headers; 33 33 attribute [Reflect] DOMString height; 34 attribute boolean noWrap;34 attribute [Reflect] boolean noWrap; 35 35 attribute long rowSpan; 36 36 attribute [Reflect] DOMString scope; -
trunk/WebCore/html/HTMLTableColElement.cpp
r61293 r61959 111 111 } 112 112 113 String HTMLTableColElement::align() const114 {115 return getAttribute(alignAttr);116 }117 118 void HTMLTableColElement::setAlign(const String &value)119 {120 setAttribute(alignAttr, value);121 }122 123 String HTMLTableColElement::ch() const124 {125 return getAttribute(charAttr);126 }127 128 void HTMLTableColElement::setCh(const String &value)129 {130 setAttribute(charAttr, value);131 }132 133 String HTMLTableColElement::chOff() const134 {135 return getAttribute(charoffAttr);136 }137 138 void HTMLTableColElement::setChOff(const String &value)139 {140 setAttribute(charoffAttr, value);141 }142 143 113 void HTMLTableColElement::setSpan(int n) 144 114 { 145 115 setAttribute(spanAttr, String::number(n)); 146 }147 148 String HTMLTableColElement::vAlign() const149 {150 return getAttribute(valignAttr);151 }152 153 void HTMLTableColElement::setVAlign(const String &value)154 {155 setAttribute(valignAttr, value);156 116 } 157 117 … … 161 121 } 162 122 163 void HTMLTableColElement::setWidth(const String &value)164 {165 setAttribute(widthAttr, value);166 123 } 167 168 } -
trunk/WebCore/html/HTMLTableColElement.h
r60342 r61959 36 36 37 37 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 48 38 void setSpan(int); 49 39 50 String vAlign() const;51 void setVAlign(const String&);52 53 40 String width() const; 54 void setWidth(const String&);55 41 56 42 private: -
trunk/WebCore/html/HTMLTableElement.cpp
r61293 r61959 670 670 } 671 671 672 String HTMLTableElement::align() const673 {674 return getAttribute(alignAttr);675 }676 677 void HTMLTableElement::setAlign(const String &value)678 {679 setAttribute(alignAttr, value);680 }681 682 String HTMLTableElement::bgColor() const683 {684 return getAttribute(bgcolorAttr);685 }686 687 void HTMLTableElement::setBgColor(const String &value)688 {689 setAttribute(bgcolorAttr, value);690 }691 692 String HTMLTableElement::border() const693 {694 return getAttribute(borderAttr);695 }696 697 void HTMLTableElement::setBorder(const String &value)698 {699 setAttribute(borderAttr, value);700 }701 702 String HTMLTableElement::cellPadding() const703 {704 return getAttribute(cellpaddingAttr);705 }706 707 void HTMLTableElement::setCellPadding(const String &value)708 {709 setAttribute(cellpaddingAttr, value);710 }711 712 String HTMLTableElement::cellSpacing() const713 {714 return getAttribute(cellspacingAttr);715 }716 717 void HTMLTableElement::setCellSpacing(const String &value)718 {719 setAttribute(cellspacingAttr, value);720 }721 722 String HTMLTableElement::frame() const723 {724 return getAttribute(frameAttr);725 }726 727 void HTMLTableElement::setFrame(const String &value)728 {729 setAttribute(frameAttr, value);730 }731 732 672 String HTMLTableElement::rules() const 733 673 { … … 735 675 } 736 676 737 void HTMLTableElement::setRules(const String &value)738 {739 setAttribute(rulesAttr, value);740 }741 742 677 String HTMLTableElement::summary() const 743 678 { … … 745 680 } 746 681 747 void HTMLTableElement::setSummary(const String &value)748 {749 setAttribute(summaryAttr, value);750 }751 752 String HTMLTableElement::width() const753 {754 return getAttribute(widthAttr);755 }756 757 void HTMLTableElement::setWidth(const String &value)758 {759 setAttribute(widthAttr, value);760 }761 762 682 void HTMLTableElement::addSubresourceAttributeURLs(ListHashSet<KURL>& urls) const 763 683 { -
trunk/WebCore/html/HTMLTableElement.h
r60361 r61959 61 61 PassRefPtr<HTMLCollection> tBodies(); 62 62 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 81 63 String rules() const; 82 void setRules(const String&);83 84 64 String summary() const; 85 void setSummary(const String&);86 87 String width() const;88 void setWidth(const String&);89 65 90 66 virtual ContainerNode* addChild(PassRefPtr<Node>); -
trunk/WebCore/html/HTMLTableRowElement.cpp
r61293 r61959 182 182 } 183 183 184 void HTMLTableRowElement::setCells(HTMLCollection 184 void HTMLTableRowElement::setCells(HTMLCollection*, ExceptionCode& ec) 185 185 { 186 186 ec = NO_MODIFICATION_ALLOWED_ERR; 187 187 } 188 188 189 String HTMLTableRowElement::align() const190 {191 return getAttribute(alignAttr);192 189 } 193 194 void HTMLTableRowElement::setAlign(const String &value)195 {196 setAttribute(alignAttr, value);197 }198 199 String HTMLTableRowElement::bgColor() const200 {201 return getAttribute(bgcolorAttr);202 }203 204 void HTMLTableRowElement::setBgColor(const String &value)205 {206 setAttribute(bgcolorAttr, value);207 }208 209 String HTMLTableRowElement::ch() const210 {211 return getAttribute(charAttr);212 }213 214 void HTMLTableRowElement::setCh(const String &value)215 {216 setAttribute(charAttr, value);217 }218 219 String HTMLTableRowElement::chOff() const220 {221 return getAttribute(charoffAttr);222 }223 224 void HTMLTableRowElement::setChOff(const String &value)225 {226 setAttribute(charoffAttr, value);227 }228 229 String HTMLTableRowElement::vAlign() const230 {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 50 50 void setCells(HTMLCollection *, ExceptionCode&); 51 51 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 67 52 private: 68 53 HTMLTableRowElement(const QualifiedName&, Document*); -
trunk/WebCore/html/HTMLTextAreaElement.cpp
r61293 r61959 400 400 } 401 401 402 const AtomicString& HTMLTextAreaElement::accessKey() const403 {404 return getAttribute(accesskeyAttr);405 }406 407 void HTMLTextAreaElement::setAccessKey(const String& value)408 {409 setAttribute(accesskeyAttr, value);410 }411 412 402 void HTMLTextAreaElement::setCols(int cols) 413 403 { -
trunk/WebCore/html/HTMLTextAreaElement.h
r60418 r61959 52 52 void rendererWillBeDestroyed(); 53 53 54 const AtomicString& accessKey() const;55 void setAccessKey(const String&);56 57 54 void setCols(int); 58 55 void setRows(int); -
trunk/WebCore/html/HTMLTextAreaElement.idl
r61413 r61959 27 27 attribute [Reflect] DOMString accessKey; 28 28 attribute long cols; 29 attribute boolean disabled;30 attribute boolean autofocus;29 attribute [Reflect] boolean disabled; 30 attribute [Reflect] boolean autofocus; 31 31 attribute long maxLength setter raises(DOMException); 32 32 attribute [ConvertNullToNullString] DOMString name; 33 33 attribute [Reflect] DOMString placeholder; 34 attribute boolean readOnly;35 attribute boolean required;34 attribute [Reflect] boolean readOnly; 35 attribute [Reflect] boolean required; 36 36 attribute long rows; 37 37 readonly attribute DOMString type; -
trunk/WebCore/html/HTMLUListElement.cpp
r61293 r61959 66 66 } 67 67 68 bool HTMLUListElement::compact() const69 {70 return !getAttribute(compactAttr).isNull();71 68 } 72 73 void HTMLUListElement::setCompact(bool b)74 {75 setAttribute(compactAttr, b ? "" : 0);76 }77 78 String HTMLUListElement::type() const79 {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 33 33 static PassRefPtr<HTMLUListElement> create(const QualifiedName&, Document*); 34 34 35 bool compact() const;36 void setCompact(bool);37 38 String type() const;39 void setType(const String&);40 41 35 private: 42 36 HTMLUListElement(const QualifiedName&, Document*); -
trunk/WebCore/html/HTMLUListElement.idl
r61413 r61959 21 21 22 22 interface HTMLUListElement : HTMLElement { 23 attribute boolean compact;23 attribute [Reflect] boolean compact; 24 24 attribute [Reflect] DOMString type; 25 25 }; -
trunk/WebCore/html/HTMLVideoElement.cpp
r61413 r61959 155 155 return ok ? w : 0; 156 156 } 157 158 void HTMLVideoElement::setWidth(unsigned value)159 {160 setAttribute(widthAttr, String::number(value));161 }162 157 163 158 unsigned HTMLVideoElement::height() const … … 168 163 } 169 164 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 180 165 bool HTMLVideoElement::isURLAttribute(Attribute* attribute) const 181 166 { -
trunk/WebCore/html/HTMLVideoElement.h
r60361 r61959 40 40 41 41 unsigned width() const; 42 void setWidth(unsigned);43 42 unsigned height() const; 44 void setHeight(unsigned);45 43 46 44 unsigned videoWidth() const; … … 48 46 49 47 virtual const KURL poster() const { return m_posterURL; } 50 void setPoster(const String&);51 48 52 49 // Fullscreen
Note: See TracChangeset
for help on using the changeset viewer.