Home | History | Annotate | Download | only in resolver

Lines Matching refs:scope

100     FontDescriptionChangeScope scope(this);
102 scope.reset();
103 setFontFamilyToStandard(scope.fontDescription(), m_document);
104 scope.fontDescription().setKeywordSize(CSSValueMedium - CSSValueXxSmall + 1);
105 setSize(scope.fontDescription(), effectiveZoom, FontSize::fontSizeForKeyword(m_document, CSSValueMedium, false));
110 FontDescriptionChangeScope scope(this);
112 scope.set(fontDescription);
122 FontDescriptionChangeScope scope(this);
139 scope.set(fontDescription);
144 FontDescriptionChangeScope scope(this);
146 setFontFamilyToStandard(scope.fontDescription(), m_document);
151 FontDescriptionChangeScope scope(this);
153 scope.fontDescription().setGenericFamily(parentFontDescription.genericFamily());
154 scope.fontDescription().setFamily(parentFontDescription.family());
160 FontDescriptionChangeScope scope(this);
165 FontFamily& firstFamily = scope.fontDescription().firstFamily();
169 bool oldFamilyUsedFixedDefaultSize = scope.fontDescription().useFixedDefaultSize();
170 scope.fontDescription().setGenericFamily(FontDescription::NoFamily);
188 scope.fontDescription().setGenericFamily(FontDescription::SerifFamily);
192 scope.fontDescription().setGenericFamily(FontDescription::SansSerifFamily);
196 scope.fontDescription().setGenericFamily(FontDescription::CursiveFamily);
200 scope.fontDescription().setGenericFamily(FontDescription::FantasyFamily);
204 scope.fontDescription().setGenericFamily(FontDescription::MonospaceFamily);
208 scope.fontDescription().setGenericFamily(FontDescription::PictographFamily);
235 if (scope.fontDescription().keywordSize() && scope.fontDescription().useFixedDefaultSize() != oldFamilyUsedFixedDefaultSize)
236 scope.fontDescription().setSpecifiedSize(FontSize::fontSizeForKeyword(m_document, CSSValueXxSmall + scope.fontDescription().keywordSize() - 1, !oldFamilyUsedFixedDefaultSize));
241 FontDescriptionChangeScope scope(this);
243 float size = FontSize::fontSizeForKeyword(m_document, CSSValueMedium, scope.fontDescription().useFixedDefaultSize());
248 scope.fontDescription().setKeywordSize(CSSValueMedium - CSSValueXxSmall + 1);
249 scope.fontDescription().setSpecifiedSize(size);
254 FontDescriptionChangeScope scope(this);
261 scope.fontDescription().setKeywordSize(parentFontDescription.keywordSize());
262 scope.fontDescription().setSpecifiedSize(size);
285 FontDescriptionChangeScope scope(this);
287 scope.fontDescription().setKeywordSize(0);
308 size = FontSize::fontSizeForKeyword(m_document, valueID, scope.fontDescription().useFixedDefaultSize());
309 scope.fontDescription().setKeywordSize(valueID - CSSValueXxSmall + 1);
321 scope.fontDescription().setIsAbsoluteSize(parentIsAbsoluteSize && (valueID == CSSValueLarger || valueID == CSSValueSmaller));
323 scope.fontDescription().setIsAbsoluteSize(parentIsAbsoluteSize || !(primitiveValue->isPercentage() || primitiveValue->isFontRelativeLength()));
350 scope.fontDescription().setSpecifiedSize(size);
355 FontDescriptionChangeScope scope(this);
357 scope.fontDescription().setWeight(fontWeight);
362 FontDescriptionChangeScope scope(this);
364 scope.fontDescription().setWeight(scope.fontDescription().bolderWeight());
369 FontDescriptionChangeScope scope(this);
371 scope.fontDescription().setWeight(scope.fontDescription().lighterWeight());
376 FontDescriptionChangeScope scope(this);
378 scope.fontDescription().setCommonLigaturesState(FontDescription::NormalLigaturesState);
379 scope.fontDescription().setDiscretionaryLigaturesState(FontDescription::NormalLigaturesState);
380 scope.fontDescription().setHistoricalLigaturesState(FontDescription::NormalLigaturesState);
381 scope.fontDescription().setContextualLigaturesState(FontDescription::NormalLigaturesState);
386 FontDescriptionChangeScope scope(this);
388 scope.fontDescription().setCommonLigaturesState(parentFontDescription.commonLigaturesState());
389 scope.fontDescription().setDiscretionaryLigaturesState(parentFontDescription.discretionaryLigaturesState());
390 scope.fontDescription().setHistoricalLigaturesState(parentFontDescription.historicalLigaturesState());
391 scope.fontDescription().setContextualLigaturesState(parentFontDescription.historicalLigaturesState());
396 FontDescriptionChangeScope scope(this);
449 scope.fontDescription().setCommonLigaturesState(commonLigaturesState);
450 scope.fontDescription().setDiscretionaryLigaturesState(discretionaryLigaturesState);
451 scope.fontDescription().setHistoricalLigaturesState(historicalLigaturesState);
452 scope.fontDescription().setContextualLigaturesState(contextualLigaturesState);
457 FontDescriptionChangeScope scope(this);
459 scope.fontDescription().setLocale(locale);
460 scope.fontDescription().setScript(localeToScriptCodeForFontSelection(locale));
465 FontDescriptionChangeScope scope(this);
467 scope.fontDescription().setStyle(italic);
472 FontDescriptionChangeScope scope(this);
474 scope.fontDescription().setVariant(smallCaps);
479 FontDescriptionChangeScope scope(this);
481 scope.fontDescription().setTextRendering(textRenderingMode);
486 FontDescriptionChangeScope scope(this);
488 scope.fontDescription().setKerning(kerning);
493 FontDescriptionChangeScope scope(this);
495 scope.fontDescription().setFontSmoothing(foontSmoothingMode);
500 FontDescriptionChangeScope scope(this);
503 scope.set(scope.fontDescription().makeNormalFeatureSettings());
508 FontDescriptionChangeScope scope(this);
520 scope.fontDescription().setFeatureSettings(settings.release());
584 FontDescriptionChangeScope scope(this);
586 if (scope.fontDescription().orientation() == fontOrientation && scope.fontDescription().nonCJKGlyphOrientation() == glyphOrientation)
589 scope.fontDescription().setNonCJKGlyphOrientation(glyphOrientation);
590 scope.fontDescription().setOrientation(fontOrientation);
595 FontDescriptionChangeScope scope(this);
597 if (scope.fontDescription().isAbsoluteSize() || !parentStyle)
601 if (scope.fontDescription().useFixedDefaultSize() == parentFontDescription.useFixedDefaultSize())
605 if (scope.fontDescription().genericFamily() != FontDescription::MonospaceFamily
614 if (scope.fontDescription().keywordSize()) {
615 size = FontSize::fontSizeForKeyword(m_document, CSSValueXxSmall + scope.fontDescription().keywordSize() - 1, scope.fontDescription().useFixedDefaultSize());
622 scope.fontDescription().specifiedSize() / fixedScaleFactor :
623 scope.fontDescription().specifiedSize() * fixedScaleFactor;
626 setSize(scope.fontDescription(), style->effectiveZoom(), size);
631 FontDescriptionChangeScope scope(this);
633 scope.fontDescription().setComputedSize(getComputedSizeFromSpecifiedSize(scope.fontDescription(), style->effectiveZoom(), scope.fontDescription().specifiedSize()));