Home
last modified time | relevance | path

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

/external/pdfium/xfa/fde/css/
Dcfde_cssnumbervalue.cpp9 CFDE_CSSNumberValue::CFDE_CSSNumberValue(FDE_CSSNumberType type, FX_FLOAT value) in CFDE_CSSNumberValue()
11 if (type_ == FDE_CSSNumberType::Number && FXSYS_fabs(value_) < 0.001f) in CFDE_CSSNumberValue()
19 case FDE_CSSNumberType::Pixels: in Apply()
20 case FDE_CSSNumberType::Number: in Apply()
22 case FDE_CSSNumberType::EMS: in Apply()
23 case FDE_CSSNumberType::EXS: in Apply()
25 case FDE_CSSNumberType::Percent: in Apply()
27 case FDE_CSSNumberType::CentiMeters: in Apply()
29 case FDE_CSSNumberType::MilliMeters: in Apply()
31 case FDE_CSSNumberType::Inches: in Apply()
[all …]
Dcfde_cssstylesheet_unittest.cpp50 void VerifyFloat(FDE_CSSProperty prop, float val, FDE_CSSNumberType type) { in VerifyFloat()
112 FDE_CSSNumberType::Pixels); in TEST_F()
114 FDE_CSSNumberType::Pixels); in TEST_F()
115 VerifyFloat(FDE_CSSProperty::BorderTopWidth, 10.0, FDE_CSSNumberType::Pixels); in TEST_F()
117 FDE_CSSNumberType::Pixels); in TEST_F()
165 FDE_CSSNumberType::Pixels); in TEST_F()
167 FDE_CSSNumberType::Pixels); in TEST_F()
168 VerifyFloat(FDE_CSSProperty::BorderTopWidth, 10.0, FDE_CSSNumberType::Pixels); in TEST_F()
170 FDE_CSSNumberType::Pixels); in TEST_F()
197 VerifyFloat(FDE_CSSProperty::BorderLeftWidth, 5.0, FDE_CSSNumberType::Pixels); in TEST_F()
[all …]
Dcfde_cssnumbervalue.h13 enum class FDE_CSSNumberType { enum
28 CFDE_CSSNumberValue(FDE_CSSNumberType type, FX_FLOAT value);
32 FDE_CSSNumberType Kind() const { return type_; } in Kind()
37 FDE_CSSNumberType type_;
Dfde_cssdatatable.cpp177 {0x0672, FDE_CSSNumberType::EMS},
178 {0x067D, FDE_CSSNumberType::EXS},
179 {0x1AF7, FDE_CSSNumberType::Inches},
180 {0x2F7A, FDE_CSSNumberType::MilliMeters},
181 {0x3ED3, FDE_CSSNumberType::Picas},
182 {0x3EE4, FDE_CSSNumberType::Points},
183 {0x3EE8, FDE_CSSNumberType::Pixels},
184 {0xFC30, FDE_CSSNumberType::CentiMeters},
Dcfde_cssdeclaration.cpp29 FDE_CSSNumberType& eUnit) { in ParseCSSNumber()
38 eUnit = FDE_CSSNumberType::Number; in ParseCSSNumber()
40 eUnit = FDE_CSSNumberType::Percent; in ParseCSSNumber()
111 FDE_CSSNumberType eNumType; in ParseCSSColor()
115 rgb[i] = eNumType == FDE_CSSNumberType::Percent in ParseCSSColor()
283 FDE_CSSNumberType eUnit; in ParseNumber()
338 FDE_CSSNumberType eNumType; in ParseValueListProperty()
461 FDE_CSSNumberType eNumType; in ParseBorderProperty()
494 pWidth = pdfium::MakeRetain<CFDE_CSSNumberValue>(FDE_CSSNumberType::Number, in ParseBorderProperty()
573 FDE_CSSNumberType eNumType; in ParseFontProperty()
[all …]
Dfde_cssdatatable.h36 FDE_CSSNumberType wValue;
Dcfde_cssstyleselector.cpp200 if (v->Kind() == FDE_CSSNumberType::Number) { in ApplyProperty()
352 FDE_CSSNumberType::Percent) { in ApplyProperty()
367 FDE_CSSNumberType::Percent) { in ApplyProperty()
484 if (v->Kind() == FDE_CSSNumberType::Percent) { in SetLengthWithPercent()