Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(270)

Side by Side Diff: Source/core/dom/Node.h

Issue 407093010: Simplify compareDocumentPosition (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/dom/DocumentOrderedList.cpp ('k') | Source/core/dom/Node.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 584 matching lines...) Expand 10 before | Expand all | Expand 10 after
595 #endif 595 #endif
596 596
597 void invalidateNodeListCachesInAncestors(const QualifiedName* attrName = 0, Element* attributeOwnerElement = 0); 597 void invalidateNodeListCachesInAncestors(const QualifiedName* attrName = 0, Element* attributeOwnerElement = 0);
598 NodeListsNodeData* nodeLists(); 598 NodeListsNodeData* nodeLists();
599 void clearNodeLists(); 599 void clearNodeLists();
600 600
601 virtual bool willRespondToMouseMoveEvents(); 601 virtual bool willRespondToMouseMoveEvents();
602 virtual bool willRespondToMouseClickEvents(); 602 virtual bool willRespondToMouseClickEvents();
603 virtual bool willRespondToTouchEvents(); 603 virtual bool willRespondToTouchEvents();
604 604
605 unsigned short compareDocumentPosition(const Node*) const;
606
607 enum ShadowTreesTreatment { 605 enum ShadowTreesTreatment {
608 TreatShadowTreesAsDisconnected, 606 TreatShadowTreesAsDisconnected,
609 TreatShadowTreesAsComposed 607 TreatShadowTreesAsComposed
610 }; 608 };
611 609
612 unsigned short compareDocumentPositionInternal(const Node*, ShadowTreesTreat ment) const; 610 unsigned short compareDocumentPosition(const Node*, ShadowTreesTreatment = T reatShadowTreesAsDisconnected) const;
613 611
614 virtual Node* toNode() OVERRIDE FINAL; 612 virtual Node* toNode() OVERRIDE FINAL;
615 613
616 virtual const AtomicString& interfaceName() const OVERRIDE; 614 virtual const AtomicString& interfaceName() const OVERRIDE;
617 virtual ExecutionContext* executionContext() const OVERRIDE FINAL; 615 virtual ExecutionContext* executionContext() const OVERRIDE FINAL;
618 616
619 virtual bool addEventListener(const AtomicString& eventType, PassRefPtr<Even tListener>, bool useCapture = false) OVERRIDE; 617 virtual bool addEventListener(const AtomicString& eventType, PassRefPtr<Even tListener>, bool useCapture = false) OVERRIDE;
620 virtual bool removeEventListener(const AtomicString& eventType, PassRefPtr<E ventListener>, bool useCapture = false) OVERRIDE; 618 virtual bool removeEventListener(const AtomicString& eventType, PassRefPtr<E ventListener>, bool useCapture = false) OVERRIDE;
621 virtual void removeAllEventListeners() OVERRIDE; 619 virtual void removeAllEventListeners() OVERRIDE;
622 void removeAllEventListenersRecursively(); 620 void removeAllEventListenersRecursively();
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
908 } // namespace blink 906 } // namespace blink
909 907
910 #ifndef NDEBUG 908 #ifndef NDEBUG
911 // Outside the WebCore namespace for ease of invocation from gdb. 909 // Outside the WebCore namespace for ease of invocation from gdb.
912 void showNode(const blink::Node*); 910 void showNode(const blink::Node*);
913 void showTree(const blink::Node*); 911 void showTree(const blink::Node*);
914 void showNodePath(const blink::Node*); 912 void showNodePath(const blink::Node*);
915 #endif 913 #endif
916 914
917 #endif 915 #endif
OLDNEW
« no previous file with comments | « Source/core/dom/DocumentOrderedList.cpp ('k') | Source/core/dom/Node.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698