Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / core / html / HTMLFormElement.h
index 07f31ba..1772b64 100644 (file)
@@ -47,6 +47,7 @@ class HTMLImageElement;
 class HTMLInputElement;
 
 class HTMLFormElement FINAL : public HTMLElement {
+    DEFINE_WRAPPERTYPEINFO();
 public:
     static PassRefPtrWillBeRawPtr<HTMLFormElement> create(Document&);
     virtual ~HTMLFormElement();
@@ -56,7 +57,7 @@ public:
     void getNamedElements(const AtomicString&, WillBeHeapVector<RefPtrWillBeMember<Element> >&);
 
     unsigned length() const;
-    Element* item(unsigned index);
+    HTMLElement* item(unsigned index);
 
     String enctype() const { return m_attributes.encodingType(); }
     void setEnctype(const AtomicString&);
@@ -172,18 +173,18 @@ private:
 #if !ENABLE(OILPAN)
     WeakPtrFactory<HTMLFormElement> m_weakPtrFactory;
 #endif
-    bool m_associatedElementsAreDirty;
-    bool m_imageElementsAreDirty;
-    bool m_hasElementsAssociatedByParser;
-    bool m_didFinishParsingChildren;
+    bool m_associatedElementsAreDirty : 1;
+    bool m_imageElementsAreDirty : 1;
+    bool m_hasElementsAssociatedByParser : 1;
+    bool m_didFinishParsingChildren : 1;
 
-    bool m_wasUserSubmitted;
-    bool m_isSubmittingOrInUserJSSubmitEvent;
-    bool m_shouldSubmit;
+    bool m_wasUserSubmitted : 1;
+    bool m_isSubmittingOrInUserJSSubmitEvent : 1;
+    bool m_shouldSubmit : 1;
 
-    bool m_isInResetFunction;
+    bool m_isInResetFunction : 1;
 
-    bool m_wasDemoted;
+    bool m_wasDemoted : 1;
 
     OwnPtrWillBeMember<GenericEventQueue> m_pendingAutocompleteEventsQueue;
 };