blob: 844047d4c11035429a2b49b8f7cb6b7708b415f5 [file] [log] [blame]
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "third_party/blink/renderer/platform/geometry/layout_size.h"
#include "third_party/blink/renderer/platform/wtf/text/text_stream.h"
#include "third_party/blink/renderer/platform/wtf/text/wtf_string.h"
namespace blink {
std::ostream& operator<<(std::ostream& ostream, const LayoutSize& size) {
return ostream << size.ToString();
}
String LayoutSize::ToString() const {
return String::Format("%sx%s", Width().ToString().Ascii().c_str(),
Height().ToString().Ascii().c_str());
}
WTF::TextStream& operator<<(WTF::TextStream& ts, const LayoutSize& size) {
return ts << FloatSize(size);
}
} // namespace blink