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

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

Issue 137063014: Remove Node::containsForBindings() method (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 11 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 | « no previous file | Source/core/dom/Node.idl » ('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, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights 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 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 virtual bool childTypeAllowed(NodeType) const { return false; } 477 virtual bool childTypeAllowed(NodeType) const { return false; }
478 unsigned childNodeCount() const; 478 unsigned childNodeCount() const;
479 Node* childNode(unsigned index) const; 479 Node* childNode(unsigned index) const;
480 480
481 bool isDescendantOf(const Node*) const; 481 bool isDescendantOf(const Node*) const;
482 bool contains(const Node*) const; 482 bool contains(const Node*) const;
483 bool containsIncludingShadowDOM(const Node*) const; 483 bool containsIncludingShadowDOM(const Node*) const;
484 bool containsIncludingHostElements(const Node&) const; 484 bool containsIncludingHostElements(const Node&) const;
485 Node* commonAncestor(const Node&, Node* (*parent)(const Node&)); 485 Node* commonAncestor(const Node&, Node* (*parent)(const Node&));
486 486
487 // FIXME: Remove this when crbug.com/265716 cleans up contains semantics.
488 bool containsForBindings(const Node* node) const { return containsIncludingS hadowDOM(node); }
489
490 // Used to determine whether range offsets use characters or node indices. 487 // Used to determine whether range offsets use characters or node indices.
491 virtual bool offsetInCharacters() const; 488 virtual bool offsetInCharacters() const;
492 // Number of DOM 16-bit units contained in node. Note that rendered text len gth can be different - e.g. because of 489 // Number of DOM 16-bit units contained in node. Note that rendered text len gth can be different - e.g. because of
493 // css-transform:capitalize breaking up precomposed characters and ligatures . 490 // css-transform:capitalize breaking up precomposed characters and ligatures .
494 virtual int maxCharacterOffset() const; 491 virtual int maxCharacterOffset() const;
495 492
496 // Whether or not a selection can be started in this object 493 // Whether or not a selection can be started in this object
497 virtual bool canStartSelection() const; 494 virtual bool canStartSelection() const;
498 495
499 // Getting points into and out of screen space 496 // Getting points into and out of screen space
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
911 908
912 } // namespace WebCore 909 } // namespace WebCore
913 910
914 #ifndef NDEBUG 911 #ifndef NDEBUG
915 // Outside the WebCore namespace for ease of invocation from gdb. 912 // Outside the WebCore namespace for ease of invocation from gdb.
916 void showTree(const WebCore::Node*); 913 void showTree(const WebCore::Node*);
917 void showNodePath(const WebCore::Node*); 914 void showNodePath(const WebCore::Node*);
918 #endif 915 #endif
919 916
920 #endif 917 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/core/dom/Node.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698