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

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

Issue 181653002: Have Document::formController() return a reference (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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/HTMLFormElement.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLInputElement.cpp
diff --git a/Source/core/html/HTMLInputElement.cpp b/Source/core/html/HTMLInputElement.cpp
index 155a2f0aca6e5f4af0d6fbc248ca591b01804491..9a3ae1386de5dadc7486aefb07fb98efa27bb134 100644
--- a/Source/core/html/HTMLInputElement.cpp
+++ b/Source/core/html/HTMLInputElement.cpp
@@ -166,7 +166,7 @@ HTMLInputElement::~HTMLInputElement()
// setForm(0) may register this to a document-level radio button group.
// We should unregister it to avoid accessing a deleted object.
if (isRadioButton())
- document().formController()->radioButtonGroupScope().removeButton(this);
+ document().formController().radioButtonGroupScope().removeButton(this);
if (m_hasTouchEventHandler)
document().didRemoveTouchEventHandler(this);
}
@@ -1433,7 +1433,7 @@ void HTMLInputElement::didMoveToNewDocument(Document& oldDocument)
imageLoader()->elementDidMoveToNewDocument();
if (isRadioButton())
- oldDocument.formController()->radioButtonGroupScope().removeButton(this);
+ oldDocument.formController().radioButtonGroupScope().removeButton(this);
if (m_hasTouchEventHandler)
oldDocument.didRemoveTouchEventHandler(this);
@@ -1726,7 +1726,7 @@ RadioButtonGroupScope* HTMLInputElement::radioButtonGroupScope() const
if (HTMLFormElement* formElement = form())
return &formElement->radioButtonGroupScope();
if (inDocument())
- return &document().formController()->radioButtonGroupScope();
+ return &document().formController().radioButtonGroupScope();
return 0;
}
« no previous file with comments | « Source/core/html/HTMLFormElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698