| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 73     void decorate(HTMLInputElement*, bool visible); | 73     void decorate(HTMLInputElement*, bool visible); | 
| 74 | 74 | 
| 75     virtual bool willRespondToMouseMoveEvents() OVERRIDE; | 75     virtual bool willRespondToMouseMoveEvents() OVERRIDE; | 
| 76     virtual bool willRespondToMouseClickEvents() OVERRIDE; | 76     virtual bool willRespondToMouseClickEvents() OVERRIDE; | 
| 77 | 77 | 
| 78 private: | 78 private: | 
| 79     TextFieldDecorationElement(Document*, TextFieldDecorator*); | 79     TextFieldDecorationElement(Document*, TextFieldDecorator*); | 
| 80     virtual bool isTextFieldDecoration() const OVERRIDE; | 80     virtual bool isTextFieldDecoration() const OVERRIDE; | 
| 81     virtual PassRefPtr<RenderStyle> customStyleForRenderer() OVERRIDE; | 81     virtual PassRefPtr<RenderStyle> customStyleForRenderer() OVERRIDE; | 
| 82     virtual RenderObject* createRenderer(RenderArena*, RenderStyle*) OVERRIDE; | 82     virtual RenderObject* createRenderer(RenderArena*, RenderStyle*) OVERRIDE; | 
| 83     virtual void attach() OVERRIDE; | 83     virtual void attach(const AttachContext& = AttachContext()) OVERRIDE; | 
| 84     virtual void detach() OVERRIDE; | 84     virtual void detach(const AttachContext& = AttachContext()) OVERRIDE; | 
| 85     virtual bool isMouseFocusable() const OVERRIDE; | 85     virtual bool isMouseFocusable() const OVERRIDE; | 
| 86     virtual void defaultEventHandler(Event*) OVERRIDE; | 86     virtual void defaultEventHandler(Event*) OVERRIDE; | 
| 87 | 87 | 
| 88     HTMLInputElement* hostInput(); | 88     HTMLInputElement* hostInput(); | 
| 89     void updateImage(); | 89     void updateImage(); | 
| 90 | 90 | 
| 91     TextFieldDecorator* m_textFieldDecorator; | 91     TextFieldDecorator* m_textFieldDecorator; | 
| 92     bool m_isInHoverState; | 92     bool m_isInHoverState; | 
| 93 }; | 93 }; | 
| 94 | 94 | 
| 95 inline TextFieldDecorationElement* toTextFieldDecorationElement(Node* node) | 95 inline TextFieldDecorationElement* toTextFieldDecorationElement(Node* node) | 
| 96 { | 96 { | 
| 97     ASSERT(node); | 97     ASSERT(node); | 
| 98     ASSERT_WITH_SECURITY_IMPLICATION(node->isElementNode()); | 98     ASSERT_WITH_SECURITY_IMPLICATION(node->isElementNode()); | 
| 99     ASSERT_WITH_SECURITY_IMPLICATION(toElement(node)->isTextFieldDecoration()); | 99     ASSERT_WITH_SECURITY_IMPLICATION(toElement(node)->isTextFieldDecoration()); | 
| 100     return static_cast<TextFieldDecorationElement*>(node); | 100     return static_cast<TextFieldDecorationElement*>(node); | 
| 101 } | 101 } | 
| 102 | 102 | 
| 103 } | 103 } | 
| 104 #endif | 104 #endif | 
| OLD | NEW | 
|---|