#include "third_party/blink/renderer/core/css/parser/sizes_math_function_parser.h"
#include "third_party/blink/renderer/core/css/media_values.h"
#include "third_party/blink/renderer/core/css/parser/css_parser_token.h"
#include "third_party/blink/renderer/core/css_value_keywords.h"
namespace blink {
SizesMathFunctionParser::SizesMathFunctionParser(CSSParserTokenRange range,
MediaValues* media_values)
: … { … }
float SizesMathFunctionParser::Result() const { … }
static bool OperatorPriority(CSSMathOperator cc, bool& high_priority) { … }
bool SizesMathFunctionParser::HandleOperator(Vector<CSSParserToken>& stack,
const CSSParserToken& token) { … }
bool SizesMathFunctionParser::HandleRightParenthesis(
Vector<CSSParserToken>& stack) { … }
bool SizesMathFunctionParser::HandleComma(Vector<CSSParserToken>& stack,
const CSSParserToken& token) { … }
void SizesMathFunctionParser::AppendNumber(const CSSParserToken& token) { … }
bool SizesMathFunctionParser::AppendLength(const CSSParserToken& token) { … }
void SizesMathFunctionParser::AppendOperator(const CSSParserToken& token) { … }
bool SizesMathFunctionParser::CalcToReversePolishNotation(
CSSParserTokenRange range) { … }
static bool OperateOnStack(Vector<SizesMathValue>& stack,
CSSMathOperator operation) { … }
bool SizesMathFunctionParser::Calculate() { … }
}