OLD | NEW |
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 22 matching lines...) Expand all Loading... |
33 | 33 |
34 #include "core/dom/NodeRenderStyle.h" | 34 #include "core/dom/NodeRenderStyle.h" |
35 #include "core/html/HTMLFormControlElement.h" | 35 #include "core/html/HTMLFormControlElement.h" |
36 #include "core/html/HTMLFormElement.h" | 36 #include "core/html/HTMLFormElement.h" |
37 #include "core/html/HTMLInputElement.h" | 37 #include "core/html/HTMLInputElement.h" |
38 #include "core/html/HTMLSelectElement.h" | 38 #include "core/html/HTMLSelectElement.h" |
39 #include "core/html/HTMLTextAreaElement.h" | 39 #include "core/html/HTMLTextAreaElement.h" |
40 | 40 |
41 #include "wtf/PassRefPtr.h" | 41 #include "wtf/PassRefPtr.h" |
42 | 42 |
43 using namespace blink; | |
44 | |
45 namespace blink { | 43 namespace blink { |
46 | 44 |
47 bool WebFormControlElement::isEnabled() const | 45 bool WebFormControlElement::isEnabled() const |
48 { | 46 { |
49 return !constUnwrap<HTMLFormControlElement>()->isDisabledFormControl(); | 47 return !constUnwrap<HTMLFormControlElement>()->isDisabledFormControl(); |
50 } | 48 } |
51 | 49 |
52 bool WebFormControlElement::isReadOnly() const | 50 bool WebFormControlElement::isReadOnly() const |
53 { | 51 { |
54 return constUnwrap<HTMLFormControlElement>()->isReadOnly(); | 52 return constUnwrap<HTMLFormControlElement>()->isReadOnly(); |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 m_private = elem; | 195 m_private = elem; |
198 return *this; | 196 return *this; |
199 } | 197 } |
200 | 198 |
201 WebFormControlElement::operator PassRefPtrWillBeRawPtr<HTMLFormControlElement>()
const | 199 WebFormControlElement::operator PassRefPtrWillBeRawPtr<HTMLFormControlElement>()
const |
202 { | 200 { |
203 return toHTMLFormControlElement(m_private.get()); | 201 return toHTMLFormControlElement(m_private.get()); |
204 } | 202 } |
205 | 203 |
206 } // namespace blink | 204 } // namespace blink |
OLD | NEW |