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

Side by Side Diff: Source/core/style/ComputedStyle.cpp

Issue 1119663002: Making Unicode character names consistent (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Code changes to correct Test Expectation Created 5 years, 7 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
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 1115 matching lines...) Expand 10 before | Expand all | Expand 10 after
1126 it->value.clearReset(); 1126 it->value.clearReset();
1127 } 1127 }
1128 1128
1129 const AtomicString& ComputedStyle::hyphenString() const 1129 const AtomicString& ComputedStyle::hyphenString() const
1130 { 1130 {
1131 const AtomicString& hyphenationString = rareInheritedData.get()->hyphenation String; 1131 const AtomicString& hyphenationString = rareInheritedData.get()->hyphenation String;
1132 if (!hyphenationString.isNull()) 1132 if (!hyphenationString.isNull())
1133 return hyphenationString; 1133 return hyphenationString;
1134 1134
1135 // FIXME: This should depend on locale. 1135 // FIXME: This should depend on locale.
1136 DEFINE_STATIC_LOCAL(AtomicString, hyphenMinusString, (&hyphenMinus, 1)); 1136 DEFINE_STATIC_LOCAL(AtomicString, hyphenMinusString, (&characterHyphenMinus, 1));
1137 DEFINE_STATIC_LOCAL(AtomicString, hyphenString, (&hyphen, 1)); 1137 DEFINE_STATIC_LOCAL(AtomicString, hyphenString, (&characterHyphen, 1));
1138 return font().primaryFontHasGlyphForCharacter(hyphen) ? hyphenString : hyphe nMinusString; 1138 return font().primaryFontHasGlyphForCharacter(characterHyphen) ? hyphenStrin g : hyphenMinusString;
1139 } 1139 }
1140 1140
1141 const AtomicString& ComputedStyle::textEmphasisMarkString() const 1141 const AtomicString& ComputedStyle::textEmphasisMarkString() const
1142 { 1142 {
1143 switch (textEmphasisMark()) { 1143 switch (textEmphasisMark()) {
1144 case TextEmphasisMarkNone: 1144 case TextEmphasisMarkNone:
1145 return nullAtom; 1145 return nullAtom;
1146 case TextEmphasisMarkCustom: 1146 case TextEmphasisMarkCustom:
1147 return textEmphasisCustomMark(); 1147 return textEmphasisCustomMark();
1148 case TextEmphasisMarkDot: { 1148 case TextEmphasisMarkDot: {
1149 DEFINE_STATIC_LOCAL(AtomicString, filledDotString, (&bullet, 1)); 1149 DEFINE_STATIC_LOCAL(AtomicString, filledDotString, (&characterBullet, 1) );
1150 DEFINE_STATIC_LOCAL(AtomicString, openDotString, (&whiteBullet, 1)); 1150 DEFINE_STATIC_LOCAL(AtomicString, openDotString, (&characterWhiteBullet, 1));
1151 return textEmphasisFill() == TextEmphasisFillFilled ? filledDotString : openDotString; 1151 return textEmphasisFill() == TextEmphasisFillFilled ? filledDotString : openDotString;
1152 } 1152 }
1153 case TextEmphasisMarkCircle: { 1153 case TextEmphasisMarkCircle: {
1154 DEFINE_STATIC_LOCAL(AtomicString, filledCircleString, (&blackCircle, 1)) ; 1154 DEFINE_STATIC_LOCAL(AtomicString, filledCircleString, (&characterBlackCi rcle, 1));
1155 DEFINE_STATIC_LOCAL(AtomicString, openCircleString, (&whiteCircle, 1)); 1155 DEFINE_STATIC_LOCAL(AtomicString, openCircleString, (&characterWhiteCirc le, 1));
1156 return textEmphasisFill() == TextEmphasisFillFilled ? filledCircleString : openCircleString; 1156 return textEmphasisFill() == TextEmphasisFillFilled ? filledCircleString : openCircleString;
1157 } 1157 }
1158 case TextEmphasisMarkDoubleCircle: { 1158 case TextEmphasisMarkDoubleCircle: {
1159 DEFINE_STATIC_LOCAL(AtomicString, filledDoubleCircleString, (&fisheye, 1 )); 1159 DEFINE_STATIC_LOCAL(AtomicString, filledDoubleCircleString, (&characterF isheye, 1));
1160 DEFINE_STATIC_LOCAL(AtomicString, openDoubleCircleString, (&bullseye, 1) ); 1160 DEFINE_STATIC_LOCAL(AtomicString, openDoubleCircleString, (&characterBul lseye, 1));
1161 return textEmphasisFill() == TextEmphasisFillFilled ? filledDoubleCircle String : openDoubleCircleString; 1161 return textEmphasisFill() == TextEmphasisFillFilled ? filledDoubleCircle String : openDoubleCircleString;
1162 } 1162 }
1163 case TextEmphasisMarkTriangle: { 1163 case TextEmphasisMarkTriangle: {
1164 DEFINE_STATIC_LOCAL(AtomicString, filledTriangleString, (&blackUpPointin gTriangle, 1)); 1164 DEFINE_STATIC_LOCAL(AtomicString, filledTriangleString, (&characterBlack UpPointingTriangle, 1));
1165 DEFINE_STATIC_LOCAL(AtomicString, openTriangleString, (&whiteUpPointingT riangle, 1)); 1165 DEFINE_STATIC_LOCAL(AtomicString, openTriangleString, (&characterWhiteUp PointingTriangle, 1));
1166 return textEmphasisFill() == TextEmphasisFillFilled ? filledTriangleStri ng : openTriangleString; 1166 return textEmphasisFill() == TextEmphasisFillFilled ? filledTriangleStri ng : openTriangleString;
1167 } 1167 }
1168 case TextEmphasisMarkSesame: { 1168 case TextEmphasisMarkSesame: {
1169 DEFINE_STATIC_LOCAL(AtomicString, filledSesameString, (&sesameDot, 1)); 1169 DEFINE_STATIC_LOCAL(AtomicString, filledSesameString, (&characterSesameD ot, 1));
1170 DEFINE_STATIC_LOCAL(AtomicString, openSesameString, (&whiteSesameDot, 1) ); 1170 DEFINE_STATIC_LOCAL(AtomicString, openSesameString, (&characterWhiteSesa meDot, 1));
1171 return textEmphasisFill() == TextEmphasisFillFilled ? filledSesameString : openSesameString; 1171 return textEmphasisFill() == TextEmphasisFillFilled ? filledSesameString : openSesameString;
1172 } 1172 }
1173 case TextEmphasisMarkAuto: 1173 case TextEmphasisMarkAuto:
1174 ASSERT_NOT_REACHED(); 1174 ASSERT_NOT_REACHED();
1175 return nullAtom; 1175 return nullAtom;
1176 } 1176 }
1177 1177
1178 ASSERT_NOT_REACHED(); 1178 ASSERT_NOT_REACHED();
1179 return nullAtom; 1179 return nullAtom;
1180 } 1180 }
(...skipping 555 matching lines...) Expand 10 before | Expand all | Expand 10 after
1736 horizontal || includeLogicalRightEdge); 1736 horizontal || includeLogicalRightEdge);
1737 1737
1738 edges[BSLeft] = BorderEdge(borderLeftWidth(), 1738 edges[BSLeft] = BorderEdge(borderLeftWidth(),
1739 visitedDependentColor(CSSPropertyBorderLeftColor), 1739 visitedDependentColor(CSSPropertyBorderLeftColor),
1740 borderLeftStyle(), 1740 borderLeftStyle(),
1741 borderLeftIsTransparent(), 1741 borderLeftIsTransparent(),
1742 !horizontal || includeLogicalLeftEdge); 1742 !horizontal || includeLogicalLeftEdge);
1743 } 1743 }
1744 1744
1745 } // namespace blink 1745 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698