Index: Source/core/html/HTMLFormElement.cpp |
diff --git a/Source/core/html/HTMLFormElement.cpp b/Source/core/html/HTMLFormElement.cpp |
index c768e3a45852c1c8356a68f31010e80023e80ef0..2667de7b0c02dd388548a122a0bff98bc55450b8 100644 |
--- a/Source/core/html/HTMLFormElement.cpp |
+++ b/Source/core/html/HTMLFormElement.cpp |
@@ -126,9 +126,9 @@ bool HTMLFormElement::rendererIsNeeded(const LayoutStyle& style) |
return HTMLElement::rendererIsNeeded(style); |
ContainerNode* node = parentNode(); |
- if (!node || !node->renderer()) |
+ if (!node || !node->layoutObject()) |
return HTMLElement::rendererIsNeeded(style); |
- LayoutObject* parentRenderer = node->renderer(); |
+ LayoutObject* parentRenderer = 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)) |
@@ -287,7 +287,7 @@ bool HTMLFormElement::validateInteractively() |
// show a validation message on a focusable form control. |
// Needs to update layout now because we'd like to call isFocusable(), which |
- // has !renderer()->needsLayout() assertion. |
+ // has !layoutObject()->needsLayout() assertion. |
document().updateLayoutIgnorePendingStylesheets(); |
RefPtrWillBeRawPtr<HTMLFormElement> protector(this); |