Home
last modified time | relevance | path

Searched refs:CFX_CSSNumberType (Results 1 – 7 of 7) sorted by relevance

/external/pdfium/core/fxcrt/css/
Dcfx_cssnumbervalue.cpp9 CFX_CSSNumberValue::CFX_CSSNumberValue(CFX_CSSNumberType type, float value) in CFX_CSSNumberValue()
11 if (type_ == CFX_CSSNumberType::Number && fabs(value_) < 0.001f) in CFX_CSSNumberValue()
19 case CFX_CSSNumberType::Pixels: in Apply()
20 case CFX_CSSNumberType::Number: in Apply()
22 case CFX_CSSNumberType::EMS: in Apply()
23 case CFX_CSSNumberType::EXS: in Apply()
25 case CFX_CSSNumberType::Percent: in Apply()
27 case CFX_CSSNumberType::CentiMeters: in Apply()
29 case CFX_CSSNumberType::MilliMeters: in Apply()
31 case CFX_CSSNumberType::Inches: in Apply()
[all …]
Dcfx_cssstylesheet_unittest.cpp50 void VerifyFloat(CFX_CSSProperty prop, float val, CFX_CSSNumberType type) { in VerifyFloat()
112 CFX_CSSNumberType::Pixels); in TEST_F()
114 CFX_CSSNumberType::Pixels); in TEST_F()
115 VerifyFloat(CFX_CSSProperty::BorderTopWidth, 10.0, CFX_CSSNumberType::Pixels); in TEST_F()
117 CFX_CSSNumberType::Pixels); in TEST_F()
165 CFX_CSSNumberType::Pixels); in TEST_F()
167 CFX_CSSNumberType::Pixels); in TEST_F()
168 VerifyFloat(CFX_CSSProperty::BorderTopWidth, 10.0, CFX_CSSNumberType::Pixels); in TEST_F()
170 CFX_CSSNumberType::Pixels); in TEST_F()
197 VerifyFloat(CFX_CSSProperty::BorderLeftWidth, 5.0, CFX_CSSNumberType::Pixels); in TEST_F()
[all …]
Dcfx_cssnumbervalue.h13 enum class CFX_CSSNumberType { enum
28 CFX_CSSNumberValue(CFX_CSSNumberType type, float value);
32 CFX_CSSNumberType Kind() const { return type_; } in Kind()
37 CFX_CSSNumberType type_;
Dcfx_cssdata.cpp261 {L"cm", CFX_CSSNumberType::CentiMeters}, {L"em", CFX_CSSNumberType::EMS},
262 {L"ex", CFX_CSSNumberType::EXS}, {L"in", CFX_CSSNumberType::Inches},
263 {L"mm", CFX_CSSNumberType::MilliMeters}, {L"pc", CFX_CSSNumberType::Picas},
264 {L"pt", CFX_CSSNumberType::Points}, {L"px", CFX_CSSNumberType::Pixels},
Dcfx_cssdeclaration.cpp33 CFX_CSSNumberType* pOutUnit) { in ParseCSSNumber()
44 *pOutUnit = CFX_CSSNumberType::Number; in ParseCSSNumber()
46 *pOutUnit = CFX_CSSNumberType::Percent; in ParseCSSNumber()
120 CFX_CSSNumberType eNumType; in ParseCSSColor()
124 rgb[i] = eNumType == CFX_CSSNumberType::Percent in ParseCSSColor()
291 CFX_CSSNumberType eUnit; in ParseNumber()
342 CFX_CSSNumberType eNumType; in ParseValueListProperty()
464 CFX_CSSNumberType eNumType; in ParseBorderProperty()
499 pdfium::MakeRetain<CFX_CSSNumberValue>(CFX_CSSNumberType::Number, 0.0f); in ParseBorderProperty()
576 CFX_CSSNumberType eNumType; in ParseFontProperty()
[all …]
Dcfx_cssdata.h31 CFX_CSSNumberType type;
Dcfx_cssstyleselector.cpp197 if (v->Kind() == CFX_CSSNumberType::Number) { in ApplyProperty()
349 CFX_CSSNumberType::Percent) { in ApplyProperty()
364 CFX_CSSNumberType::Percent) { in ApplyProperty()
481 if (v->Kind() == CFX_CSSNumberType::Percent) { in SetLengthWithPercent()