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

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

Issue 22751005: Convert USERSELECT_ALL to a runtime enabled feature. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: undo reordering of if statements Created 7 years, 4 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/editing/VisibleUnits.cpp ('k') | Source/core/editing/htmlediting.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 * Copyright (C) 2004, 2006, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2004, 2006, 2008 Apple 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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 inline Position lastPositionInOrAfterNode(Node* node) 141 inline Position lastPositionInOrAfterNode(Node* node)
142 { 142 {
143 if (!node) 143 if (!node)
144 return Position(); 144 return Position();
145 return editingIgnoresContent(node) ? positionAfterNode(node) : lastPositionI nNode(node); 145 return editingIgnoresContent(node) ? positionAfterNode(node) : lastPositionI nNode(node);
146 } 146 }
147 147
148 // comparision functions on Position 148 // comparision functions on Position
149 149
150 int comparePositions(const Position&, const Position&); 150 int comparePositions(const Position&, const Position&);
151 int comparePositions(const PositionWithAffinity&, const PositionWithAffinity&);
151 152
152 // boolean functions on Position 153 // boolean functions on Position
153 154
154 enum EUpdateStyle { UpdateStyle, DoNotUpdateStyle }; 155 enum EUpdateStyle { UpdateStyle, DoNotUpdateStyle };
155 bool isEditablePosition(const Position&, EditableType = ContentIsEditable, EUpda teStyle = UpdateStyle); 156 bool isEditablePosition(const Position&, EditableType = ContentIsEditable, EUpda teStyle = UpdateStyle);
156 bool isRichlyEditablePosition(const Position&, EditableType = ContentIsEditable) ; 157 bool isRichlyEditablePosition(const Position&, EditableType = ContentIsEditable) ;
157 bool lineBreakExistsAtPosition(const Position&); 158 bool lineBreakExistsAtPosition(const Position&);
158 bool isVisiblyAdjacent(const Position& first, const Position& second); 159 bool isVisiblyAdjacent(const Position& first, const Position& second);
159 bool isAtUnsplittableElement(const Position&); 160 bool isAtUnsplittableElement(const Position&);
160 161
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 // FIXME: this is required until 6853027 is fixed and text checking can do t his for us. 249 // FIXME: this is required until 6853027 is fixed and text checking can do t his for us.
249 return character == '\'' || character == rightSingleQuotationMark || charact er == hebrewPunctuationGershayim; 250 return character == '\'' || character == rightSingleQuotationMark || charact er == hebrewPunctuationGershayim;
250 } 251 }
251 252
252 String stringWithRebalancedWhitespace(const String&, bool startIsStartOfParagrap h, bool endIsEndOfParagraph); 253 String stringWithRebalancedWhitespace(const String&, bool startIsStartOfParagrap h, bool endIsEndOfParagraph);
253 const String& nonBreakingSpaceString(); 254 const String& nonBreakingSpaceString();
254 255
255 } 256 }
256 257
257 #endif 258 #endif
OLDNEW
« no previous file with comments | « Source/core/editing/VisibleUnits.cpp ('k') | Source/core/editing/htmlediting.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698