| 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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 bool isTextNode() const { return getFlag(IsTextFlag); } | 237 bool isTextNode() const { return getFlag(IsTextFlag); } |
| 238 bool isHTMLElement() const { return getFlag(IsHTMLFlag); } | 238 bool isHTMLElement() const { return getFlag(IsHTMLFlag); } |
| 239 bool isSVGElement() const { return getFlag(IsSVGFlag); } | 239 bool isSVGElement() const { return getFlag(IsSVGFlag); } |
| 240 | 240 |
| 241 bool isPseudoElement() const { return getPseudoId() != PseudoIdNone; } | 241 bool isPseudoElement() const { return getPseudoId() != PseudoIdNone; } |
| 242 bool isBeforePseudoElement() const { return getPseudoId() == PseudoIdBefore;
} | 242 bool isBeforePseudoElement() const { return getPseudoId() == PseudoIdBefore;
} |
| 243 bool isAfterPseudoElement() const { return getPseudoId() == PseudoIdAfter; } | 243 bool isAfterPseudoElement() const { return getPseudoId() == PseudoIdAfter; } |
| 244 bool isFirstLetterPseudoElement() const { return getPseudoId() == PseudoIdFi
rstLetter; } | 244 bool isFirstLetterPseudoElement() const { return getPseudoId() == PseudoIdFi
rstLetter; } |
| 245 virtual PseudoId getPseudoId() const { return PseudoIdNone; } | 245 virtual PseudoId getPseudoId() const { return PseudoIdNone; } |
| 246 | 246 |
| 247 bool isCustomElement() const { return getFlag(CustomElementFlag); } | 247 bool isV0CustomElement() const { return getFlag(V0CustomElementFlag); } |
| 248 enum CustomElementState { | 248 enum V0CustomElementState { |
| 249 NotCustomElement = 0, | 249 V0NotCustomElement = 0, |
| 250 WaitingForUpgrade = 1 << 0, | 250 V0WaitingForUpgrade = 1 << 0, |
| 251 Upgraded = 1 << 1 | 251 V0Upgraded = 1 << 1 |
| 252 }; | 252 }; |
| 253 CustomElementState getCustomElementState() const | 253 V0CustomElementState getV0CustomElementState() const |
| 254 { | 254 { |
| 255 return isCustomElement() | 255 return isV0CustomElement() |
| 256 ? (getFlag(CustomElementUpgradedFlag) ? Upgraded : WaitingForUpgrade
) | 256 ? (getFlag(V0CustomElementUpgradedFlag) ? V0Upgraded : V0WaitingForU
pgrade) |
| 257 : NotCustomElement; | 257 : V0NotCustomElement; |
| 258 } | 258 } |
| 259 void setCustomElementState(CustomElementState newState); | 259 void setV0CustomElementState(V0CustomElementState newState); |
| 260 | 260 |
| 261 virtual bool isMediaControlElement() const { return false; } | 261 virtual bool isMediaControlElement() const { return false; } |
| 262 virtual bool isMediaControls() const { return false; } | 262 virtual bool isMediaControls() const { return false; } |
| 263 virtual bool isTextTrackContainer() const { return false; } | 263 virtual bool isTextTrackContainer() const { return false; } |
| 264 virtual bool isVTTElement() const { return false; } | 264 virtual bool isVTTElement() const { return false; } |
| 265 virtual bool isAttributeNode() const { return false; } | 265 virtual bool isAttributeNode() const { return false; } |
| 266 virtual bool isCharacterDataNode() const { return false; } | 266 virtual bool isCharacterDataNode() const { return false; } |
| 267 virtual bool isFrameOwnerElement() const { return false; } | 267 virtual bool isFrameOwnerElement() const { return false; } |
| 268 | 268 |
| 269 // StyledElements allow inline style (style="border: 1px"), presentational a
ttributes (ex. color), | 269 // StyledElements allow inline style (style="border: 1px"), presentational a
ttributes (ex. color), |
| (...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 706 | 706 |
| 707 // Flags related to recalcStyle. | 707 // Flags related to recalcStyle. |
| 708 SVGFilterNeedsLayerUpdateFlag = 1 << 13, | 708 SVGFilterNeedsLayerUpdateFlag = 1 << 13, |
| 709 HasCustomStyleCallbacksFlag = 1 << 14, | 709 HasCustomStyleCallbacksFlag = 1 << 14, |
| 710 ChildNeedsStyleInvalidationFlag = 1 << 15, | 710 ChildNeedsStyleInvalidationFlag = 1 << 15, |
| 711 NeedsStyleInvalidationFlag = 1 << 16, | 711 NeedsStyleInvalidationFlag = 1 << 16, |
| 712 ChildNeedsDistributionRecalcFlag = 1 << 17, | 712 ChildNeedsDistributionRecalcFlag = 1 << 17, |
| 713 ChildNeedsStyleRecalcFlag = 1 << 18, | 713 ChildNeedsStyleRecalcFlag = 1 << 18, |
| 714 StyleChangeMask = 1 << nodeStyleChangeShift | 1 << (nodeStyleChangeShift
+ 1), | 714 StyleChangeMask = 1 << nodeStyleChangeShift | 1 << (nodeStyleChangeShift
+ 1), |
| 715 | 715 |
| 716 CustomElementFlag = 1 << 21, | 716 V0CustomElementFlag = 1 << 21, |
| 717 CustomElementUpgradedFlag = 1 << 22, | 717 V0CustomElementUpgradedFlag = 1 << 22, |
| 718 | 718 |
| 719 HasNameOrIsEditingTextFlag = 1 << 23, | 719 HasNameOrIsEditingTextFlag = 1 << 23, |
| 720 HasWeakReferencesFlag = 1 << 24, | 720 HasWeakReferencesFlag = 1 << 24, |
| 721 V8CollectableDuringMinorGCFlag = 1 << 25, | 721 V8CollectableDuringMinorGCFlag = 1 << 25, |
| 722 HasEventTargetDataFlag = 1 << 26, | 722 HasEventTargetDataFlag = 1 << 26, |
| 723 AlreadySpellCheckedFlag = 1 << 27, | 723 AlreadySpellCheckedFlag = 1 << 27, |
| 724 | 724 |
| 725 DefaultNodeFlags = IsFinishedParsingChildrenFlag | NeedsReattachStyleCha
nge | 725 DefaultNodeFlags = IsFinishedParsingChildrenFlag | NeedsReattachStyleCha
nge |
| 726 }; | 726 }; |
| 727 | 727 |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 900 } // namespace blink | 900 } // namespace blink |
| 901 | 901 |
| 902 #ifndef NDEBUG | 902 #ifndef NDEBUG |
| 903 // Outside the WebCore namespace for ease of invocation from gdb. | 903 // Outside the WebCore namespace for ease of invocation from gdb. |
| 904 void showNode(const blink::Node*); | 904 void showNode(const blink::Node*); |
| 905 void showTree(const blink::Node*); | 905 void showTree(const blink::Node*); |
| 906 void showNodePath(const blink::Node*); | 906 void showNodePath(const blink::Node*); |
| 907 #endif | 907 #endif |
| 908 | 908 |
| 909 #endif // Node_h | 909 #endif // Node_h |
| OLD | NEW |