Searched refs:CFX_CSSNumberType (Results 1 – 7 of 7) sorted by relevance
/external/pdfium/core/fxcrt/css/ |
D | cfx_cssnumbervalue.cpp | 9 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 …]
|
D | cfx_cssstylesheet_unittest.cpp | 50 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 …]
|
D | cfx_cssnumbervalue.h | 13 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_;
|
D | cfx_cssdata.cpp | 261 {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},
|
D | cfx_cssdeclaration.cpp | 33 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 …]
|
D | cfx_cssdata.h | 31 CFX_CSSNumberType type;
|
D | cfx_cssstyleselector.cpp | 197 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()
|