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

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

Issue 2687273002: Selection API: Mutating a Range object after adding it to Selection should update Selection attribu… (Closed)
Patch Set: Handle diffrent root cases Created 3 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
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 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights
7 * reserved. 7 * reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 enum ContentsProcessDirection { 200 enum ContentsProcessDirection {
201 ProcessContentsForward, 201 ProcessContentsForward,
202 ProcessContentsBackward 202 ProcessContentsBackward
203 }; 203 };
204 static Node* processAncestorsAndTheirSiblings(ActionType, 204 static Node* processAncestorsAndTheirSiblings(ActionType,
205 Node* container, 205 Node* container,
206 ContentsProcessDirection, 206 ContentsProcessDirection,
207 Node* clonedContainer, 207 Node* clonedContainer,
208 Node* commonRoot, 208 Node* commonRoot,
209 ExceptionState&); 209 ExceptionState&);
210 void updateSelectionIfAddedToSelection();
211 void removeFromSelectionIfInDifferentRoot(Document& oldDocument);
210 212
211 Member<Document> m_ownerDocument; // Cannot be null. 213 Member<Document> m_ownerDocument; // Cannot be null.
212 RangeBoundaryPoint m_start; 214 RangeBoundaryPoint m_start;
213 RangeBoundaryPoint m_end; 215 RangeBoundaryPoint m_end;
214 }; 216 };
215 217
216 CORE_EXPORT bool areRangesEqual(const Range*, const Range*); 218 CORE_EXPORT bool areRangesEqual(const Range*, const Range*);
217 219
218 using RangeVector = HeapVector<Member<Range>>; 220 using RangeVector = HeapVector<Member<Range>>;
219 221
220 } // namespace blink 222 } // namespace blink
221 223
222 #ifndef NDEBUG 224 #ifndef NDEBUG
223 // Outside the WebCore namespace for ease of invocation from gdb. 225 // Outside the WebCore namespace for ease of invocation from gdb.
224 void showTree(const blink::Range*); 226 void showTree(const blink::Range*);
225 #endif 227 #endif
226 228
227 #endif // Range_h 229 #endif // Range_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698