Skip to content
  • darin@apple.com's avatar
    More work on making DOM classes start with reference count of 1 · 3a3edd48
    darin@apple.com authored
    https://bugs.webkit.org/show_bug.cgi?id=28068
    
    Patch by Darin Adler <darin@apple.com> on 2009-08-18
    Reviewed by Sam Weinig.
    
    Some related clean-up and preparation steps so the subsequent
    patches will be as small as possible.
    
    * WebCore.base.exp: Sorted this file.
    
    * accessibility/AccessibilityRenderObject.cpp:
    (WebCore::AccessibilityRenderObject::accessibilityDescription):
    Use nameAttr instead of the name function.
    
    * bindings/js/JSHTMLFrameElementCustom.cpp:
    (WebCore::JSHTMLFrameElement::setSrc):
    Use srcAttr instead of the src function.
    
    * bindings/js/JSHTMLIFrameElementCustom.cpp:
    (WebCore::JSHTMLIFrameElement::setSrc):
    Use srcAttr instead of the src function.
    
    * bindings/objc/DOM.mm: Sorted includes.
    * dom/Document.cpp: Ditto.
    
    * dom/StyledElement.cpp: Made invalidateStyleAttribute inline.
    * dom/StyledElement.h: Ditto.
    
    * dom/make_names.pl: Changed default of createWithNew to 0.
    Eventually all elements will be created with create instead of new.
    
    * html/HTMLTagNames.in:
    * svg/svgtags.in:
    * wml/WMLTagNames.in:
    Added createWithNew for every tag. We'll remove it as we convert
    element classes to use create.
    
    * html/HTMLAppletElement.h: Removed unneeded forward declarations.
    * html/HTMLFrameElement.h: Ditto.
    
    * html/HTMLEmbedElement.cpp: Removed many attribute get and
    set functions.
    * html/HTMLEmbedElement.h: Ditto.
    * html/HTMLIFrameElement.cpp: Ditto.
    * html/HTMLIFrameElement.h: Ditto.
    * html/HTMLObjectElement.cpp: Ditto.
    * html/HTMLObjectElement.h: Ditto.
    * html/HTMLPlugInElement.cpp: Ditto.
    * html/HTMLPlugInElement.h: Ditto.
    
    * html/HTMLFrameElementBase.cpp: Removed many attribute get and
    set functions.
    (WebCore::HTMLFrameElementBase::location): Changed to use
    srcAttr instead of src.
    * html/HTMLFrameElementBase.h: Removed many attribute get and set
    functions.
    
    * loader/MediaDocument.cpp:
    (WebCore::MediaDocument::replaceMediaElementTimerFired):
    Use srcAttr and typeAttr instead of setSrc and setType.
    * loader/PluginDocument.cpp:
    (WebCore::PluginTokenizer::createDocumentStructure): Ditto.
    
    * rendering/RenderPartObject.cpp:
    (WebCore::RenderPartObject::updateWidget): Use nameAttr instead
    of name -- this avoids an extra AtomicString round trip and a little
    ref count churn too.
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@47469 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    3a3edd48