Skip to content
  • commit-queue@webkit.org's avatar
    Shrink HTMLTableCellElement. · 29746dcd
    commit-queue@webkit.org authored
    https://bugs.webkit.org/show_bug.cgi?id=69347
    
    Patch by Andreas Kling <kling@webkit.org> on 2011-10-04
    Reviewed by Antti Koivisto.
    
    Don't cache the rowspan and colspan attributes on the element.
    This shrinks HTMLTableCellElement by one CPU word, reducing memory
    consumption by 80 kB (on 64-bit) when loading the full HTML5 spec.
    
    * html/HTMLTableCellElement.cpp:
    (WebCore::HTMLTableCellElement::HTMLTableCellElement):
    (WebCore::HTMLTableCellElement::colSpan):
    (WebCore::HTMLTableCellElement::rowSpan):
    (WebCore::HTMLTableCellElement::parseMappedAttribute):
    * html/HTMLTableCellElement.h:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@96638 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    29746dcd