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

Unified Diff: Source/core/html/ValidityState.h

Issue 271533009: Oilpan: Prepare to move FormAssociatedElement to Oilpan heap, part 1. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove using Created 6 years, 7 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/HTMLObjectElement.cpp ('k') | Source/core/html/ValidityState.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/ValidityState.h
diff --git a/Source/core/html/ValidityState.h b/Source/core/html/ValidityState.h
index 44d05b8cc8c2d5444259b7c11e4ee801fb82a168..829cc4e97a4f11009d5216889c7cfea89eddc8a1 100644
--- a/Source/core/html/ValidityState.h
+++ b/Source/core/html/ValidityState.h
@@ -30,16 +30,20 @@
namespace WebCore {
-class ValidityState : public ScriptWrappable {
- WTF_MAKE_NONCOPYABLE(ValidityState); WTF_MAKE_FAST_ALLOCATED;
+class ValidityState : public NoBaseWillBeGarbageCollectedFinalized<ValidityState>, public ScriptWrappable {
+ WTF_MAKE_NONCOPYABLE(ValidityState);
+ WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED;
public:
- static PassOwnPtr<ValidityState> create(FormAssociatedElement* control)
+ static PassOwnPtrWillBeRawPtr<ValidityState> create(FormAssociatedElement* control)
{
- return adoptPtr(new ValidityState(control));
+ return adoptPtrWillBeNoop(new ValidityState(control));
}
+ void trace(Visitor* visitor) { visitor->trace(m_control); }
+#if !ENABLE(OILPAN)
void ref() { m_control->ref(); }
void deref() { m_control->deref(); }
+#endif
String validationMessage() const;
@@ -57,12 +61,12 @@ public:
bool valid() const;
private:
- ValidityState(FormAssociatedElement* control) : m_control(control)
+ explicit ValidityState(FormAssociatedElement* control) : m_control(control)
{
ScriptWrappable::init(this);
}
- FormAssociatedElement* m_control;
+ RawPtrWillBeMember<FormAssociatedElement> m_control;
};
} // namespace WebCore
« no previous file with comments | « Source/core/html/HTMLObjectElement.cpp ('k') | Source/core/html/ValidityState.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698