OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2000 Dirk Mueller (mueller@kde.org) | 4 * (C) 2000 Dirk Mueller (mueller@kde.org) |
5 * Copyright (C) 2004, 2005, 2006, 2007, 2010 Apple Inc. All rights reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2010 Apple Inc. All rights reserved. |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 InsertionNotificationRequest insertedInto(ContainerNode*) override; | 62 InsertionNotificationRequest insertedInto(ContainerNode*) override; |
63 void removedFrom(ContainerNode*) override; | 63 void removedFrom(ContainerNode*) override; |
64 | 64 |
65 // Overridden to update the hover/active state of the corresponding control. | 65 // Overridden to update the hover/active state of the corresponding control. |
66 void setActive(bool = true) override; | 66 void setActive(bool = true) override; |
67 void setHovered(bool = true) override; | 67 void setHovered(bool = true) override; |
68 | 68 |
69 // Overridden to either click() or focus() the corresponding control. | 69 // Overridden to either click() or focus() the corresponding control. |
70 void defaultEventHandler(Event*) override; | 70 void defaultEventHandler(Event*) override; |
71 | 71 |
72 void focus(bool restorePreviousSelection, WebFocusType, InputDeviceCapabilit
ies* sourceCapabilities) override; | 72 void focus(const FocusParams&) override; |
73 | 73 |
74 // FormAssociatedElement methods | 74 // FormAssociatedElement methods |
75 bool isFormControlElement() const override { return false; } | 75 bool isFormControlElement() const override { return false; } |
76 bool isEnumeratable() const override { return false; } | 76 bool isEnumeratable() const override { return false; } |
77 bool isLabelElement() const override { return true; } | 77 bool isLabelElement() const override { return true; } |
78 #if !ENABLE(OILPAN) | 78 #if !ENABLE(OILPAN) |
79 void refFormAssociatedElement() override { ref(); } | 79 void refFormAssociatedElement() override { ref(); } |
80 void derefFormAssociatedElement() override { deref(); } | 80 void derefFormAssociatedElement() override { deref(); } |
81 #endif | 81 #endif |
82 | 82 |
(...skipping 20 matching lines...) Expand all Loading... |
103 { | 103 { |
104 const HTMLLabelElement& labelElement = static_cast<const HTMLLabelElement&>(
element); | 104 const HTMLLabelElement& labelElement = static_cast<const HTMLLabelElement&>(
element); |
105 // FormAssociatedElement doesn't have hasTagName, hence check for assert. | 105 // FormAssociatedElement doesn't have hasTagName, hence check for assert. |
106 ASSERT_WITH_SECURITY_IMPLICATION(labelElement.hasTagName(HTMLNames::labelTag
)); | 106 ASSERT_WITH_SECURITY_IMPLICATION(labelElement.hasTagName(HTMLNames::labelTag
)); |
107 return labelElement; | 107 return labelElement; |
108 } | 108 } |
109 | 109 |
110 } // namespace blink | 110 } // namespace blink |
111 | 111 |
112 #endif // HTMLLabelElement_h | 112 #endif // HTMLLabelElement_h |
OLD | NEW |