blob: c6a02b34867b314d43de77b7529e5518f057a4bf [file] [log] [blame]
// Copyright 2014 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 "config.h"
#include "platform/geometry/DoubleSize.h"
#include <limits>
#include <math.h>
namespace blink {
bool DoubleSize::isZero() const
{
return fabs(m_width) < std::numeric_limits<double>::epsilon() && fabs(m_height) < std::numeric_limits<double>::epsilon();
}
}