Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(28)

Side by Side Diff: Source/core/layout/style/LayoutStyle.cpp

Issue 943463002: Initial implementation of font-size-adjust (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add some tests which need a rebaseline to TestExpectation Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/layout/style/LayoutStyle.h ('k') | Source/platform/RuntimeEnabledFeatures.in » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Antti Koivisto (koivisto@kde.org) 2 * Copyright (C) 1999 Antti Koivisto (koivisto@kde.org)
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved.
4 * Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved. 4 * Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 1165 matching lines...) Expand 10 before | Expand all | Expand 10 after
1176 rareNonInheritedData.access()->m_transitions = CSSTransitionData::create (); 1176 rareNonInheritedData.access()->m_transitions = CSSTransitionData::create ();
1177 return *rareNonInheritedData->m_transitions; 1177 return *rareNonInheritedData->m_transitions;
1178 } 1178 }
1179 1179
1180 const Font& LayoutStyle::font() const { return inherited->font; } 1180 const Font& LayoutStyle::font() const { return inherited->font; }
1181 const FontMetrics& LayoutStyle::fontMetrics() const { return inherited->font.fon tMetrics(); } 1181 const FontMetrics& LayoutStyle::fontMetrics() const { return inherited->font.fon tMetrics(); }
1182 const FontDescription& LayoutStyle::fontDescription() const { return inherited-> font.fontDescription(); } 1182 const FontDescription& LayoutStyle::fontDescription() const { return inherited-> font.fontDescription(); }
1183 float LayoutStyle::specifiedFontSize() const { return fontDescription().specifie dSize(); } 1183 float LayoutStyle::specifiedFontSize() const { return fontDescription().specifie dSize(); }
1184 float LayoutStyle::computedFontSize() const { return fontDescription().computedS ize(); } 1184 float LayoutStyle::computedFontSize() const { return fontDescription().computedS ize(); }
1185 int LayoutStyle::fontSize() const { return fontDescription().computedPixelSize() ; } 1185 int LayoutStyle::fontSize() const { return fontDescription().computedPixelSize() ; }
1186 float LayoutStyle::fontSizeAdjust() const { return fontDescription().sizeAdjust( ); }
1187 bool LayoutStyle::hasFontSizeAdjust() const { return fontDescription().sizeAdjus t() > 0; }
1186 FontWeight LayoutStyle::fontWeight() const { return fontDescription().weight(); } 1188 FontWeight LayoutStyle::fontWeight() const { return fontDescription().weight(); }
1187 FontStretch LayoutStyle::fontStretch() const { return fontDescription().stretch( ); } 1189 FontStretch LayoutStyle::fontStretch() const { return fontDescription().stretch( ); }
1188 1190
1189 TextDecoration LayoutStyle::textDecorationsInEffect() const 1191 TextDecoration LayoutStyle::textDecorationsInEffect() const
1190 { 1192 {
1191 int decorations = 0; 1193 int decorations = 0;
1192 1194
1193 const Vector<AppliedTextDecoration>& applied = appliedTextDecorations(); 1195 const Vector<AppliedTextDecoration>& applied = appliedTextDecorations();
1194 1196
1195 for (size_t i = 0; i < applied.size(); ++i) 1197 for (size_t i = 0; i < applied.size(); ++i)
(...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after
1711 horizontal || includeLogicalRightEdge); 1713 horizontal || includeLogicalRightEdge);
1712 1714
1713 edges[BSLeft] = BorderEdge(borderLeftWidth(), 1715 edges[BSLeft] = BorderEdge(borderLeftWidth(),
1714 visitedDependentColor(CSSPropertyBorderLeftColor), 1716 visitedDependentColor(CSSPropertyBorderLeftColor),
1715 borderLeftStyle(), 1717 borderLeftStyle(),
1716 borderLeftIsTransparent(), 1718 borderLeftIsTransparent(),
1717 !horizontal || includeLogicalLeftEdge); 1719 !horizontal || includeLogicalLeftEdge);
1718 } 1720 }
1719 1721
1720 } // namespace blink 1722 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/layout/style/LayoutStyle.h ('k') | Source/platform/RuntimeEnabledFeatures.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698