Home
last modified time | relevance | path

Searched refs:CFX_CSSNumberType (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()
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_cssdeclaration.cpp86 CFX_CSSNumberType wValue;
89 {0x0672, CFX_CSSNumberType::EMS},
90 {0x067D, CFX_CSSNumberType::EXS},
91 {0x1AF7, CFX_CSSNumberType::Inches},
92 {0x2F7A, CFX_CSSNumberType::MilliMeters},
93 {0x3ED3, CFX_CSSNumberType::Picas},
94 {0x3EE4, CFX_CSSNumberType::Points},
95 {0x3EE8, CFX_CSSNumberType::Pixels},
96 {0xFC30, CFX_CSSNumberType::CentiMeters},
181 CFX_CSSNumberType& eUnit) { in ParseCSSNumber()
[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_cssstyleselector.cpp195 if (v->Kind() == CFX_CSSNumberType::Number) { in ApplyProperty()
347 CFX_CSSNumberType::Percent) { in ApplyProperty()
362 CFX_CSSNumberType::Percent) { in ApplyProperty()
479 if (v->Kind() == CFX_CSSNumberType::Percent) { in SetLengthWithPercent()