Home | History | Annotate | Download | only in css

Lines Matching defs:fontDescription

1216     FontDescription fontDescription;
1217 fontDescription.setUsePrinterFont(document->printing());
1219 fontDescription.setRenderingMode(settings->fontRenderingMode());
1224 fontDescription.firstFamily().setFamily(stdfont);
1225 fontDescription.firstFamily().appendFamily(0);
1227 fontDescription.setKeywordSize(CSSValueMedium - CSSValueXxSmall + 1);
1229 fontDescription.setSpecifiedSize(size);
1231 fontDescription.setComputedSize(CSSStyleSelector::getComputedSizeFromSpecifiedSize(document, documentStyle.get(), fontDescription.isAbsoluteSize(), size, useSVGZoomRules));
1234 documentStyle->setFontDescription(fontDescription);
3653 FontDescription fontDescription = m_style->fontDescription();
3655 fontDescription.setItalic(m_parentStyle->fontDescription().italic());
3657 fontDescription.setItalic(false);
3665 fontDescription.setItalic(true);
3668 fontDescription.setItalic(false);
3674 if (m_style->setFontDescription(fontDescription))
3681 FontDescription fontDescription = m_style->fontDescription();
3683 fontDescription.setSmallCaps(m_parentStyle->fontDescription().smallCaps());
3685 fontDescription.setSmallCaps(false);
3691 fontDescription.setSmallCaps(false);
3693 fontDescription.setSmallCaps(true);
3697 if (m_style->setFontDescription(fontDescription))
3704 FontDescription fontDescription = m_style->fontDescription();
3706 fontDescription.setWeight(m_parentStyle->fontDescription().weight());
3708 fontDescription.setWeight(FontWeightNormal);
3715 fontDescription.setWeight(fontDescription.bolderWeight());
3718 fontDescription.setWeight(fontDescription.lighterWeight());
3722 fontDescription.setWeight(FontWeightBold);
3726 fontDescription.setWeight(FontWeightNormal);
3729 fontDescription.setWeight(FontWeight900);
3732 fontDescription.setWeight(FontWeight800);
3735 fontDescription.setWeight(FontWeight600);
3738 fontDescription.setWeight(FontWeight500);
3741 fontDescription.setWeight(FontWeight300);
3744 fontDescription.setWeight(FontWeight200);
3747 fontDescription.setWeight(FontWeight100);
3755 if (m_style->setFontDescription(fontDescription))
3955 FontDescription fontDescription = m_style->fontDescription();
3957 fontDescription.setFontSmoothing(m_parentStyle->fontDescription().fontSmoothing());
3959 fontDescription.setFontSmoothing(AutoSmoothing);
3982 fontDescription.setFontSmoothing(smoothing);
3984 if (m_style->setFontDescription(fontDescription))
4300 FontDescription fontDescription = m_style->fontDescription();
4301 fontDescription.setKeywordSize(0);
4307 oldSize = m_parentStyle->fontDescription().specifiedSize();
4308 parentIsAbsoluteSize = m_parentStyle->fontDescription().isAbsoluteSize();
4314 fontDescription.setKeywordSize(m_parentStyle->fontDescription().keywordSize());
4316 size = fontSizeForKeyword(m_checker.m_document, CSSValueMedium, fontDescription.useFixedDefaultSize());
4317 fontDescription.setKeywordSize(CSSValueMedium - CSSValueXxSmall + 1);
4329 size = fontSizeForKeyword(m_checker.m_document, primitiveValue->getIdent(), fontDescription.useFixedDefaultSize());
4330 fontDescription.setKeywordSize(primitiveValue->getIdent() - CSSValueXxSmall + 1);
4342 fontDescription.setIsAbsoluteSize(parentIsAbsoluteSize &&
4347 fontDescription.setIsAbsoluteSize(parentIsAbsoluteSize ||
4363 setFontSize(fontDescription, size);
4364 if (m_style->setFontDescription(fontDescription))
4623 FontDescription parentFontDescription = m_parentStyle->fontDescription();
4624 FontDescription fontDescription = m_style->fontDescription();
4625 fontDescription.setGenericFamily(parentFontDescription.genericFamily());
4626 fontDescription.setFamily(parentFontDescription.firstFamily());
4627 fontDescription.setIsSpecifiedFont(parentFontDescription.isSpecifiedFont());
4628 if (m_style->setFontDescription(fontDescription))
4632 FontDescription initialDesc = FontDescription();
4633 FontDescription fontDescription = m_style->fontDescription();
4636 if (fontDescription.keywordSize() && fontDescription.useFixedDefaultSize())
4637 setFontSize(fontDescription, fontSizeForKeyword(m_checker.m_document, CSSValueXxSmall + fontDescription.keywordSize() - 1, false));
4638 fontDescription.setGenericFamily(initialDesc.genericFamily());
4640 fontDescription.setFamily(initialDesc.firstFamily());
4641 if (m_style->setFontDescription(fontDescription))
4648 FontDescription fontDescription = m_style->fontDescription();
4651 FontFamily& firstFamily = fontDescription.firstFamily();
4655 bool oldFamilyUsedFixedDefaultSize = fontDescription.useFixedDefaultSize();
4656 fontDescription.setGenericFamily(FontDescription::NoFamily);
4675 fontDescription.setGenericFamily(FontDescription::SerifFamily);
4679 fontDescription.setGenericFamily(FontDescription::SansSerifFamily);
4683 fontDescription.setGenericFamily(FontDescription::CursiveFamily);
4687 fontDescription.setGenericFamily(FontDescription::FantasyFamily);
4691 fontDescription.setGenericFamily(FontDescription::MonospaceFamily);
4702 fontDescription.setIsSpecifiedFont(fontDescription.genericFamily() == FontDescription::NoFamily);
4715 if (fontDescription.keywordSize() && fontDescription.useFixedDefaultSize() != oldFamilyUsedFixedDefaultSize)
4716 setFontSize(fontDescription, fontSizeForKeyword(m_checker.m_document, CSSValueXxSmall + fontDescription.keywordSize() - 1, !oldFamilyUsedFixedDefaultSize));
4718 if (m_style->setFontDescription(fontDescription))
4918 FontDescription fontDescription = m_parentStyle->fontDescription();
4921 if (m_style->setFontDescription(fontDescription))
4928 FontDescription fontDescription;
4929 fontDescription.setGenericFamily(FontDescription::StandardFamily);
4930 fontDescription.setRenderingMode(settings->fontRenderingMode());
4931 fontDescription.setUsePrinterFont(m_checker.m_document->printing());
4934 fontDescription.firstFamily().setFamily(standardFontFamily);
4935 fontDescription.firstFamily().appendFamily(0);
4937 fontDescription.setKeywordSize(CSSValueMedium - CSSValueXxSmall + 1);
4938 setFontSize(fontDescription, fontSizeForKeyword(m_checker.m_document, CSSValueMedium, false));
4941 if (m_style->setFontDescription(fontDescription))
4947 FontDescription fontDescription;
4948 RenderTheme::defaultTheme()->systemFont(primitiveValue->getIdent(), fontDescription);
4951 if (fontDescription.isAbsoluteSize()) {
4957 fontDescription.setRenderingMode(settings->fontRenderingMode());
4958 fontDescription.setUsePrinterFont(m_checker.m_document->printing());
4961 fontDescription.setComputedSize(getComputedSizeFromSpecifiedSize(m_checker.m_document, m_style.get(), fontDescription.isAbsoluteSize(), fontDescription.specifiedSize(), useSVGZoomRules(m_element)));
4962 if (m_style->setFontDescription(fontDescription))
5125 FontDescription fontDescription = m_style->fontDescription();
5127 fontDescription.setTextRenderingMode(m_parentStyle->fontDescription().textRenderingMode());
5129 fontDescription.setTextRenderingMode(AutoTextRendering);
5133 fontDescription.setTextRenderingMode(*primitiveValue);
5135 if (m_style->setFontDescription(fontDescription))
5916 FontDescription fontDescription = m_style->fontDescription();
5917 fontDescription.setOrientation(m_style->isHorizontalWritingMode() ? Horizontal : Vertical);
5918 if (m_style->setFontDescription(fontDescription))
5986 result = m_parentStyle->fontDescription().textOrientation();
5992 FontDescription fontDescription = m_style->fontDescription();
5993 if (fontDescription.textOrientation() != result) {
5994 fontDescription.setTextOrientation(result);
5995 if (m_style->setFontDescription(fontDescription))
6742 FontDescription newFontDescription(m_style->fontDescription());
6752 const FontDescription& childFont = style->fontDescription();
6753 FontDescription newFontDescription(childFont);
6760 const FontDescription& childFont = style->fontDescription();
6765 const FontDescription& parentFont = parentStyle->fontDescription();
6770 if (childFont.genericFamily() != FontDescription::MonospaceFamily &&
6771 parentFont.genericFamily() != FontDescription::MonospaceFamily)
6791 FontDescription newFontDescription(childFont);
6796 void CSSStyleSelector::setFontSize(FontDescription& fontDescription, float size)
6798 fontDescription.setSpecifiedSize(size);
6801 fontDescription.setComputedSize(getComputedSizeFromSpecifiedSize(m_checker.m_document, m_style.get(), fontDescription.isAbsoluteSize(), size, useSVGZoomRules));