Chromium Code Reviews| Index: Source/core/css/CSSComputedStyleDeclaration.cpp |
| diff --git a/Source/core/css/CSSComputedStyleDeclaration.cpp b/Source/core/css/CSSComputedStyleDeclaration.cpp |
| index 4b9d6dc1acb3badb4ffcb229decf3b38eebb2f1a..0a113e37fda245dffe03b6968b96779dd79b2834 100644 |
| --- a/Source/core/css/CSSComputedStyleDeclaration.cpp |
| +++ b/Source/core/css/CSSComputedStyleDeclaration.cpp |
| @@ -1198,16 +1198,16 @@ PassRefPtrWillBeRawPtr<CSSValue> CSSComputedStyleDeclaration::getFontSizeCSSValu |
| return zoomAdjustedPixelValue(style->fontDescription().computedPixelSize(), *style); |
| } |
| -bool CSSComputedStyleDeclaration::useFixedFontDefaultSize() const |
| +FixedPitchFontType CSSComputedStyleDeclaration::fixedPitchFont() const |
|
Inactive
2014/06/27 12:57:53
nit: fixedPitchFontType()
h.joshi
2014/06/30 14:04:14
Done.
|
| { |
| if (!m_node) |
| - return false; |
| + return NonFixedPitchFont; |
| RefPtr<RenderStyle> style = m_node->computedStyle(m_pseudoElementSpecifier); |
| if (!style) |
| - return false; |
| + return NonFixedPitchFont; |
| - return style->fontDescription().useFixedDefaultSize(); |
| + return style->fontDescription().fixedPitchFont(); |
| } |
| PassRefPtrWillBeRawPtr<CSSValue> CSSComputedStyleDeclaration::valueForShadowData(const ShadowData& shadow, const RenderStyle& style, bool useSpread) const |