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

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

Issue 19510005: [oilpan] Completely move HTMLFormControlElement's hierarchy to the managed heap Base URL: svn://svn.chromium.org/blink/branches/oilpan
Patch Set: Created 7 years, 5 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/HTMLFormControlElementWithState.h ('k') | Source/core/html/HTMLFormElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLFormControlElementWithState.cpp
diff --git a/Source/core/html/HTMLFormControlElementWithState.cpp b/Source/core/html/HTMLFormControlElementWithState.cpp
index 8c57b34dac7db2384d7cd128cdb3f2235ff0166a..1513ce3a923721bb7914c30405b72bd245423480 100644
--- a/Source/core/html/HTMLFormControlElementWithState.cpp
+++ b/Source/core/html/HTMLFormControlElementWithState.cpp
@@ -37,7 +37,7 @@ namespace WebCore {
HTMLFormControlElementWithState::HTMLFormControlElementWithState(const QualifiedName& tagName, Document* doc, HTMLFormElement* f)
: HTMLFormControlElement(tagName, doc, f)
{
- document()->formController()->registerFormElementWithState(this);
+ document()->formController()->registerFormElementWithState(Handle<HTMLFormControlElementWithState>(this));
}
HTMLFormControlElementWithState::~HTMLFormControlElementWithState()
@@ -47,8 +47,8 @@ HTMLFormControlElementWithState::~HTMLFormControlElementWithState()
void HTMLFormControlElementWithState::didMoveToNewDocument(Document* oldDocument)
{
if (oldDocument)
- oldDocument->formController()->unregisterFormElementWithState(this);
- document()->formController()->registerFormElementWithState(this);
+ oldDocument->formController()->unregisterFormElementWithState(Handle<HTMLFormControlElementWithState>(this));
+ document()->formController()->registerFormElementWithState(Handle<HTMLFormControlElementWithState>(this));
HTMLFormControlElement::didMoveToNewDocument(oldDocument);
}
@@ -83,7 +83,7 @@ FormControlState HTMLFormControlElementWithState::saveFormControlState() const
void HTMLFormControlElementWithState::finishParsingChildren()
{
HTMLFormControlElement::finishParsingChildren();
- document()->formController()->restoreControlStateFor(*this);
+ document()->formController()->restoreControlStateFor(Handle<HTMLFormControlElementWithState>(this));
}
bool HTMLFormControlElementWithState::isFormControlElementWithState() const
@@ -91,4 +91,9 @@ bool HTMLFormControlElementWithState::isFormControlElementWithState() const
return true;
}
+void HTMLFormControlElementWithState::acceptHeapVisitor(Visitor* visitor) const
+{
+ HTMLFormControlElement::acceptHeapVisitor(visitor);
+}
+
} // namespace Webcore
« no previous file with comments | « Source/core/html/HTMLFormControlElementWithState.h ('k') | Source/core/html/HTMLFormElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698