| Index: Source/core/html/HTMLFormElement.cpp
|
| diff --git a/Source/core/html/HTMLFormElement.cpp b/Source/core/html/HTMLFormElement.cpp
|
| index e44ff6f0574e77a1045ec8d00a05d6d2d571b4a2..f73c02b6a8c4bcf56f1622b0a995e25de8f978a2 100644
|
| --- a/Source/core/html/HTMLFormElement.cpp
|
| +++ b/Source/core/html/HTMLFormElement.cpp
|
| @@ -128,14 +128,14 @@ bool HTMLFormElement::layoutObjectIsNeeded(const ComputedStyle& style)
|
| ContainerNode* node = parentNode();
|
| if (!node || !node->layoutObject())
|
| return HTMLElement::layoutObjectIsNeeded(style);
|
| - LayoutObject* parentRenderer = node->layoutObject();
|
| + LayoutObject* parentLayoutObject = node->layoutObject();
|
| // FIXME: Shouldn't we also check for table caption (see |formIsTablePart| below).
|
| // FIXME: This check is not correct for Shadow DOM.
|
| - bool parentIsTableElementPart = (parentRenderer->isTable() && isHTMLTableElement(*node))
|
| - || (parentRenderer->isTableRow() && isHTMLTableRowElement(*node))
|
| - || (parentRenderer->isTableSection() && node->hasTagName(tbodyTag))
|
| - || (parentRenderer->isLayoutTableCol() && node->hasTagName(colTag))
|
| - || (parentRenderer->isTableCell() && isHTMLTableRowElement(*node));
|
| + bool parentIsTableElementPart = (parentLayoutObject->isTable() && isHTMLTableElement(*node))
|
| + || (parentLayoutObject->isTableRow() && isHTMLTableRowElement(*node))
|
| + || (parentLayoutObject->isTableSection() && node->hasTagName(tbodyTag))
|
| + || (parentLayoutObject->isLayoutTableCol() && node->hasTagName(colTag))
|
| + || (parentLayoutObject->isTableCell() && isHTMLTableRowElement(*node));
|
|
|
| if (!parentIsTableElementPart)
|
| return true;
|
|
|