OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
3 * Copyright (C) 2011 Apple Inc. All rights reserved. | 3 * Copyright (C) 2011 Apple Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 { | 44 { |
45 return false; | 45 return false; |
46 } | 46 } |
47 | 47 |
48 bool BaseButtonInputType::appendFormData(FormDataList&, bool) const | 48 bool BaseButtonInputType::appendFormData(FormDataList&, bool) const |
49 { | 49 { |
50 // Buttons except overridden types are never successful. | 50 // Buttons except overridden types are never successful. |
51 return false; | 51 return false; |
52 } | 52 } |
53 | 53 |
54 RenderObject* BaseButtonInputType::createRenderer(RenderArena* arena, RenderStyl
e*) const | 54 RenderObject* BaseButtonInputType::createRenderer(RenderStyle*) const |
55 { | 55 { |
56 return new (arena) RenderButton(element()); | 56 return new RenderButton(element()); |
57 } | 57 } |
58 | 58 |
59 bool BaseButtonInputType::storesValueSeparateFromAttribute() | 59 bool BaseButtonInputType::storesValueSeparateFromAttribute() |
60 { | 60 { |
61 return false; | 61 return false; |
62 } | 62 } |
63 | 63 |
64 void BaseButtonInputType::setValue(const String& sanitizedValue, bool, TextField
EventBehavior) | 64 void BaseButtonInputType::setValue(const String& sanitizedValue, bool, TextField
EventBehavior) |
65 { | 65 { |
66 element()->setAttribute(valueAttr, sanitizedValue); | 66 element()->setAttribute(valueAttr, sanitizedValue); |
67 } | 67 } |
68 | 68 |
69 } // namespace WebCore | 69 } // namespace WebCore |
OLD | NEW |