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

Side by Side Diff: third_party/WebKit/Source/wtf/text/AtomicString.cpp

Issue 1807853003: Deprecate some macros in wtf/Assertions.h in favor of base/logging.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2013 Apple Inc. All rights reserv ed. 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2013 Apple Inc. All rights reserv ed.
3 * Copyright (C) 2010 Patrick Gansterer <paroga@paroga.com> 3 * Copyright (C) 2010 Patrick Gansterer <paroga@paroga.com>
4 * Copyright (C) 2012 Google Inc. All rights reserved. 4 * Copyright (C) 2012 Google Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after
523 { 523 {
524 return integerToAtomicString(number); 524 return integerToAtomicString(number);
525 } 525 }
526 526
527 AtomicString AtomicString::number(double number, unsigned precision, TrailingZer osTruncatingPolicy trailingZerosTruncatingPolicy) 527 AtomicString AtomicString::number(double number, unsigned precision, TrailingZer osTruncatingPolicy trailingZerosTruncatingPolicy)
528 { 528 {
529 NumberToStringBuffer buffer; 529 NumberToStringBuffer buffer;
530 return AtomicString(numberToFixedPrecisionString(number, precision, buffer, trailingZerosTruncatingPolicy == TruncateTrailingZeros)); 530 return AtomicString(numberToFixedPrecisionString(number, precision, buffer, trailingZerosTruncatingPolicy == TruncateTrailingZeros));
531 } 531 }
532 532
533 std::ostream& operator<<(std::ostream& out, const AtomicString& s)
534 {
535 return out << s.string();
536 }
537
533 #ifndef NDEBUG 538 #ifndef NDEBUG
534 void AtomicString::show() const 539 void AtomicString::show() const
535 { 540 {
536 m_string.show(); 541 m_string.show();
537 } 542 }
538 #endif 543 #endif
539 544
540 } // namespace WTF 545 } // namespace WTF
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698