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

Side by Side Diff: sky/engine/core/editing/MarkupAccumulator.cpp

Issue 697773002: Remove Element#attributes. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: fix template binding. Created 6 years, 1 month 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 | « sky/engine/core/dom/TreeScopeAdopter.cpp ('k') | sky/engine/core/frame/UseCounter.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, 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
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 }
OLDNEW
« no previous file with comments | « sky/engine/core/dom/TreeScopeAdopter.cpp ('k') | sky/engine/core/frame/UseCounter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698