blob: 1bd1e89adbcdc342aaf9f8934f69a78b5612a7c4 [file] [log] [blame]
// Copyright 2015 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.
#ifndef NumberPropertyFunctions_h
#define NumberPropertyFunctions_h
#include "core/CSSPropertyNames.h"
namespace blink {
class ComputedStyle;
class NumberPropertyFunctions {
public:
static bool getInitialNumber(CSSPropertyID, double& result);
static bool getNumber(CSSPropertyID, const ComputedStyle&, double& result);
static double clampNumber(CSSPropertyID, double);
static bool setNumber(CSSPropertyID, ComputedStyle&, double);
};
} // namespace blink
#endif // NumberPropertyFunctions_h