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

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

Issue 315493004: reset VisibleSelection at the Undo command. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 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
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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 140
141 PassRefPtrWillBeRawPtr<ClientRectList> getClientRects() const; 141 PassRefPtrWillBeRawPtr<ClientRectList> getClientRects() const;
142 PassRefPtrWillBeRawPtr<ClientRect> getBoundingClientRect() const; 142 PassRefPtrWillBeRawPtr<ClientRect> getBoundingClientRect() const;
143 143
144 #ifndef NDEBUG 144 #ifndef NDEBUG
145 void formatForDebugger(char* buffer, unsigned length) const; 145 void formatForDebugger(char* buffer, unsigned length) const;
146 #endif 146 #endif
147 147
148 void trace(Visitor*); 148 void trace(Visitor*);
149 149
150 static unsigned lengthOfContentsInNode(const Node*);
150 private: 151 private:
151 explicit Range(Document&); 152 explicit Range(Document&);
152 Range(Document&, Node* startContainer, int startOffset, Node* endContainer, int endOffset); 153 Range(Document&, Node* startContainer, int startOffset, Node* endContainer, int endOffset);
153 154
154 void setDocument(Document&); 155 void setDocument(Document&);
155 156
156 Node* checkNodeWOffset(Node*, int offset, ExceptionState&) const; 157 Node* checkNodeWOffset(Node*, int offset, ExceptionState&) const;
157 void checkNodeBA(Node*, ExceptionState&) const; 158 void checkNodeBA(Node*, ExceptionState&) const;
158 void checkDeleteExtract(ExceptionState&); 159 void checkDeleteExtract(ExceptionState&);
159 160
(...skipping 14 matching lines...) Expand all
174 bool areRangesEqual(const Range*, const Range*); 175 bool areRangesEqual(const Range*, const Range*);
175 176
176 } // namespace 177 } // namespace
177 178
178 #ifndef NDEBUG 179 #ifndef NDEBUG
179 // Outside the WebCore namespace for ease of invocation from gdb. 180 // Outside the WebCore namespace for ease of invocation from gdb.
180 void showTree(const WebCore::Range*); 181 void showTree(const WebCore::Range*);
181 #endif 182 #endif
182 183
183 #endif 184 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698