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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutTreeAsText.cpp

Issue 2622363005: Migrate WTF::Vector::append() to ::push_back() in WTF::HexNumber (Closed)
Patch Set: remove template, rely on function overload resolution for Vector-specific methods Created 3 years, 10 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2006, 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2004, 2006, 2007 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 result.append('"'); 138 result.append('"');
139 } else if (c == '\n' || c == noBreakSpaceCharacter) { 139 } else if (c == '\n' || c == noBreakSpaceCharacter) {
140 result.append(' '); 140 result.append(' ');
141 } else { 141 } else {
142 if (c >= 0x20 && c < 0x7F) { 142 if (c >= 0x20 && c < 0x7F) {
143 result.append(c); 143 result.append(c);
144 } else { 144 } else {
145 result.append('\\'); 145 result.append('\\');
146 result.append('x'); 146 result.append('x');
147 result.append('{'); 147 result.append('{');
148 appendUnsignedAsHex(c, result); 148 HexNumber::appendUnsignedAsHex(c, result);
149 result.append('}'); 149 result.append('}');
150 } 150 }
151 } 151 }
152 } 152 }
153 result.append('"'); 153 result.append('"');
154 return result.toString(); 154 return result.toString();
155 } 155 }
156 156
157 TextStream& operator<<(TextStream& ts, const Color& c) { 157 TextStream& operator<<(TextStream& ts, const Color& c) {
158 return ts << c.nameForLayoutTreeAsText(); 158 return ts << c.nameForLayoutTreeAsText();
(...skipping 722 matching lines...) Expand 10 before | Expand all | Expand 10 after
881 element->document().updateStyleAndLayout(); 881 element->document().updateStyleAndLayout();
882 882
883 LayoutObject* layoutObject = element->layoutObject(); 883 LayoutObject* layoutObject = element->layoutObject();
884 if (!layoutObject || !layoutObject->isListItem()) 884 if (!layoutObject || !layoutObject->isListItem())
885 return String(); 885 return String();
886 886
887 return toLayoutListItem(layoutObject)->markerText(); 887 return toLayoutListItem(layoutObject)->markerText();
888 } 888 }
889 889
890 } // namespace blink 890 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSMarkup.cpp ('k') | third_party/WebKit/Source/modules/bluetooth/BluetoothUUID.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698