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 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
368 void markAncestorsWithChildNeedsDistributionRecalc(); | 368 void markAncestorsWithChildNeedsDistributionRecalc(); |
369 | 369 |
370 bool childNeedsStyleInvalidation() const { return getFlag(ChildNeedsStyleInv
alidationFlag); } | 370 bool childNeedsStyleInvalidation() const { return getFlag(ChildNeedsStyleInv
alidationFlag); } |
371 void setChildNeedsStyleInvalidation() { setFlag(ChildNeedsStyleInvalidation
Flag); } | 371 void setChildNeedsStyleInvalidation() { setFlag(ChildNeedsStyleInvalidation
Flag); } |
372 void clearChildNeedsStyleInvalidation() { clearFlag(ChildNeedsStyleInvalida
tionFlag); } | 372 void clearChildNeedsStyleInvalidation() { clearFlag(ChildNeedsStyleInvalida
tionFlag); } |
373 void markAncestorsWithChildNeedsStyleInvalidation(); | 373 void markAncestorsWithChildNeedsStyleInvalidation(); |
374 bool needsStyleInvalidation() const { return getFlag(NeedsStyleInvalidationF
lag); } | 374 bool needsStyleInvalidation() const { return getFlag(NeedsStyleInvalidationF
lag); } |
375 void clearNeedsStyleInvalidation() { clearFlag(NeedsStyleInvalidationFlag);
} | 375 void clearNeedsStyleInvalidation() { clearFlag(NeedsStyleInvalidationFlag);
} |
376 void setNeedsStyleInvalidation(); | 376 void setNeedsStyleInvalidation(); |
377 | 377 |
| 378 void updateAssignment(); |
378 void updateDistribution(); | 379 void updateDistribution(); |
379 | 380 |
380 bool svgFilterNeedsLayerUpdate() const { return getFlag(SVGFilterNeedsLayerU
pdateFlag); } | 381 bool svgFilterNeedsLayerUpdate() const { return getFlag(SVGFilterNeedsLayerU
pdateFlag); } |
381 void setSVGFilterNeedsLayerUpdate() { setFlag(SVGFilterNeedsLayerUpdateFlag)
; } | 382 void setSVGFilterNeedsLayerUpdate() { setFlag(SVGFilterNeedsLayerUpdateFlag)
; } |
382 void clearSVGFilterNeedsLayerUpdate() { clearFlag(SVGFilterNeedsLayerUpdateF
lag); } | 383 void clearSVGFilterNeedsLayerUpdate() { clearFlag(SVGFilterNeedsLayerUpdateF
lag); } |
383 | 384 |
384 void setIsLink(bool f); | 385 void setIsLink(bool f); |
385 | 386 |
386 bool hasEventTargetData() const { return getFlag(HasEventTargetDataFlag); } | 387 bool hasEventTargetData() const { return getFlag(HasEventTargetDataFlag); } |
387 void setHasEventTargetData(bool flag) { setFlag(flag, HasEventTargetDataFlag
); } | 388 void setHasEventTargetData(bool flag) { setFlag(flag, HasEventTargetDataFlag
); } |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
465 return getFlag(InDocumentFlag); | 466 return getFlag(InDocumentFlag); |
466 } | 467 } |
467 bool isInShadowTree() const { return getFlag(IsInShadowTreeFlag); } | 468 bool isInShadowTree() const { return getFlag(IsInShadowTreeFlag); } |
468 bool isInTreeScope() const { return getFlag(static_cast<NodeFlags>(InDocumen
tFlag | IsInShadowTreeFlag)); } | 469 bool isInTreeScope() const { return getFlag(static_cast<NodeFlags>(InDocumen
tFlag | IsInShadowTreeFlag)); } |
469 | 470 |
470 ElementShadow* parentElementShadow() const; | 471 ElementShadow* parentElementShadow() const; |
471 bool isInV1ShadowTree() const; | 472 bool isInV1ShadowTree() const; |
472 bool isInV0ShadowTree() const; | 473 bool isInV0ShadowTree() const; |
473 bool isChildOfV1ShadowHost() const; | 474 bool isChildOfV1ShadowHost() const; |
474 bool isChildOfV0ShadowHost() const; | 475 bool isChildOfV0ShadowHost() const; |
| 476 bool isChildOfSlot() const; |
475 bool isSlotAssignable() const { return isTextNode() || isElementNode(); } | 477 bool isSlotAssignable() const { return isTextNode() || isElementNode(); } |
476 | 478 |
477 bool isDocumentTypeNode() const { return getNodeType() == DOCUMENT_TYPE_NODE
; } | 479 bool isDocumentTypeNode() const { return getNodeType() == DOCUMENT_TYPE_NODE
; } |
478 virtual bool childTypeAllowed(NodeType) const { return false; } | 480 virtual bool childTypeAllowed(NodeType) const { return false; } |
479 unsigned countChildren() const; | 481 unsigned countChildren() const; |
480 | 482 |
481 bool isDescendantOf(const Node*) const; | 483 bool isDescendantOf(const Node*) const; |
482 bool contains(const Node*) const; | 484 bool contains(const Node*) const; |
483 bool isShadowIncludingInclusiveAncestorOf(const Node*) const; | 485 bool isShadowIncludingInclusiveAncestorOf(const Node*) const; |
484 bool containsIncludingHostElements(const Node&) const; | 486 bool containsIncludingHostElements(const Node&) const; |
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
774 | 776 |
775 enum EditableLevel { Editable, RichlyEditable }; | 777 enum EditableLevel { Editable, RichlyEditable }; |
776 bool hasEditableStyle(EditableLevel, UserSelectAllTreatment = UserSelectAllI
sAlwaysNonEditable) const; | 778 bool hasEditableStyle(EditableLevel, UserSelectAllTreatment = UserSelectAllI
sAlwaysNonEditable) const; |
777 bool isEditableToAccessibility(EditableLevel) const; | 779 bool isEditableToAccessibility(EditableLevel) const; |
778 | 780 |
779 bool isUserActionElementActive() const; | 781 bool isUserActionElementActive() const; |
780 bool isUserActionElementInActiveChain() const; | 782 bool isUserActionElementInActiveChain() const; |
781 bool isUserActionElementHovered() const; | 783 bool isUserActionElementHovered() const; |
782 bool isUserActionElementFocused() const; | 784 bool isUserActionElementFocused() const; |
783 | 785 |
| 786 void recalcAssignment(); |
784 void recalcDistribution(); | 787 void recalcDistribution(); |
785 | 788 |
786 void setStyleChange(StyleChangeType); | 789 void setStyleChange(StyleChangeType); |
787 | 790 |
788 virtual ComputedStyle* nonLayoutObjectComputedStyle() const { return nullptr
; } | 791 virtual ComputedStyle* nonLayoutObjectComputedStyle() const { return nullptr
; } |
789 | 792 |
790 virtual const ComputedStyle* virtualEnsureComputedStyle(PseudoId = PseudoIdN
one); | 793 virtual const ComputedStyle* virtualEnsureComputedStyle(PseudoId = PseudoIdN
one); |
791 | 794 |
792 void trackForDebugging(); | 795 void trackForDebugging(); |
793 | 796 |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
889 } // namespace blink | 892 } // namespace blink |
890 | 893 |
891 #ifndef NDEBUG | 894 #ifndef NDEBUG |
892 // Outside the WebCore namespace for ease of invocation from gdb. | 895 // Outside the WebCore namespace for ease of invocation from gdb. |
893 void showNode(const blink::Node*); | 896 void showNode(const blink::Node*); |
894 void showTree(const blink::Node*); | 897 void showTree(const blink::Node*); |
895 void showNodePath(const blink::Node*); | 898 void showNodePath(const blink::Node*); |
896 #endif | 899 #endif |
897 | 900 |
898 #endif // Node_h | 901 #endif // Node_h |
OLD | NEW |