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

Unified Diff: Source/core/html/HTMLFormControlElement.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/FormAssociatedElement.cpp ('k') | Source/core/html/HTMLFormControlElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLFormControlElement.h
diff --git a/Source/core/html/HTMLFormControlElement.h b/Source/core/html/HTMLFormControlElement.h
index 0c50a8c005164e8cbf5e6c0a362a8a6c624cbac4..dd8cb43ab6e340f689a80a7a27c62dc8c9a4e794 100644
--- a/Source/core/html/HTMLFormControlElement.h
+++ b/Source/core/html/HTMLFormControlElement.h
@@ -40,8 +40,11 @@ class ValidityState;
// and form-associated element implementations should use HTMLFormControlElement
// unless there is a special reason.
class HTMLFormControlElement : public LabelableElement, public FormAssociatedElement {
+ WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(HTMLFormControlElement);
+
public:
virtual ~HTMLFormControlElement();
+ virtual void trace(Visitor*) OVERRIDE;
String formEnctype() const;
void setFormEnctype(const AtomicString&);
@@ -87,7 +90,7 @@ public:
virtual bool willValidate() const OVERRIDE;
void updateVisibleValidationMessage();
void hideVisibleValidationMessage();
- bool checkValidity(Vector<RefPtr<FormAssociatedElement> >* unhandledInvalidControls = 0);
+ bool checkValidity(WillBeHeapVector<RefPtrWillBeMember<FormAssociatedElement> >* unhandledInvalidControls = 0);
// This must be called when a validation constraint or control value is changed.
void setNeedsValidityCheck();
virtual void setCustomValidity(const String&) OVERRIDE FINAL;
@@ -138,8 +141,10 @@ protected:
virtual bool supportsAutofocus() const;
private:
+#if !ENABLE(OILPAN)
virtual void refFormAssociatedElement() OVERRIDE FINAL { ref(); }
virtual void derefFormAssociatedElement() OVERRIDE FINAL { deref(); }
+#endif
virtual bool isFormControlElement() const OVERRIDE FINAL { return true; }
virtual bool alwaysCreateUserAgentShadowRoot() const OVERRIDE { return true; }
« no previous file with comments | « Source/core/html/FormAssociatedElement.cpp ('k') | Source/core/html/HTMLFormControlElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698