| 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 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 5 * Copyright (C) 2004-2011, 2014 Apple Inc. All rights reserved. | 5 * Copyright (C) 2004-2011, 2014 Apple Inc. All rights reserved. |
| 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
| 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 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 354 virtual void startLoadingDynamicSheet() { ASSERT_NOT_REACHED(); } | 354 virtual void startLoadingDynamicSheet() { ASSERT_NOT_REACHED(); } |
| 355 | 355 |
| 356 bool hasName() const { ASSERT(!isTextNode()); return getFlag(HasNameOrIsEdit
ingTextFlag); } | 356 bool hasName() const { ASSERT(!isTextNode()); return getFlag(HasNameOrIsEdit
ingTextFlag); } |
| 357 | 357 |
| 358 bool isUserActionElement() const { return getFlag(IsUserActionElementFlag);
} | 358 bool isUserActionElement() const { return getFlag(IsUserActionElementFlag);
} |
| 359 void setUserActionElement(bool flag) { setFlag(flag, IsUserActionElementFlag
); } | 359 void setUserActionElement(bool flag) { setFlag(flag, IsUserActionElementFlag
); } |
| 360 | 360 |
| 361 bool active() const { return isUserActionElement() && isUserActionElementAct
ive(); } | 361 bool active() const { return isUserActionElement() && isUserActionElementAct
ive(); } |
| 362 bool inActiveChain() const { return isUserActionElement() && isUserActionEle
mentInActiveChain(); } | 362 bool inActiveChain() const { return isUserActionElement() && isUserActionEle
mentInActiveChain(); } |
| 363 bool hovered() const { return isUserActionElement() && isUserActionElementHo
vered(); } | 363 bool hovered() const { return isUserActionElement() && isUserActionElementHo
vered(); } |
| 364 // Note: As a shadow host whose root with delegatesFocus=false may become fo
cused state when |
| 365 // an inner element gets focused, in that case more than one elements in a d
ocument can return |
| 366 // true for |focused()|. Use Element::isFocusedElementInDocument() or Docum
ent::focusedElement() |
| 367 // to check which element is exactly focused. |
| 364 bool focused() const { return isUserActionElement() && isUserActionElementFo
cused(); } | 368 bool focused() const { return isUserActionElement() && isUserActionElementFo
cused(); } |
| 365 | 369 |
| 366 bool needsAttach() const { return styleChangeType() == NeedsReattachStyleCha
nge; } | 370 bool needsAttach() const { return styleChangeType() == NeedsReattachStyleCha
nge; } |
| 367 bool needsStyleRecalc() const { return styleChangeType() != NoStyleChange; } | 371 bool needsStyleRecalc() const { return styleChangeType() != NoStyleChange; } |
| 368 StyleChangeType styleChangeType() const { return static_cast<StyleChangeType
>(m_nodeFlags & StyleChangeMask); } | 372 StyleChangeType styleChangeType() const { return static_cast<StyleChangeType
>(m_nodeFlags & StyleChangeMask); } |
| 369 bool childNeedsStyleRecalc() const { return getFlag(ChildNeedsStyleRecalcFla
g); } | 373 bool childNeedsStyleRecalc() const { return getFlag(ChildNeedsStyleRecalcFla
g); } |
| 370 bool isLink() const { return getFlag(IsLinkFlag); } | 374 bool isLink() const { return getFlag(IsLinkFlag); } |
| 371 bool isEditingText() const { ASSERT(isTextNode()); return getFlag(HasNameOrI
sEditingTextFlag); } | 375 bool isEditingText() const { ASSERT(isTextNode()); return getFlag(HasNameOrI
sEditingTextFlag); } |
| 372 | 376 |
| 373 void setHasName(bool f) { ASSERT(!isTextNode()); setFlag(f, HasNameOrIsEditi
ngTextFlag); } | 377 void setHasName(bool f) { ASSERT(!isTextNode()); setFlag(f, HasNameOrIsEditi
ngTextFlag); } |
| (...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 914 } // namespace blink | 918 } // namespace blink |
| 915 | 919 |
| 916 #ifndef NDEBUG | 920 #ifndef NDEBUG |
| 917 // Outside the WebCore namespace for ease of invocation from gdb. | 921 // Outside the WebCore namespace for ease of invocation from gdb. |
| 918 void showNode(const blink::Node*); | 922 void showNode(const blink::Node*); |
| 919 void showTree(const blink::Node*); | 923 void showTree(const blink::Node*); |
| 920 void showNodePath(const blink::Node*); | 924 void showNodePath(const blink::Node*); |
| 921 #endif | 925 #endif |
| 922 | 926 |
| 923 #endif // Node_h | 927 #endif // Node_h |
| OLD | NEW |