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

Side by Side Diff: Source/WebCore/html/FormAssociatedElement.h

Issue 6476015: Merge 77114 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/648/
Patch Set: Created 9 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 56
57 virtual void formDestroyed() { m_form = 0; } 57 virtual void formDestroyed() { m_form = 0; }
58 58
59 void resetFormOwner(HTMLFormElement*); 59 void resetFormOwner(HTMLFormElement*);
60 60
61 protected: 61 protected:
62 FormAssociatedElement(HTMLFormElement*); 62 FormAssociatedElement(HTMLFormElement*);
63 63
64 void insertedIntoTree(); 64 void insertedIntoTree();
65 void removedFromTree(); 65 void removedFromTree();
66 66 void insertedIntoDocument();
67 void removedFromDocument();
67 void willMoveToNewOwnerDocument(); 68 void willMoveToNewOwnerDocument();
68 69
69 void setForm(HTMLFormElement* form) { m_form = form; } 70 void setForm(HTMLFormElement* form) { m_form = form; }
70 void removeFromForm(); 71 void removeFromForm();
71 void formAttributeChanged(); 72 void formAttributeChanged();
72 73
73 private: 74 private:
74 virtual const AtomicString& formControlName() const = 0; 75 virtual const AtomicString& formControlName() const = 0;
75 76
76 virtual void refFormAssociatedElement() = 0; 77 virtual void refFormAssociatedElement() = 0;
77 virtual void derefFormAssociatedElement() = 0; 78 virtual void derefFormAssociatedElement() = 0;
78 79
79 HTMLFormElement* m_form; 80 HTMLFormElement* m_form;
80 OwnPtr<ValidityState> m_validityState; 81 OwnPtr<ValidityState> m_validityState;
81 }; 82 };
82 83
83 HTMLElement* toHTMLElement(FormAssociatedElement*); 84 HTMLElement* toHTMLElement(FormAssociatedElement*);
84 const HTMLElement* toHTMLElement(const FormAssociatedElement*); 85 const HTMLElement* toHTMLElement(const FormAssociatedElement*);
85 86
86 } // namespace 87 } // namespace
87 88
88 #endif // FormAssociatedElement_h 89 #endif // FormAssociatedElement_h
OLDNEW
« no previous file with comments | « LayoutTests/fast/forms/dangling-form-element-crash-expected.txt ('k') | Source/WebCore/html/FormAssociatedElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698