Nothing in SimpleFontData depends on the FontPlatformData’s textOrientation, so we don’t need separate data for vertical-right and upright. We simply use the verticalRightOrientationFontData() and uprightOrientationFontData() based on the textOrientation in the FontDescription.
Created attachment 177417 [details] Remove FontPlatformData::m_textOrientation
Attachment 177417 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1 Source/WebCore/platform/graphics/FontCache.cpp:65: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Source/WebCore/platform/graphics/FontCache.cpp:84: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Source/WebCore/platform/graphics/FontCache.cpp:202: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Source/WebCore/platform/graphics/chromium/FontCacheAndroid.cpp:181: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Source/WebCore/platform/graphics/chromium/FontCacheAndroid.cpp:205: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Source/WebCore/platform/graphics/skia/FontCacheSkia.cpp:183: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Source/WebCore/css/CSSFontFaceSource.cpp:115: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Source/WebCore/platform/graphics/FontPlatformData.h:112: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Source/WebCore/platform/graphics/skia/FontCustomPlatformData.cpp:69: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Total errors found: 9 in 30 files If any of these errors are false positives, please file a bug against check-webkit-style.
Looks reasonable to me.
Comment on attachment 177417 [details] Remove FontPlatformData::m_textOrientation View in context: https://bugs.webkit.org/attachment.cgi?id=177417&action=review > Source/WebCore/ChangeLog:8 > + Nothing in SimpleFontData depends on the FontPlatformDataâs textOrientation, so we donât Is the strange character here you doing something wrong, or bugs.webkit.org doing something wrong? >> Source/WebCore/css/CSSFontFaceSource.cpp:115 >> + | (fontDescription.orientation() == Vertical ? 4 : 0) | (syntheticBold ? 2 : 0) | (syntheticItalic ? 1 : 0); > > Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] For what it’s worth I prefer the 4-space indent that the style script calls for. But I don’t think adding formatting changes to this patch is a good idea.
(In reply to comment #4) > (From update of attachment 177417 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=177417&action=review > > > Source/WebCore/ChangeLog:8 > > + Nothing in SimpleFontData depends on the FontPlatformDataâs textOrientation, so we donât > > Is the strange character here you doing something wrong, or bugs.webkit.org doing something wrong? This is our friend bug 75394. > > >> Source/WebCore/css/CSSFontFaceSource.cpp:115 > >> + | (fontDescription.orientation() == Vertical ? 4 : 0) | (syntheticBold ? 2 : 0) | (syntheticItalic ? 1 : 0); > > > > Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] > > For what it’s worth I prefer the 4-space indent that the style script calls for. But I don’t think adding formatting changes to this patch is a good idea. I agree. Thanks for the review!
Fixed in <http://trac.webkit.org/r136520>.