| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 virtual InsertionNotificationRequest insertedInto(ContainerNode*) override; | 61 virtual InsertionNotificationRequest insertedInto(ContainerNode*) override; |
| 62 virtual void removedFrom(ContainerNode*) override; | 62 virtual void removedFrom(ContainerNode*) override; |
| 63 | 63 |
| 64 // Overridden to update the hover/active state of the corresponding control. | 64 // Overridden to update the hover/active state of the corresponding control. |
| 65 virtual void setActive(bool = true) override; | 65 virtual void setActive(bool = true) override; |
| 66 virtual void setHovered(bool = true) override; | 66 virtual void setHovered(bool = true) override; |
| 67 | 67 |
| 68 // Overridden to either click() or focus() the corresponding control. | 68 // Overridden to either click() or focus() the corresponding control. |
| 69 virtual void defaultEventHandler(Event*) override; | 69 virtual void defaultEventHandler(Event*) override; |
| 70 | 70 |
| 71 virtual void focus(bool restorePreviousSelection, FocusType) override; | 71 virtual void focus(bool restorePreviousSelection, WebFocusType) override; |
| 72 | 72 |
| 73 // FormAssociatedElement methods | 73 // FormAssociatedElement methods |
| 74 virtual bool isFormControlElement() const override { return false; } | 74 virtual bool isFormControlElement() const override { return false; } |
| 75 virtual bool isEnumeratable() const override { return false; } | 75 virtual bool isEnumeratable() const override { return false; } |
| 76 virtual bool isLabelElement() const override { return true; } | 76 virtual bool isLabelElement() const override { return true; } |
| 77 #if !ENABLE(OILPAN) | 77 #if !ENABLE(OILPAN) |
| 78 virtual void refFormAssociatedElement() override { ref(); } | 78 virtual void refFormAssociatedElement() override { ref(); } |
| 79 virtual void derefFormAssociatedElement() override { deref(); } | 79 virtual void derefFormAssociatedElement() override { deref(); } |
| 80 #endif | 80 #endif |
| 81 | 81 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 102 { | 102 { |
| 103 const HTMLLabelElement& labelElement = static_cast<const HTMLLabelElement&>(
element); | 103 const HTMLLabelElement& labelElement = static_cast<const HTMLLabelElement&>(
element); |
| 104 // FormAssociatedElement doesn't have hasTagName, hence check for assert. | 104 // FormAssociatedElement doesn't have hasTagName, hence check for assert. |
| 105 ASSERT_WITH_SECURITY_IMPLICATION(labelElement.hasTagName(HTMLNames::labelTag
)); | 105 ASSERT_WITH_SECURITY_IMPLICATION(labelElement.hasTagName(HTMLNames::labelTag
)); |
| 106 return labelElement; | 106 return labelElement; |
| 107 } | 107 } |
| 108 | 108 |
| 109 } // namespace blink | 109 } // namespace blink |
| 110 | 110 |
| 111 #endif // HTMLLabelElement_h | 111 #endif // HTMLLabelElement_h |
| OLD | NEW |