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

Side by Side Diff: Source/WebCore/editing/TextIterator.h

Issue 12780019: Merge 145954 "TextIterator emits LF for a br element inside an e..." (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1410/
Patch Set: Created 7 years, 9 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
« no previous file with comments | « LayoutTests/platform/mac/TestExpectations ('k') | Source/WebCore/editing/TextIterator.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, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2004, 2006, 2009 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 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 bool m_havePassedStartNode; 253 bool m_havePassedStartNode;
254 254
255 // Should handle first-letter renderer in the next call to handleTextNode. 255 // Should handle first-letter renderer in the next call to handleTextNode.
256 bool m_shouldHandleFirstLetter; 256 bool m_shouldHandleFirstLetter;
257 257
258 // Used when the iteration should stop if form controls are reached. 258 // Used when the iteration should stop if form controls are reached.
259 bool m_stopsOnFormControls; 259 bool m_stopsOnFormControls;
260 260
261 // Used when m_stopsOnFormControls is set to determine if the iterator shoul d keep advancing. 261 // Used when m_stopsOnFormControls is set to determine if the iterator shoul d keep advancing.
262 bool m_shouldStop; 262 bool m_shouldStop;
263
264 // Used in pasting inside password field.
265 bool m_emitsOriginalText;
263 }; 266 };
264 267
265 // Builds on the text iterator, adding a character position so we can walk one 268 // Builds on the text iterator, adding a character position so we can walk one
266 // character at a time, or faster, as needed. Useful for searching. 269 // character at a time, or faster, as needed. Useful for searching.
267 class CharacterIterator { 270 class CharacterIterator {
268 public: 271 public:
269 CharacterIterator(); 272 CharacterIterator();
270 explicit CharacterIterator(const Range*, TextIteratorBehavior = TextIterator DefaultBehavior); 273 explicit CharacterIterator(const Range*, TextIteratorBehavior = TextIterator DefaultBehavior);
271 274
272 void advance(int numCharacters); 275 void advance(int numCharacters);
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 bool m_didLookAhead; 340 bool m_didLookAhead;
338 341
339 RefPtr<Range> m_range; 342 RefPtr<Range> m_range;
340 343
341 TextIterator m_textIterator; 344 TextIterator m_textIterator;
342 }; 345 };
343 346
344 } 347 }
345 348
346 #endif 349 #endif
OLDNEW
« no previous file with comments | « LayoutTests/platform/mac/TestExpectations ('k') | Source/WebCore/editing/TextIterator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698