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

Side by Side Diff: Source/core/editing/iterators/TextIterator.cpp

Issue 931003002: Move and rename RenderPart to LayoutPart. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved. 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved.
3 * Copyright (C) 2005 Alexey Proskuryakov. 3 * Copyright (C) 2005 Alexey Proskuryakov.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 continue; 295 continue;
296 } 296 }
297 m_iterationProgress = HandledUserAgentShadowRoot; 297 m_iterationProgress = HandledUserAgentShadowRoot;
298 } 298 }
299 299
300 // Handle the current node according to its type. 300 // Handle the current node according to its type.
301 if (m_iterationProgress < HandledNode) { 301 if (m_iterationProgress < HandledNode) {
302 bool handledNode = false; 302 bool handledNode = false;
303 if (renderer->isText() && m_node->nodeType() == Node::TEXT_NODE) { // FIXME: What about CDATA_SECTION_NODE? 303 if (renderer->isText() && m_node->nodeType() == Node::TEXT_NODE) { // FIXME: What about CDATA_SECTION_NODE?
304 handledNode = handleTextNode(); 304 handledNode = handleTextNode();
305 } else if (renderer && (renderer->isImage() || renderer->isRende rPart() 305 } else if (renderer && (renderer->isImage() || renderer->isLayou tPart()
306 || (m_node && m_node->isHTMLElement() 306 || (m_node && m_node->isHTMLElement()
307 && (isHTMLFormControlElement(toHTMLElement(*m_node)) 307 && (isHTMLFormControlElement(toHTMLElement(*m_node))
308 || isHTMLLegendElement(toHTMLElement(*m_node)) 308 || isHTMLLegendElement(toHTMLElement(*m_node))
309 || isHTMLImageElement(toHTMLElement(*m_node)) 309 || isHTMLImageElement(toHTMLElement(*m_node))
310 || isHTMLMeterElement(toHTMLElement(*m_node)) 310 || isHTMLMeterElement(toHTMLElement(*m_node))
311 || isHTMLProgressElement(toHTMLElement(*m_node)))))) { 311 || isHTMLProgressElement(toHTMLElement(*m_node)))))) {
312 handledNode = handleReplacedElement(); 312 handledNode = handleReplacedElement();
313 } else { 313 } else {
314 handledNode = handleNonTextNode(); 314 handledNode = handleNonTextNode();
315 } 315 }
(...skipping 861 matching lines...) Expand 10 before | Expand all | Expand 10 after
1177 return createPlainText(it); 1177 return createPlainText(it);
1178 } 1178 }
1179 1179
1180 String plainText(const Position& start, const Position& end, TextIteratorBehavio rFlags behavior) 1180 String plainText(const Position& start, const Position& end, TextIteratorBehavio rFlags behavior)
1181 { 1181 {
1182 TextIterator it(start, end, behavior); 1182 TextIterator it(start, end, behavior);
1183 return createPlainText(it); 1183 return createPlainText(it);
1184 } 1184 }
1185 1185
1186 } 1186 }
OLDNEW
« no previous file with comments | « Source/core/editing/iterators/SimplifiedBackwardsTextIterator.cpp ('k') | Source/core/frame/Frame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698