Lines Matching refs:pStyle
96 auto pStyle = m_pSelector->CreateComputedStyle(nullptr); in CreateRootStyle() local
104 pStyle->SetTextIndent(indent); in CreateRootStyle()
126 pStyle->SetTextAlign(hAlign); in CreateRootStyle()
132 pStyle->SetMarginWidth(rtMarginWidth); in CreateRootStyle()
137 pStyle->SetColor(font->GetColor()); in CreateRootStyle()
138 pStyle->SetFontStyle(font->IsItalic() ? CFX_CSSFontStyle::Italic in CreateRootStyle()
140 pStyle->SetFontWeight(font->IsBold() ? FXFONT_FW_BOLD : FXFONT_FW_NORMAL); in CreateRootStyle()
141 pStyle->SetNumberVerticalAlign(-font->GetBaselineShift()); in CreateRootStyle()
145 pStyle->SetLetterSpacing(letterSpacing); in CreateRootStyle()
154 pStyle->SetTextDecoration(dwDecoration); in CreateRootStyle()
156 pStyle->SetLineHeight(fLineHeight); in CreateRootStyle()
157 pStyle->SetFontSize(fFontSize); in CreateRootStyle()
158 return pStyle; in CreateRootStyle()
199 auto pStyle = CreateStyle(pParentStyle); in ComputeStyle() local
202 tagProvider->GetAttribute(L"align"), pStyle.Get()); in ComputeStyle()
203 return pStyle; in ComputeStyle()
304 float CXFA_TextParser::GetTabInterval(CFX_CSSComputedStyle* pStyle) const { in GetTabInterval()
306 if (pStyle && pStyle->GetCustomStyle(L"tab-interval", wsValue)) in GetTabInterval()
311 int32_t CXFA_TextParser::CountTabs(CFX_CSSComputedStyle* pStyle) const { in CountTabs()
313 if (pStyle && pStyle->GetCustomStyle(L"xfa-tab-count", wsValue)) in CountTabs()
318 bool CXFA_TextParser::IsSpaceRun(CFX_CSSComputedStyle* pStyle) const { in IsSpaceRun()
320 if (pStyle && pStyle->GetCustomStyle(L"xfa-spacerun", wsValue)) { in IsSpaceRun()
330 CFX_CSSComputedStyle* pStyle) const { in GetFont()
342 if (pStyle) { in GetFont()
343 int32_t iCount = pStyle->CountFontFamilies(); in GetFont()
345 wsFamily = pStyle->GetFontFamily(iCount - 1).AsStringView(); in GetFont()
348 if (pStyle->GetFontWeight() > FXFONT_FW_NORMAL) in GetFont()
350 if (pStyle->GetFontStyle() == CFX_CSSFontStyle::Italic) in GetFont()
359 CFX_CSSComputedStyle* pStyle) const { in GetFontSize()
360 if (pStyle) in GetFontSize()
361 return pStyle->GetFontSize(); in GetFontSize()
368 CFX_CSSComputedStyle* pStyle, in GetHorScale() argument
370 if (pStyle) { in GetHorScale()
372 if (pStyle->GetCustomStyle(L"xfa-font-horizontal-scale", wsValue)) in GetHorScale()
394 CFX_CSSComputedStyle* pStyle) const { in GetVerScale()
395 if (pStyle) { in GetVerScale()
397 if (pStyle->GetCustomStyle(L"xfa-font-vertical-scale", wsValue)) in GetVerScale()
406 CFX_CSSComputedStyle* pStyle, in GetUnderline() argument
412 if (!pStyle) { in GetUnderline()
420 uint32_t dwDecoration = pStyle->GetTextDecoration(); in GetUnderline()
427 if (pStyle->GetCustomStyle(L"underlinePeriod", wsValue)) { in GetUnderline()
436 CFX_CSSComputedStyle* pStyle, in GetLinethrough() argument
438 if (pStyle) { in GetLinethrough()
439 uint32_t dwDecoration = pStyle->GetTextDecoration(); in GetLinethrough()
450 CFX_CSSComputedStyle* pStyle) const { in GetColor()
451 if (pStyle) in GetColor()
452 return pStyle->GetColor(); in GetColor()
459 CFX_CSSComputedStyle* pStyle) const { in GetBaseline()
460 if (pStyle) { in GetBaseline()
461 if (pStyle->GetVerticalAlign() == CFX_CSSVerticalAlign::Number) in GetBaseline()
462 return pStyle->GetNumberVerticalAlign(); in GetBaseline()
472 CFX_CSSComputedStyle* pStyle, in GetLineHeight() argument
476 if (pStyle) { in GetLineHeight()
477 fLineHeight = pStyle->GetLineHeight(); in GetLineHeight()
485 float fFontSize = GetFontSize(pTextProvider, pStyle); in GetLineHeight()
491 fLineHeight = GetFontSize(pTextProvider, pStyle) * 1.2f; in GetLineHeight()
544 bool CXFA_TextParser::GetTabstops(CFX_CSSComputedStyle* pStyle, in GetTabstops() argument
546 if (!pStyle || !pTabstopContext) in GetTabstops()
550 if (!pStyle->GetCustomStyle(L"xfa-tab-stops", wsValue) && in GetTabstops()
551 !pStyle->GetCustomStyle(L"tab-stops", wsValue)) { in GetTabstops()