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

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

Issue 207783002: Omit "int" when using "unsigned" modifier (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 9 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
« no previous file with comments | « Source/core/editing/InsertTextCommand.cpp ('k') | Source/core/html/HTMLElement.cpp » ('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 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 result.append(data); 387 result.append(data);
388 result.appendLiteral("?>"); 388 result.appendLiteral("?>");
389 } 389 }
390 390
391 void MarkupAccumulator::appendElement(StringBuilder& result, Element& element, N amespaces* namespaces) 391 void MarkupAccumulator::appendElement(StringBuilder& result, Element& element, N amespaces* namespaces)
392 { 392 {
393 appendOpenTag(result, element, namespaces); 393 appendOpenTag(result, element, namespaces);
394 394
395 if (element.hasAttributes()) { 395 if (element.hasAttributes()) {
396 unsigned length = element.attributeCount(); 396 unsigned length = element.attributeCount();
397 for (unsigned int i = 0; i < length; i++) 397 for (unsigned i = 0; i < length; i++)
398 appendAttribute(result, element, element.attributeItem(i), namespace s); 398 appendAttribute(result, element, element.attributeItem(i), namespace s);
399 } 399 }
400 400
401 // Give an opportunity to subclasses to add their own attributes. 401 // Give an opportunity to subclasses to add their own attributes.
402 appendCustomAttributes(result, element, namespaces); 402 appendCustomAttributes(result, element, namespaces);
403 403
404 appendCloseTag(result, element); 404 appendCloseTag(result, element);
405 } 405 }
406 406
407 static String nodeNamePreservingCase(const Element& element) 407 static String nodeNamePreservingCase(const Element& element)
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
550 } 550 }
551 551
552 bool MarkupAccumulator::serializeAsHTMLDocument(const Node& node) const 552 bool MarkupAccumulator::serializeAsHTMLDocument(const Node& node) const
553 { 553 {
554 if (m_serializationType == ForcedXML) 554 if (m_serializationType == ForcedXML)
555 return false; 555 return false;
556 return node.document().isHTMLDocument(); 556 return node.document().isHTMLDocument();
557 } 557 }
558 558
559 } 559 }
OLDNEW
« no previous file with comments | « Source/core/editing/InsertTextCommand.cpp ('k') | Source/core/html/HTMLElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698