OLD | NEW |
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 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 ++m_shadowDepth; | 294 ++m_shadowDepth; |
295 m_fullyClippedStack.pushFullyClippedState(m_node); | 295 m_fullyClippedStack.pushFullyClippedState(m_node); |
296 continue; | 296 continue; |
297 } | 297 } |
298 m_iterationProgress = HandledUserAgentShadowRoot; | 298 m_iterationProgress = HandledUserAgentShadowRoot; |
299 } | 299 } |
300 | 300 |
301 // Handle the current node according to its type. | 301 // Handle the current node according to its type. |
302 if (m_iterationProgress < HandledNode) { | 302 if (m_iterationProgress < HandledNode) { |
303 bool handledNode = false; | 303 bool handledNode = false; |
304 if (renderer->isText() && m_node->nodeType() == Node::TEXT_NODE)
{ // FIXME: What about CDATA_SECTION_NODE? | 304 if (renderer->isText() && m_node->nodeType() == Node::TEXT_NODE)
{ |
305 handledNode = handleTextNode(); | 305 handledNode = handleTextNode(); |
306 } else if (renderer && (renderer->isImage() || renderer->isRende
rPart() | 306 } else if (renderer && (renderer->isImage() || renderer->isRende
rPart() |
307 || (m_node && m_node->isHTMLElement() | 307 || (m_node && m_node->isHTMLElement() |
308 && (isHTMLFormControlElement(toHTMLElement(*m_node)) | 308 && (isHTMLFormControlElement(toHTMLElement(*m_node)) |
309 || isHTMLLegendElement(toHTMLElement(*m_node)) | 309 || isHTMLLegendElement(toHTMLElement(*m_node)) |
310 || isHTMLImageElement(toHTMLElement(*m_node)) | 310 || isHTMLImageElement(toHTMLElement(*m_node)) |
311 || isHTMLMeterElement(toHTMLElement(*m_node)) | 311 || isHTMLMeterElement(toHTMLElement(*m_node)) |
312 || isHTMLProgressElement(toHTMLElement(*m_node)))))) { | 312 || isHTMLProgressElement(toHTMLElement(*m_node)))))) { |
313 handledNode = handleReplacedElement(); | 313 handledNode = handleReplacedElement(); |
314 } else { | 314 } else { |
(...skipping 863 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1178 return createPlainText(it); | 1178 return createPlainText(it); |
1179 } | 1179 } |
1180 | 1180 |
1181 String plainText(const Position& start, const Position& end, TextIteratorBehavio
rFlags behavior) | 1181 String plainText(const Position& start, const Position& end, TextIteratorBehavio
rFlags behavior) |
1182 { | 1182 { |
1183 TextIterator it(start, end, behavior); | 1183 TextIterator it(start, end, behavior); |
1184 return createPlainText(it); | 1184 return createPlainText(it); |
1185 } | 1185 } |
1186 | 1186 |
1187 } | 1187 } |
OLD | NEW |