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

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

Issue 977113003: Rename renderer() to layoutObject(). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 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/HTMLFormControlElementTest.cpp ('k') | Source/core/html/HTMLFrameElement.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 dc53ef9b58fa3d287b284ac0df686fea13b6708f..67ba62e424e7dd3f2ff455872b997d439a096419 100644
--- a/Source/core/html/HTMLFormElement.cpp
+++ b/Source/core/html/HTMLFormElement.cpp
@@ -126,9 +126,9 @@ bool HTMLFormElement::layoutObjectIsNeeded(const LayoutStyle& style)
return HTMLElement::layoutObjectIsNeeded(style);
ContainerNode* node = parentNode();
- if (!node || !node->renderer())
+ if (!node || !node->layoutObject())
return HTMLElement::layoutObjectIsNeeded(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);
« no previous file with comments | « Source/core/html/HTMLFormControlElementTest.cpp ('k') | Source/core/html/HTMLFrameElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698