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

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

Issue 178613003: Make Document::nodeChildrenWillBeRemoved() take a reference (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Use PassRefPtr Created 6 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | Source/core/dom/Range.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 * (C) 1999 Lars Knoll (knoll@kde.org) 2 * (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Gunnstein Lye (gunnstein@netcom.no) 3 * (C) 2000 Gunnstein Lye (gunnstein@netcom.no)
4 * (C) 2000 Frederik Holljen (frederik.holljen@hig.no) 4 * (C) 2000 Frederik Holljen (frederik.holljen@hig.no)
5 * (C) 2001 Peter Kelly (pmk@post.com) 5 * (C) 2001 Peter Kelly (pmk@post.com)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed.
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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 // Not transform-friendly 122 // Not transform-friendly
123 void textRects(Vector<IntRect>&, bool useSelectionHeight = false, RangeInFix edPosition* = 0) const; 123 void textRects(Vector<IntRect>&, bool useSelectionHeight = false, RangeInFix edPosition* = 0) const;
124 IntRect boundingBox() const; 124 IntRect boundingBox() const;
125 125
126 // Transform-friendly 126 // Transform-friendly
127 void textQuads(Vector<FloatQuad>&, bool useSelectionHeight = false, RangeInF ixedPosition* = 0) const; 127 void textQuads(Vector<FloatQuad>&, bool useSelectionHeight = false, RangeInF ixedPosition* = 0) const;
128 void getBorderAndTextQuads(Vector<FloatQuad>&) const; 128 void getBorderAndTextQuads(Vector<FloatQuad>&) const;
129 FloatRect boundingRect() const; 129 FloatRect boundingRect() const;
130 130
131 void nodeChildrenChanged(ContainerNode*); 131 void nodeChildrenChanged(ContainerNode*);
132 void nodeChildrenWillBeRemoved(ContainerNode*); 132 void nodeChildrenWillBeRemoved(ContainerNode&);
133 void nodeWillBeRemoved(Node&); 133 void nodeWillBeRemoved(Node&);
134 134
135 void didInsertText(Node*, unsigned offset, unsigned length); 135 void didInsertText(Node*, unsigned offset, unsigned length);
136 void didRemoveText(Node*, unsigned offset, unsigned length); 136 void didRemoveText(Node*, unsigned offset, unsigned length);
137 void didMergeTextNodes(NodeWithIndex& oldNode, unsigned offset); 137 void didMergeTextNodes(NodeWithIndex& oldNode, unsigned offset);
138 void didSplitTextNode(Text* oldNode); 138 void didSplitTextNode(Text* oldNode);
139 139
140 // Expand range to a unit (word or sentence or block or document) boundary. 140 // Expand range to a unit (word or sentence or block or document) boundary.
141 // Please refer to https://bugs.webkit.org/show_bug.cgi?id=27632 comment #5 141 // Please refer to https://bugs.webkit.org/show_bug.cgi?id=27632 comment #5
142 // for details. 142 // for details.
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 bool areRangesEqual(const Range*, const Range*); 178 bool areRangesEqual(const Range*, const Range*);
179 179
180 } // namespace 180 } // namespace
181 181
182 #ifndef NDEBUG 182 #ifndef NDEBUG
183 // Outside the WebCore namespace for ease of invocation from gdb. 183 // Outside the WebCore namespace for ease of invocation from gdb.
184 void showTree(const WebCore::Range*); 184 void showTree(const WebCore::Range*);
185 #endif 185 #endif
186 186
187 #endif 187 #endif
OLDNEW
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | Source/core/dom/Range.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698