Lines Matching refs:pStyle
112 auto pStyle = m_pSelector->CreateComputedStyle(nullptr); in CreateRootStyle() local
120 pStyle->SetTextIndent(indent); in CreateRootStyle()
142 pStyle->SetTextAlign(hAlign); in CreateRootStyle()
148 pStyle->SetMarginWidth(rtMarginWidth); in CreateRootStyle()
153 pStyle->SetColor(font->GetColor()); in CreateRootStyle()
154 pStyle->SetFontStyle(font->IsItalic() ? CFX_CSSFontStyle::Italic in CreateRootStyle()
156 pStyle->SetFontWeight(font->IsBold() ? FXFONT_FW_BOLD : FXFONT_FW_NORMAL); in CreateRootStyle()
157 pStyle->SetNumberVerticalAlign(-font->GetBaselineShift()); in CreateRootStyle()
161 pStyle->SetLetterSpacing(letterSpacing); in CreateRootStyle()
170 pStyle->SetTextDecoration(dwDecoration); in CreateRootStyle()
172 pStyle->SetLineHeight(fLineHeight); in CreateRootStyle()
173 pStyle->SetFontSize(fFontSize); in CreateRootStyle()
174 return pStyle; in CreateRootStyle()
215 auto pStyle = CreateStyle(pParentStyle); in ComputeStyle() local
218 tagProvider->GetAttribute(L"align"), pStyle.Get()); in ComputeStyle()
219 return pStyle; in ComputeStyle()
318 float CXFA_TextParser::GetTabInterval(CFX_CSSComputedStyle* pStyle) const { in GetTabInterval()
320 if (pStyle && pStyle->GetCustomStyle(L"tab-interval", &wsValue)) in GetTabInterval()
325 int32_t CXFA_TextParser::CountTabs(CFX_CSSComputedStyle* pStyle) const { in CountTabs()
327 if (pStyle && pStyle->GetCustomStyle(L"xfa-tab-count", &wsValue)) in CountTabs()
332 bool CXFA_TextParser::IsSpaceRun(CFX_CSSComputedStyle* pStyle) const { in IsSpaceRun()
334 return pStyle && pStyle->GetCustomStyle(L"xfa-spacerun", &wsValue) && in IsSpaceRun()
341 CFX_CSSComputedStyle* pStyle) const { in GetFont()
353 if (pStyle) { in GetFont()
354 int32_t iCount = pStyle->CountFontFamilies(); in GetFont()
356 wsFamily = pStyle->GetFontFamily(iCount - 1).AsStringView(); in GetFont()
359 if (pStyle->GetFontWeight() > FXFONT_FW_NORMAL) in GetFont()
361 if (pStyle->GetFontStyle() == CFX_CSSFontStyle::Italic) in GetFont()
370 CFX_CSSComputedStyle* pStyle) const { in GetFontSize()
371 if (pStyle) in GetFontSize()
372 return pStyle->GetFontSize(); in GetFontSize()
379 CFX_CSSComputedStyle* pStyle, in GetHorScale() argument
381 if (pStyle) { in GetHorScale()
383 if (pStyle->GetCustomStyle(L"xfa-font-horizontal-scale", &wsValue)) in GetHorScale()
405 CFX_CSSComputedStyle* pStyle) const { in GetVerScale()
406 if (pStyle) { in GetVerScale()
408 if (pStyle->GetCustomStyle(L"xfa-font-vertical-scale", &wsValue)) in GetVerScale()
417 CFX_CSSComputedStyle* pStyle, in GetUnderline() argument
423 if (!pStyle) { in GetUnderline()
431 uint32_t dwDecoration = pStyle->GetTextDecoration(); in GetUnderline()
438 if (pStyle->GetCustomStyle(L"underlinePeriod", &wsValue)) { in GetUnderline()
447 CFX_CSSComputedStyle* pStyle, in GetLinethrough() argument
450 if (pStyle) { in GetLinethrough()
451 uint32_t dwDecoration = pStyle->GetTextDecoration(); in GetLinethrough()
463 CFX_CSSComputedStyle* pStyle) const { in GetColor()
464 if (pStyle) in GetColor()
465 return pStyle->GetColor(); in GetColor()
472 CFX_CSSComputedStyle* pStyle) const { in GetBaseline()
473 if (pStyle) { in GetBaseline()
474 if (pStyle->GetVerticalAlign() == CFX_CSSVerticalAlign::Number) in GetBaseline()
475 return pStyle->GetNumberVerticalAlign(); in GetBaseline()
485 CFX_CSSComputedStyle* pStyle, in GetLineHeight() argument
489 if (pStyle) { in GetLineHeight()
490 fLineHeight = pStyle->GetLineHeight(); in GetLineHeight()
498 float fFontSize = GetFontSize(pTextProvider, pStyle); in GetLineHeight()
504 fLineHeight = GetFontSize(pTextProvider, pStyle) * 1.2f; in GetLineHeight()
546 bool CXFA_TextParser::GetTabstops(CFX_CSSComputedStyle* pStyle, in GetTabstops() argument
548 if (!pStyle || !pTabstopContext) in GetTabstops()
552 if (!pStyle->GetCustomStyle(L"xfa-tab-stops", &wsValue) && in GetTabstops()
553 !pStyle->GetCustomStyle(L"tab-stops", &wsValue)) { in GetTabstops()