| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 return style.release(); | 162 return style.release(); |
| 163 } | 163 } |
| 164 | 164 |
| 165 RenderObject* TextFieldDecorationElement::createRenderer(RenderArena* arena, Ren
derStyle*) | 165 RenderObject* TextFieldDecorationElement::createRenderer(RenderArena* arena, Ren
derStyle*) |
| 166 { | 166 { |
| 167 RenderImage* image = new (arena) RenderImage(this); | 167 RenderImage* image = new (arena) RenderImage(this); |
| 168 image->setImageResource(RenderImageResource::create()); | 168 image->setImageResource(RenderImageResource::create()); |
| 169 return image; | 169 return image; |
| 170 } | 170 } |
| 171 | 171 |
| 172 void TextFieldDecorationElement::attach() | 172 void TextFieldDecorationElement::attach(const AttachContext& context) |
| 173 { | 173 { |
| 174 HTMLDivElement::attach(); | 174 HTMLDivElement::attach(context); |
| 175 updateImage(); | 175 updateImage(); |
| 176 } | 176 } |
| 177 | 177 |
| 178 void TextFieldDecorationElement::detach() | 178 void TextFieldDecorationElement::detach(const AttachContext& context) |
| 179 { | 179 { |
| 180 m_textFieldDecorator->willDetach(hostInput()); | 180 m_textFieldDecorator->willDetach(hostInput()); |
| 181 HTMLDivElement::detach(); | 181 HTMLDivElement::detach(context); |
| 182 } | 182 } |
| 183 | 183 |
| 184 bool TextFieldDecorationElement::isMouseFocusable() const | 184 bool TextFieldDecorationElement::isMouseFocusable() const |
| 185 { | 185 { |
| 186 return false; | 186 return false; |
| 187 } | 187 } |
| 188 | 188 |
| 189 void TextFieldDecorationElement::defaultEventHandler(Event* event) | 189 void TextFieldDecorationElement::defaultEventHandler(Event* event) |
| 190 { | 190 { |
| 191 RefPtr<HTMLInputElement> input(hostInput()); | 191 RefPtr<HTMLInputElement> input(hostInput()); |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 bool TextFieldDecorationElement::willRespondToMouseClickEvents() | 227 bool TextFieldDecorationElement::willRespondToMouseClickEvents() |
| 228 { | 228 { |
| 229 const HTMLInputElement* input = hostInput(); | 229 const HTMLInputElement* input = hostInput(); |
| 230 if (!input->isDisabledOrReadOnly()) | 230 if (!input->isDisabledOrReadOnly()) |
| 231 return true; | 231 return true; |
| 232 | 232 |
| 233 return HTMLDivElement::willRespondToMouseClickEvents(); | 233 return HTMLDivElement::willRespondToMouseClickEvents(); |
| 234 } | 234 } |
| 235 | 235 |
| 236 } // namespace WebCore | 236 } // namespace WebCore |
| OLD | NEW |