OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All rights
reserved. | 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All rights
reserved. |
3 * Copyright (C) 2009, 2010 Google Inc. All rights reserved. | 3 * Copyright (C) 2009, 2010 Google Inc. All rights reserved. |
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 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 appendText(result, toText(node)); | 293 appendText(result, toText(node)); |
294 break; | 294 break; |
295 case Node::DOCUMENT_NODE: | 295 case Node::DOCUMENT_NODE: |
296 break; | 296 break; |
297 case Node::DOCUMENT_FRAGMENT_NODE: | 297 case Node::DOCUMENT_FRAGMENT_NODE: |
298 // Not implemented. | 298 // Not implemented. |
299 break; | 299 break; |
300 case Node::ELEMENT_NODE: | 300 case Node::ELEMENT_NODE: |
301 appendElement(result, toElement(node), namespaces); | 301 appendElement(result, toElement(node), namespaces); |
302 break; | 302 break; |
303 case Node::ATTRIBUTE_NODE: | |
304 ASSERT_NOT_REACHED(); | |
305 break; | |
306 } | 303 } |
307 } | 304 } |
308 | 305 |
309 void MarkupAccumulator::appendEndMarkup(StringBuilder& result, const Element& el
ement) | 306 void MarkupAccumulator::appendEndMarkup(StringBuilder& result, const Element& el
ement) |
310 { | 307 { |
311 result.appendLiteral("</"); | 308 result.appendLiteral("</"); |
312 result.append(element.tagQName().localName()); | 309 result.append(element.tagQName().localName()); |
313 result.append('>'); | 310 result.append('>'); |
314 } | 311 } |
315 | 312 |
316 } | 313 } |
OLD | NEW |