| 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) 2001 Peter Kelly (pmk@post.com) | 4 * (C) 2001 Peter Kelly (pmk@post.com) |
| 5 * (C) 2001 Dirk Mueller (mueller@kde.org) | 5 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 6 * Copyright (C) 2003-2011, 2013, 2014 Apple Inc. All rights reserved. | 6 * Copyright (C) 2003-2011, 2013, 2014 Apple Inc. All rights reserved. |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 HasPendingResources = 1 << 5, | 83 HasPendingResources = 1 << 5, |
| 84 | 84 |
| 85 NumberOfElementFlags = 6, // Required size of bitfield used to store the fla
gs. | 85 NumberOfElementFlags = 6, // Required size of bitfield used to store the fla
gs. |
| 86 }; | 86 }; |
| 87 | 87 |
| 88 enum class ShadowRootType; | 88 enum class ShadowRootType; |
| 89 | 89 |
| 90 enum class SelectionBehaviorOnFocus { | 90 enum class SelectionBehaviorOnFocus { |
| 91 Reset, | 91 Reset, |
| 92 Restore, | 92 Restore, |
| 93 None, |
| 93 }; | 94 }; |
| 94 | 95 |
| 95 struct FocusParams { | 96 struct FocusParams { |
| 96 STACK_ALLOCATED(); | 97 STACK_ALLOCATED(); |
| 97 | 98 |
| 98 FocusParams() {} | 99 FocusParams() {} |
| 99 FocusParams(SelectionBehaviorOnFocus selection, WebFocusType focusType, Inpu
tDeviceCapabilities* capabilities) | 100 FocusParams(SelectionBehaviorOnFocus selection, WebFocusType focusType, Inpu
tDeviceCapabilities* capabilities) |
| 100 : selectionBehavior(selection) | 101 : selectionBehavior(selection) |
| 101 , type(focusType) | 102 , type(focusType) |
| 102 , sourceCapabilities(capabilities) {} | 103 , sourceCapabilities(capabilities) {} |
| (...skipping 815 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 918 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) | 919 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) |
| 919 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 920 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
| 920 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document&
document) \ | 921 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document&
document) \ |
| 921 { \ | 922 { \ |
| 922 return adoptRefWillBeNoop(new T(tagName, document)); \ | 923 return adoptRefWillBeNoop(new T(tagName, document)); \ |
| 923 } | 924 } |
| 924 | 925 |
| 925 } // namespace | 926 } // namespace |
| 926 | 927 |
| 927 #endif // Element_h | 928 #endif // Element_h |
| OLD | NEW |