Home
last modified time | relevance | path

Searched refs:CFX_CSSNumberValue (Results 1 – 5 of 5) sorted by relevance

/external/pdfium/core/fxcrt/css/
Dcfx_cssnumbervalue.cpp9 CFX_CSSNumberValue::CFX_CSSNumberValue(CFX_CSSNumberType type, float value) in CFX_CSSNumberValue() function in CFX_CSSNumberValue
15 CFX_CSSNumberValue::~CFX_CSSNumberValue() {} in ~CFX_CSSNumberValue()
17 float CFX_CSSNumberValue::Apply(float percentBase) const { in Apply()
Dcfx_cssnumbervalue.h26 class CFX_CSSNumberValue final : public CFX_CSSValue {
28 CFX_CSSNumberValue(CFX_CSSNumberType type, float value);
29 ~CFX_CSSNumberValue() override;
Dcfx_cssstyleselector.cpp188 fFontSize = pValue.As<CFX_CSSNumberValue>()->Apply(fFontSize); in ApplyProperty()
196 RetainPtr<CFX_CSSNumberValue> v = pValue.As<CFX_CSSNumberValue>(); in ApplyProperty()
223 (int32_t)pValue.As<CFX_CSSNumberValue>()->Value() / 100; in ApplyProperty()
333 pValue.As<CFX_CSSNumberValue>()->Apply( in ApplyProperty()
348 if (pValue.As<CFX_CSSNumberValue>()->Kind() == in ApplyProperty()
363 if (pValue.As<CFX_CSSNumberValue>()->Kind() == in ApplyProperty()
480 RetainPtr<CFX_CSSNumberValue> v = pValue.As<CFX_CSSNumberValue>(); in SetLengthWithPercent()
483 pValue.As<CFX_CSSNumberValue>()->Value() / 100.0f); in SetLengthWithPercent()
Dcfx_cssdeclaration.cpp294 return pdfium::MakeRetain<CFX_CSSNumberValue>(eUnit, fValue); in ParseNumber()
345 pdfium::MakeRetain<CFX_CSSNumberValue>(eNumType, fValue)); in ParseValueListProperty()
466 pWidth = pdfium::MakeRetain<CFX_CSSNumberValue>(eNumType, fValue); in ParseBorderProperty()
499 pdfium::MakeRetain<CFX_CSSNumberValue>(CFX_CSSNumberType::Number, 0.0f); in ParseBorderProperty()
591 pWeight = pdfium::MakeRetain<CFX_CSSNumberValue>( in ParseFontProperty()
597 pFontSize = pdfium::MakeRetain<CFX_CSSNumberValue>(eNumType, fValue); in ParseFontProperty()
600 pdfium::MakeRetain<CFX_CSSNumberValue>(eNumType, fValue); in ParseFontProperty()
Dcfx_cssstylesheet_unittest.cpp56 EXPECT_EQ(v.As<CFX_CSSNumberValue>()->Kind(), type); in VerifyFloat()
57 EXPECT_EQ(v.As<CFX_CSSNumberValue>()->Value(), val); in VerifyFloat()