| 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 21 matching lines...) Expand all Loading... |
| 32 #include "core/html/shadow/PasswordGeneratorButtonElement.h" | 32 #include "core/html/shadow/PasswordGeneratorButtonElement.h" |
| 33 | 33 |
| 34 #include "core/events/Event.h" | 34 #include "core/events/Event.h" |
| 35 #include "core/dom/NodeRenderStyle.h" | 35 #include "core/dom/NodeRenderStyle.h" |
| 36 #include "core/fetch/ImageResource.h" | 36 #include "core/fetch/ImageResource.h" |
| 37 #include "core/html/HTMLInputElement.h" | 37 #include "core/html/HTMLInputElement.h" |
| 38 #include "core/html/shadow/ShadowElementNames.h" | 38 #include "core/html/shadow/ShadowElementNames.h" |
| 39 #include "core/page/Chrome.h" | 39 #include "core/page/Chrome.h" |
| 40 #include "core/page/ChromeClient.h" | 40 #include "core/page/ChromeClient.h" |
| 41 #include "core/page/Page.h" | 41 #include "core/page/Page.h" |
| 42 #include "core/platform/graphics/Image.h" | |
| 43 #include "core/rendering/RenderImage.h" | 42 #include "core/rendering/RenderImage.h" |
| 43 #include "platform/graphics/Image.h" |
| 44 | 44 |
| 45 namespace WebCore { | 45 namespace WebCore { |
| 46 | 46 |
| 47 using namespace HTMLNames; | 47 using namespace HTMLNames; |
| 48 | 48 |
| 49 PasswordGeneratorButtonElement::PasswordGeneratorButtonElement(Document& documen
t) | 49 PasswordGeneratorButtonElement::PasswordGeneratorButtonElement(Document& documen
t) |
| 50 : HTMLDivElement(document) | 50 : HTMLDivElement(document) |
| 51 , m_isInHoverState(false) | 51 , m_isInHoverState(false) |
| 52 { | 52 { |
| 53 setHasCustomStyleCallbacks(); | 53 setHasCustomStyleCallbacks(); |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 bool PasswordGeneratorButtonElement::willRespondToMouseClickEvents() | 163 bool PasswordGeneratorButtonElement::willRespondToMouseClickEvents() |
| 164 { | 164 { |
| 165 const HTMLInputElement* input = hostInput(); | 165 const HTMLInputElement* input = hostInput(); |
| 166 if (!input->isDisabledOrReadOnly()) | 166 if (!input->isDisabledOrReadOnly()) |
| 167 return true; | 167 return true; |
| 168 | 168 |
| 169 return HTMLDivElement::willRespondToMouseClickEvents(); | 169 return HTMLDivElement::willRespondToMouseClickEvents(); |
| 170 } | 170 } |
| 171 | 171 |
| 172 } // namespace WebCore | 172 } // namespace WebCore |
| OLD | NEW |