| 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 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 353 virtual void startLoadingDynamicSheet() { ASSERT_NOT_REACHED(); } | 353 virtual void startLoadingDynamicSheet() { ASSERT_NOT_REACHED(); } |
| 354 | 354 |
| 355 bool hasName() const { ASSERT(!isTextNode()); return getFlag(HasNameOrIsEdit
ingTextFlag); } | 355 bool hasName() const { ASSERT(!isTextNode()); return getFlag(HasNameOrIsEdit
ingTextFlag); } |
| 356 | 356 |
| 357 bool isUserActionElement() const { return getFlag(IsUserActionElementFlag);
} | 357 bool isUserActionElement() const { return getFlag(IsUserActionElementFlag);
} |
| 358 void setUserActionElement(bool flag) { setFlag(flag, IsUserActionElementFlag
); } | 358 void setUserActionElement(bool flag) { setFlag(flag, IsUserActionElementFlag
); } |
| 359 | 359 |
| 360 bool active() const { return isUserActionElement() && isUserActionElementAct
ive(); } | 360 bool active() const { return isUserActionElement() && isUserActionElementAct
ive(); } |
| 361 bool inActiveChain() const { return isUserActionElement() && isUserActionEle
mentInActiveChain(); } | 361 bool inActiveChain() const { return isUserActionElement() && isUserActionEle
mentInActiveChain(); } |
| 362 bool hovered() const { return isUserActionElement() && isUserActionElementHo
vered(); } | 362 bool hovered() const { return isUserActionElement() && isUserActionElementHo
vered(); } |
| 363 // Note: As a shadow host whose tabStop=false may become focused state when
an inner element | |
| 364 // gets focused in its shadow, in that case more than one elements in a docu
ment can return | |
| 365 // true for |focused()|. Use Element::isFocusedElementInDocument() or Docum
ent::focusedElement() | |
| 366 // to check which element is exactly focused. | |
| 367 bool focused() const { return isUserActionElement() && isUserActionElementFo
cused(); } | 363 bool focused() const { return isUserActionElement() && isUserActionElementFo
cused(); } |
| 368 | 364 |
| 369 bool needsAttach() const { return styleChangeType() == NeedsReattachStyleCha
nge; } | 365 bool needsAttach() const { return styleChangeType() == NeedsReattachStyleCha
nge; } |
| 370 bool needsStyleRecalc() const { return styleChangeType() != NoStyleChange; } | 366 bool needsStyleRecalc() const { return styleChangeType() != NoStyleChange; } |
| 371 StyleChangeType styleChangeType() const { return static_cast<StyleChangeType
>(m_nodeFlags & StyleChangeMask); } | 367 StyleChangeType styleChangeType() const { return static_cast<StyleChangeType
>(m_nodeFlags & StyleChangeMask); } |
| 372 bool childNeedsStyleRecalc() const { return getFlag(ChildNeedsStyleRecalcFla
g); } | 368 bool childNeedsStyleRecalc() const { return getFlag(ChildNeedsStyleRecalcFla
g); } |
| 373 bool isLink() const { return getFlag(IsLinkFlag); } | 369 bool isLink() const { return getFlag(IsLinkFlag); } |
| 374 bool isEditingText() const { ASSERT(isTextNode()); return getFlag(HasNameOrI
sEditingTextFlag); } | 370 bool isEditingText() const { ASSERT(isTextNode()); return getFlag(HasNameOrI
sEditingTextFlag); } |
| 375 | 371 |
| 376 void setHasName(bool f) { ASSERT(!isTextNode()); setFlag(f, HasNameOrIsEditi
ngTextFlag); } | 372 void setHasName(bool f) { ASSERT(!isTextNode()); setFlag(f, HasNameOrIsEditi
ngTextFlag); } |
| (...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 919 } // namespace blink | 915 } // namespace blink |
| 920 | 916 |
| 921 #ifndef NDEBUG | 917 #ifndef NDEBUG |
| 922 // Outside the WebCore namespace for ease of invocation from gdb. | 918 // Outside the WebCore namespace for ease of invocation from gdb. |
| 923 void showNode(const blink::Node*); | 919 void showNode(const blink::Node*); |
| 924 void showTree(const blink::Node*); | 920 void showTree(const blink::Node*); |
| 925 void showNodePath(const blink::Node*); | 921 void showNodePath(const blink::Node*); |
| 926 #endif | 922 #endif |
| 927 | 923 |
| 928 #endif // Node_h | 924 #endif // Node_h |
| OLD | NEW |