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

Side by Side Diff: Source/core/editing/VisibleSelection.h

Issue 1195743002: Have StyledMarkupSerializer work on the Composed tree (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: reviews Created 5 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2004 Apple Computer, Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 113
114 bool intersectsNode(Node*) const; 114 bool intersectsNode(Node*) const;
115 115
116 // FIXME: Most callers probably don't want these functions, but 116 // FIXME: Most callers probably don't want these functions, but
117 // are using them for historical reasons. toNormalizedRange and 117 // are using them for historical reasons. toNormalizedRange and
118 // toNormalizedPositions contracts the range around text, and 118 // toNormalizedPositions contracts the range around text, and
119 // moves the caret upstream before returning the range/positions. 119 // moves the caret upstream before returning the range/positions.
120 PassRefPtrWillBeRawPtr<Range> toNormalizedRange() const; 120 PassRefPtrWillBeRawPtr<Range> toNormalizedRange() const;
121 bool toNormalizedPositions(Position& start, Position& end) const; 121 bool toNormalizedPositions(Position& start, Position& end) const;
122 static void normalizePositions(const Position& start, const Position& end, P osition* normalizedStart, Position* normalizedEnd); 122 static void normalizePositions(const Position& start, const Position& end, P osition* normalizedStart, Position* normalizedEnd);
123 static void normalizePositions(const PositionInComposedTree& start, const Po sitionInComposedTree& end, PositionInComposedTree* outStart, PositionInComposedT ree* outEnd);
123 124
124 Element* rootEditableElement() const; 125 Element* rootEditableElement() const;
125 bool isContentEditable() const; 126 bool isContentEditable() const;
126 bool hasEditableStyle() const; 127 bool hasEditableStyle() const;
127 bool isContentRichlyEditable() const; 128 bool isContentRichlyEditable() const;
128 // Returns a shadow tree node for legacy shadow trees, a child of the 129 // Returns a shadow tree node for legacy shadow trees, a child of the
129 // ShadowRoot node for new shadow trees, or 0 for non-shadow trees. 130 // ShadowRoot node for new shadow trees, or 0 for non-shadow trees.
130 Node* nonBoundaryShadowTreeRootNode() const; 131 Node* nonBoundaryShadowTreeRootNode() const;
131 132
132 VisiblePosition visiblePositionRespectingEditingBoundary(const LayoutPoint& localPoint, Node* targetNode) const; 133 VisiblePosition visiblePositionRespectingEditingBoundary(const LayoutPoint& localPoint, Node* targetNode) const;
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 214
214 } // namespace blink 215 } // namespace blink
215 216
216 #ifndef NDEBUG 217 #ifndef NDEBUG
217 // Outside the WebCore namespace for ease of invocation from gdb. 218 // Outside the WebCore namespace for ease of invocation from gdb.
218 void showTree(const blink::VisibleSelection&); 219 void showTree(const blink::VisibleSelection&);
219 void showTree(const blink::VisibleSelection*); 220 void showTree(const blink::VisibleSelection*);
220 #endif 221 #endif
221 222
222 #endif // VisibleSelection_h 223 #endif // VisibleSelection_h
OLDNEW
« no previous file with comments | « Source/core/editing/StyledMarkupSerializerTest.cpp ('k') | Source/core/editing/VisibleSelection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698