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

Side by Side Diff: Source/core/html/HTMLOutputElement.h

Issue 23886003: Have HTMLElements / SVGElements constructors take a Document reference in argument (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Another Android build fix Created 7 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/html/HTMLOptionElement.cpp ('k') | Source/core/html/HTMLOutputElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2010 Google Inc. All rights reserved. 2 * Copyright (c) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 20 matching lines...) Expand all
31 #ifndef HTMLOutputElement_h 31 #ifndef HTMLOutputElement_h
32 #define HTMLOutputElement_h 32 #define HTMLOutputElement_h
33 33
34 #include "core/html/DOMSettableTokenList.h" 34 #include "core/html/DOMSettableTokenList.h"
35 #include "core/html/HTMLFormControlElement.h" 35 #include "core/html/HTMLFormControlElement.h"
36 36
37 namespace WebCore { 37 namespace WebCore {
38 38
39 class HTMLOutputElement FINAL : public HTMLFormControlElement { 39 class HTMLOutputElement FINAL : public HTMLFormControlElement {
40 public: 40 public:
41 static PassRefPtr<HTMLOutputElement> create(const QualifiedName&, Document*, HTMLFormElement*); 41 static PassRefPtr<HTMLOutputElement> create(const QualifiedName&, Document&, HTMLFormElement*);
42 42
43 virtual bool willValidate() const { return false; } 43 virtual bool willValidate() const { return false; }
44 44
45 String value() const; 45 String value() const;
46 void setValue(const String&); 46 void setValue(const String&);
47 String defaultValue() const; 47 String defaultValue() const;
48 void setDefaultValue(const String&); 48 void setDefaultValue(const String&);
49 void setFor(const String&); 49 void setFor(const String&);
50 DOMSettableTokenList* htmlFor() const; 50 DOMSettableTokenList* htmlFor() const;
51 51
52 virtual bool canContainRangeEndPoint() const { return false; } 52 virtual bool canContainRangeEndPoint() const { return false; }
53 53
54 private: 54 private:
55 HTMLOutputElement(const QualifiedName&, Document*, HTMLFormElement*); 55 HTMLOutputElement(const QualifiedName&, Document&, HTMLFormElement*);
56 56
57 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE; 57 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE;
58 virtual const AtomicString& formControlType() const; 58 virtual const AtomicString& formControlType() const;
59 virtual bool isEnumeratable() const { return true; } 59 virtual bool isEnumeratable() const { return true; }
60 virtual bool supportLabels() const OVERRIDE { return true; } 60 virtual bool supportLabels() const OVERRIDE { return true; }
61 virtual bool supportsFocus() const; 61 virtual bool supportsFocus() const;
62 virtual void childrenChanged(bool createdByParser = false, Node* beforeChang e = 0, Node* afterChange = 0, int childCountDelta = 0); 62 virtual void childrenChanged(bool createdByParser = false, Node* beforeChang e = 0, Node* afterChange = 0, int childCountDelta = 0);
63 virtual void reset(); 63 virtual void reset();
64 64
65 void setTextContentInternal(const String&); 65 void setTextContentInternal(const String&);
66 66
67 bool m_isDefaultValueMode; 67 bool m_isDefaultValueMode;
68 bool m_isSetTextContentInProgress; 68 bool m_isSetTextContentInProgress;
69 String m_defaultValue; 69 String m_defaultValue;
70 RefPtr<DOMSettableTokenList> m_tokens; 70 RefPtr<DOMSettableTokenList> m_tokens;
71 }; 71 };
72 72
73 } // namespace 73 } // namespace
74 74
75 #endif 75 #endif
OLDNEW
« no previous file with comments | « Source/core/html/HTMLOptionElement.cpp ('k') | Source/core/html/HTMLOutputElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698