| 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 |
| 11 * version 2 of the License, or (at your option) any later version. | 11 * version 2 of the License, or (at your option) any later version. |
| 12 * | 12 * |
| 13 * This library is distributed in the hope that it will be useful, | 13 * This library is distributed in the hope that it will be useful, |
| 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 16 * Library General Public License for more details. | 16 * Library General Public License for more details. |
| 17 * | 17 * |
| 18 * You should have received a copy of the GNU Library General Public License | 18 * You should have received a copy of the GNU Library General Public License |
| 19 * along with this library; see the file COPYING.LIB. If not, write to | 19 * along with this library; see the file COPYING.LIB. If not, write to |
| 20 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 20 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 21 * Boston, MA 02110-1301, USA. | 21 * Boston, MA 02110-1301, USA. |
| 22 * | 22 * |
| 23 */ | 23 */ |
| 24 | 24 |
| 25 #ifndef SKY_ENGINE_CORE_DOM_NODE_H_ | 25 #ifndef SKY_ENGINE_CORE_DOM_NODE_H_ |
| 26 #define SKY_ENGINE_CORE_DOM_NODE_H_ | 26 #define SKY_ENGINE_CORE_DOM_NODE_H_ |
| 27 | 27 |
| 28 #include "sky/engine/bindings/core/v8/ExceptionStatePlaceholder.h" | 28 #include "sky/engine/bindings2/exception_state_placeholder.h" |
| 29 #include "sky/engine/core/dom/MutationObserver.h" | 29 #include "sky/engine/core/dom/MutationObserver.h" |
| 30 #include "sky/engine/core/dom/TreeScope.h" | 30 #include "sky/engine/core/dom/TreeScope.h" |
| 31 #include "sky/engine/core/dom/TreeShared.h" | 31 #include "sky/engine/core/dom/TreeShared.h" |
| 32 #include "sky/engine/core/editing/EditingBoundary.h" | 32 #include "sky/engine/core/editing/EditingBoundary.h" |
| 33 #include "sky/engine/core/events/EventTarget.h" | 33 #include "sky/engine/core/events/EventTarget.h" |
| 34 #include "sky/engine/core/inspector/InspectorCounters.h" | 34 #include "sky/engine/core/inspector/InspectorCounters.h" |
| 35 #include "sky/engine/core/rendering/style/RenderStyleConstants.h" | 35 #include "sky/engine/core/rendering/style/RenderStyleConstants.h" |
| 36 #include "sky/engine/platform/geometry/LayoutRect.h" | 36 #include "sky/engine/platform/geometry/LayoutRect.h" |
| 37 #include "sky/engine/platform/heap/Handle.h" | 37 #include "sky/engine/platform/heap/Handle.h" |
| 38 #include "sky/engine/platform/weborigin/KURLHash.h" | 38 #include "sky/engine/platform/weborigin/KURLHash.h" |
| (...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 434 #endif | 434 #endif |
| 435 | 435 |
| 436 enum ShadowTreesTreatment { | 436 enum ShadowTreesTreatment { |
| 437 TreatShadowTreesAsDisconnected, | 437 TreatShadowTreesAsDisconnected, |
| 438 TreatShadowTreesAsComposed | 438 TreatShadowTreesAsComposed |
| 439 }; | 439 }; |
| 440 | 440 |
| 441 unsigned short compareDocumentPosition(const Node*, ShadowTreesTreatment = T
reatShadowTreesAsDisconnected) const; | 441 unsigned short compareDocumentPosition(const Node*, ShadowTreesTreatment = T
reatShadowTreesAsDisconnected) const; |
| 442 | 442 |
| 443 virtual Node* toNode() override final; | 443 virtual Node* toNode() override final; |
| 444 void AcceptDartGCVisitor(DartGCVisitor& visitor) const override; |
| 444 | 445 |
| 445 virtual const AtomicString& interfaceName() const override; | 446 virtual const AtomicString& interfaceName() const override; |
| 446 virtual ExecutionContext* executionContext() const override final; | 447 virtual ExecutionContext* executionContext() const override final; |
| 447 | 448 |
| 448 virtual bool addEventListener(const AtomicString& eventType, PassRefPtr<Even
tListener>, bool useCapture = false) override; | 449 virtual bool addEventListener(const AtomicString& eventType, PassRefPtr<Even
tListener>, bool useCapture = false) override; |
| 449 void removeAllEventListenersRecursively(); | 450 void removeAllEventListenersRecursively(); |
| 450 | 451 |
| 451 using EventTarget::dispatchEvent; | 452 using EventTarget::dispatchEvent; |
| 452 virtual bool dispatchEvent(PassRefPtr<Event>) override; | 453 virtual bool dispatchEvent(PassRefPtr<Event>) override; |
| 453 | 454 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 472 void unregisterTransientMutationObserver(MutationObserverRegistration*); | 473 void unregisterTransientMutationObserver(MutationObserverRegistration*); |
| 473 void notifyMutationObserversNodeWillDetach(); | 474 void notifyMutationObserversNodeWillDetach(); |
| 474 | 475 |
| 475 PassRefPtr<StaticNodeList> getDestinationInsertionPoints(); | 476 PassRefPtr<StaticNodeList> getDestinationInsertionPoints(); |
| 476 | 477 |
| 477 void setAlreadySpellChecked(bool flag) { setFlag(flag, AlreadySpellCheckedFl
ag); } | 478 void setAlreadySpellChecked(bool flag) { setFlag(flag, AlreadySpellCheckedFl
ag); } |
| 478 bool isAlreadySpellChecked() { return getFlag(AlreadySpellCheckedFlag); } | 479 bool isAlreadySpellChecked() { return getFlag(AlreadySpellCheckedFlag); } |
| 479 | 480 |
| 480 unsigned lengthOfContents() const; | 481 unsigned lengthOfContents() const; |
| 481 | 482 |
| 482 virtual v8::Handle<v8::Object> wrap(v8::Handle<v8::Object> creationContext,
v8::Isolate*) override; | |
| 483 | |
| 484 private: | 483 private: |
| 485 enum NodeFlags { | 484 enum NodeFlags { |
| 486 HasRareDataFlag = 1, | 485 HasRareDataFlag = 1, |
| 487 | 486 |
| 488 // Node type flags. These never change once created. | 487 // Node type flags. These never change once created. |
| 489 IsTextFlag = 1 << 1, | 488 IsTextFlag = 1 << 1, |
| 490 IsContainerFlag = 1 << 2, | 489 IsContainerFlag = 1 << 2, |
| 491 IsElementFlag = 1 << 3, | 490 IsElementFlag = 1 << 3, |
| 492 IsHTMLFlag = 1 << 4, | 491 IsHTMLFlag = 1 << 4, |
| 493 IsSVGFlag = 1 << 5, | 492 IsSVGFlag = 1 << 5, |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 678 } // namespace blink | 677 } // namespace blink |
| 679 | 678 |
| 680 #ifndef NDEBUG | 679 #ifndef NDEBUG |
| 681 // Outside the WebCore namespace for ease of invocation from gdb. | 680 // Outside the WebCore namespace for ease of invocation from gdb. |
| 682 void showNode(const blink::Node*); | 681 void showNode(const blink::Node*); |
| 683 void showTree(const blink::Node*); | 682 void showTree(const blink::Node*); |
| 684 void showNodePath(const blink::Node*); | 683 void showNodePath(const blink::Node*); |
| 685 #endif | 684 #endif |
| 686 | 685 |
| 687 #endif // SKY_ENGINE_CORE_DOM_NODE_H_ | 686 #endif // SKY_ENGINE_CORE_DOM_NODE_H_ |
| OLD | NEW |