| OLD | NEW | 
|    1 /* |    1 /* | 
|    2  * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |    2  * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 
|    3  * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. |    3  * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. | 
|    4  * All rights reserved. |    4  * All rights reserved. | 
|    5  * Copyright (C) 2013 Google Inc. All rights reserved. |    5  * Copyright (C) 2013 Google Inc. All rights reserved. | 
|    6  * Copyright (C) 2015 Collabora Ltd. All rights reserved. |    6  * Copyright (C) 2015 Collabora Ltd. All rights reserved. | 
|    7  * |    7  * | 
|    8  * This library is free software; you can redistribute it and/or |    8  * This library is free software; you can redistribute it and/or | 
|    9  * modify it under the terms of the GNU Library General Public |    9  * modify it under the terms of the GNU Library General Public | 
|   10  * License as published by the Free Software Foundation; either |   10  * License as published by the Free Software Foundation; either | 
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  175 } |  175 } | 
|  176  |  176  | 
|  177 void FontBuilder::setFontSmoothing(FontSmoothingMode foontSmoothingMode) { |  177 void FontBuilder::setFontSmoothing(FontSmoothingMode foontSmoothingMode) { | 
|  178   set(PropertySetFlag::FontSmoothing); |  178   set(PropertySetFlag::FontSmoothing); | 
|  179  |  179  | 
|  180   m_fontDescription.setFontSmoothing(foontSmoothingMode); |  180   m_fontDescription.setFontSmoothing(foontSmoothingMode); | 
|  181 } |  181 } | 
|  182  |  182  | 
|  183 void FontBuilder::setFeatureSettings(PassRefPtr<FontFeatureSettings> settings) { |  183 void FontBuilder::setFeatureSettings(PassRefPtr<FontFeatureSettings> settings) { | 
|  184   set(PropertySetFlag::FeatureSettings); |  184   set(PropertySetFlag::FeatureSettings); | 
 |  185   m_fontDescription.setFeatureSettings(std::move(settings)); | 
 |  186 } | 
|  185  |  187  | 
|  186   m_fontDescription.setFeatureSettings(std::move(settings)); |  188 void FontBuilder::setVariationSettings( | 
 |  189     PassRefPtr<FontVariationSettings> settings) { | 
 |  190   set(PropertySetFlag::VariationSettings); | 
 |  191   m_fontDescription.setVariationSettings(std::move(settings)); | 
|  187 } |  192 } | 
|  188  |  193  | 
|  189 void FontBuilder::setFamilyDescription( |  194 void FontBuilder::setFamilyDescription( | 
|  190     FontDescription& fontDescription, |  195     FontDescription& fontDescription, | 
|  191     const FontDescription::FamilyDescription& familyDescription) { |  196     const FontDescription::FamilyDescription& familyDescription) { | 
|  192   set(PropertySetFlag::Family); |  197   set(PropertySetFlag::Family); | 
|  193  |  198  | 
|  194   bool isInitial = |  199   bool isInitial = | 
|  195       familyDescription.genericFamily == FontDescription::StandardFamily && |  200       familyDescription.genericFamily == FontDescription::StandardFamily && | 
|  196       familyDescription.family.familyIsEmpty(); |  201       familyDescription.family.familyIsEmpty(); | 
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  373   if (isSet(PropertySetFlag::Locale)) |  378   if (isSet(PropertySetFlag::Locale)) | 
|  374     description.setLocale(m_fontDescription.locale()); |  379     description.setLocale(m_fontDescription.locale()); | 
|  375   if (isSet(PropertySetFlag::Style)) |  380   if (isSet(PropertySetFlag::Style)) | 
|  376     description.setStyle(m_fontDescription.style()); |  381     description.setStyle(m_fontDescription.style()); | 
|  377   if (isSet(PropertySetFlag::VariantCaps)) |  382   if (isSet(PropertySetFlag::VariantCaps)) | 
|  378     description.setVariantCaps(m_fontDescription.variantCaps()); |  383     description.setVariantCaps(m_fontDescription.variantCaps()); | 
|  379   if (isSet(PropertySetFlag::VariantLigatures)) |  384   if (isSet(PropertySetFlag::VariantLigatures)) | 
|  380     description.setVariantLigatures(m_fontDescription.getVariantLigatures()); |  385     description.setVariantLigatures(m_fontDescription.getVariantLigatures()); | 
|  381   if (isSet(PropertySetFlag::VariantNumeric)) |  386   if (isSet(PropertySetFlag::VariantNumeric)) | 
|  382     description.setVariantNumeric(m_fontDescription.variantNumeric()); |  387     description.setVariantNumeric(m_fontDescription.variantNumeric()); | 
 |  388   if (isSet(PropertySetFlag::VariationSettings)) | 
 |  389     description.setVariationSettings(m_fontDescription.variationSettings()); | 
|  383   if (isSet(PropertySetFlag::TextRendering)) |  390   if (isSet(PropertySetFlag::TextRendering)) | 
|  384     description.setTextRendering(m_fontDescription.textRendering()); |  391     description.setTextRendering(m_fontDescription.textRendering()); | 
|  385   if (isSet(PropertySetFlag::Kerning)) |  392   if (isSet(PropertySetFlag::Kerning)) | 
|  386     description.setKerning(m_fontDescription.getKerning()); |  393     description.setKerning(m_fontDescription.getKerning()); | 
|  387   if (isSet(PropertySetFlag::FontSmoothing)) |  394   if (isSet(PropertySetFlag::FontSmoothing)) | 
|  388     description.setFontSmoothing(m_fontDescription.fontSmoothing()); |  395     description.setFontSmoothing(m_fontDescription.fontSmoothing()); | 
|  389   if (isSet(PropertySetFlag::TextOrientation) || |  396   if (isSet(PropertySetFlag::TextOrientation) || | 
|  390       isSet(PropertySetFlag::WritingMode)) |  397       isSet(PropertySetFlag::WritingMode)) | 
|  391     updateOrientation(description, style); |  398     updateOrientation(description, style); | 
|  392  |  399  | 
| (...skipping 17 matching lines...) Expand all  Loading... | 
|  410           FontDescription::Size(FontSize::initialKeywordSize(), 0.0f, false)); |  417           FontDescription::Size(FontSize::initialKeywordSize(), 0.0f, false)); | 
|  411   updateSpecifiedSize(fontDescription, documentStyle); |  418   updateSpecifiedSize(fontDescription, documentStyle); | 
|  412   updateComputedSize(fontDescription, documentStyle); |  419   updateComputedSize(fontDescription, documentStyle); | 
|  413  |  420  | 
|  414   updateOrientation(fontDescription, documentStyle); |  421   updateOrientation(fontDescription, documentStyle); | 
|  415   documentStyle.setFontDescription(fontDescription); |  422   documentStyle.setFontDescription(fontDescription); | 
|  416   documentStyle.font().update(fontSelector); |  423   documentStyle.font().update(fontSelector); | 
|  417 } |  424 } | 
|  418  |  425  | 
|  419 }  // namespace blink |  426 }  // namespace blink | 
| OLD | NEW |