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

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

Issue 347773002: Implement select listbox using shadow DOM (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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/dom/NodeRenderStyle.h ('k') | Source/core/html/HTMLOptGroupElement.h » ('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, 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 887 matching lines...) Expand 10 before | Expand all | Expand 10 after
898 || node.hasTagName(hrTag) 898 || node.hasTagName(hrTag)
899 || node.hasTagName(liTag) 899 || node.hasTagName(liTag)
900 || node.hasTagName(listingTag) 900 || node.hasTagName(listingTag)
901 || node.hasTagName(olTag) 901 || node.hasTagName(olTag)
902 || node.hasTagName(pTag) 902 || node.hasTagName(pTag)
903 || node.hasTagName(preTag) 903 || node.hasTagName(preTag)
904 || node.hasTagName(trTag) 904 || node.hasTagName(trTag)
905 || node.hasTagName(ulTag)); 905 || node.hasTagName(ulTag));
906 } 906 }
907 907
908 // Need to make an exception for option and optgroup, because we want to
909 // keep the legacy behavior before we added renderers to them.
910 if (isHTMLOptionElement(node) || isHTMLOptGroupElement(node))
911 return false;
912
908 // Need to make an exception for table cells, because they are blocks, but w e 913 // Need to make an exception for table cells, because they are blocks, but w e
909 // want them tab-delimited rather than having newlines before and after. 914 // want them tab-delimited rather than having newlines before and after.
910 if (isTableCell(&node)) 915 if (isTableCell(&node))
911 return false; 916 return false;
912 917
913 // Need to make an exception for table row elements, because they are neithe r 918 // Need to make an exception for table row elements, because they are neithe r
914 // "inline" or "RenderBlock", but we want newlines for them. 919 // "inline" or "RenderBlock", but we want newlines for them.
915 if (r->isTableRow()) { 920 if (r->isTableRow()) {
916 RenderTable* t = toRenderTableRow(r)->table(); 921 RenderTable* t = toRenderTableRow(r)->table();
917 if (t && !t->isInline()) 922 if (t && !t->isInline())
(...skipping 1296 matching lines...) Expand 10 before | Expand all | Expand 10 after
2214 resultEnd = collapseTo; 2219 resultEnd = collapseTo;
2215 return; 2220 return;
2216 } 2221 }
2217 } 2222 }
2218 2223
2219 CharacterIterator computeRangeIterator(inputStart, inputEnd, iteratorFlagsFo rFindPlainText); 2224 CharacterIterator computeRangeIterator(inputStart, inputEnd, iteratorFlagsFo rFindPlainText);
2220 calculateCharacterSubrange(computeRangeIterator, matchStart, matchLength, re sultStart, resultEnd); 2225 calculateCharacterSubrange(computeRangeIterator, matchStart, matchLength, re sultStart, resultEnd);
2221 } 2226 }
2222 2227
2223 } 2228 }
OLDNEW
« no previous file with comments | « Source/core/dom/NodeRenderStyle.h ('k') | Source/core/html/HTMLOptGroupElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698