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