Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1105)

Unified Diff: Source/core/html/HTMLFormElement.cpp

Issue 1115353002: Update renderer to layoutObject in core/html. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/html/HTMLFormControlElement.cpp ('k') | Source/core/html/HTMLFrameOwnerElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « Source/core/html/HTMLFormControlElement.cpp ('k') | Source/core/html/HTMLFrameOwnerElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698