HTMLTablePartElement: Add helper method to find parent table.
authorkling@webkit.org <kling@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 11 Feb 2012 14:54:38 +0000 (14:54 +0000)
committerkling@webkit.org <kling@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 11 Feb 2012 14:54:38 +0000 (14:54 +0000)
commitee34ae4c6e7a39709bf97bb3d750a1cd0b3c41bc
treef300fdf7588ae79006c517739204635bdec862c1
parentf4d2377a31514d2f3d2445bd565b5cd6d1ead071
HTMLTablePartElement: Add helper method to find parent table.
<http://webkit.org/b/78413>

Reviewed by Anders Carlsson.

Add HTMLTablePartElement::findParentTable() and use that in subclasses instead
of duplicating the code.

* html/HTMLTableCellElement.cpp:
(WebCore::HTMLTableCellElement::additionalAttributeStyle):
* html/HTMLTableColElement.cpp:
(WebCore::HTMLTableColElement::additionalAttributeStyle):
* html/HTMLTablePartElement.cpp:
(WebCore::HTMLTablePartElement::findParentTable):
(WebCore):
* html/HTMLTablePartElement.h:
(WebCore):
(HTMLTablePartElement):
* html/HTMLTableSectionElement.cpp:
(WebCore::HTMLTableSectionElement::additionalAttributeStyle):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@107478 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/html/HTMLTableCellElement.cpp
Source/WebCore/html/HTMLTableColElement.cpp
Source/WebCore/html/HTMLTablePartElement.cpp
Source/WebCore/html/HTMLTablePartElement.h
Source/WebCore/html/HTMLTableSectionElement.cpp