<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>88806</bug_id>
          
          <creation_ts>2012-06-11 14:14:53 -0700</creation_ts>
          <short_desc>[Chromium-Android] Remove Android-specific code in FontPlatformDataHarfBuzz.cpp</short_desc>
          <delta_ts>2012-06-11 16:18:23 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Layout and Rendering</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>66687</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Xianzhu Wang">wangxianzhu</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abarth</cc>
    
    <cc>peter</cc>
    
    <cc>reed</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>646249</commentid>
    <comment_count>0</comment_count>
    <who name="Xianzhu Wang">wangxianzhu</who>
    <bug_when>2012-06-11 14:14:53 -0700</bug_when>
    <thetext>In FontPlatformDataHarfBuzz.cpp, FontPlatformData::emSizeInFontUnits(), the Android-specific code was added when skia&apos;s Android port didn&apos;t support Typeface::getAdvancedTypefaceMetrics().

Skia added Android support of the method in http://codereview.appspot.com/5396045, so the Android-specific code can be removed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>646313</commentid>
    <comment_count>1</comment_count>
    <who name="Peter Beverloo">peter</who>
    <bug_when>2012-06-11 15:14:42 -0700</bug_when>
    <thetext>Since getAdvancedTypefaceMetrics() is only called to get the em size in font units (the caller disregards all other returned information), I don&apos;t think this would be the right approach. See the following bugs for more context (also referred to by a TODO in the code):

Bug 75702 ([Chromium] Use SkFontHost::GetUnitsPerEm instead of advanced type metrics for Android in FontPlatformData)
Bug 75961 ([Chromium] Switch to using the new SkTypeface::GetUnitsPerEm API)

http://code.google.com/p/skia/issues/detail?id=441 (Add SkTypeface::GetUnitsPerEm())

+reed</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>646377</commentid>
    <comment_count>2</comment_count>
    <who name="Xianzhu Wang">wangxianzhu</who>
    <bug_when>2012-06-11 16:07:15 -0700</bug_when>
    <thetext>(In reply to comment #1)
&gt; Since getAdvancedTypefaceMetrics() is only called to get the em size in font units (the caller disregards all other returned information), I don&apos;t think this would be the right approach. See the following bugs for more context (also referred to by a TODO in the code):
&gt; 
&gt; Bug 75702 ([Chromium] Use SkFontHost::GetUnitsPerEm instead of advanced type metrics for Android in FontPlatformData)
&gt; Bug 75961 ([Chromium] Switch to using the new SkTypeface::GetUnitsPerEm API)
&gt; 
&gt; http://code.google.com/p/skia/issues/detail?id=441 (Add SkTypeface::GetUnitsPerEm())
&gt; 
&gt; +reed

Yes, I saw those bugs, but this one just removes the Android-specific code with the bugs (to switch to SkTypeface::GetUnitsPerEm()) still open. That is, it combines two different &apos;incorrect&apos; ways into one :)

Found this by the way when cleaning up Android-specific code in the file in downstream. I&apos;m OK to delay this until we fix 75961.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>646381</commentid>
    <comment_count>3</comment_count>
    <who name="Peter Beverloo">peter</who>
    <bug_when>2012-06-11 16:09:44 -0700</bug_when>
    <thetext>Are you proposing to switch Android back to getAdvancedTypefaceMetrics(), and thus removing the compile-time branch, until emSizeInFontUnits() is available for all platforms?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>646392</commentid>
    <comment_count>4</comment_count>
    <who name="Xianzhu Wang">wangxianzhu</who>
    <bug_when>2012-06-11 16:18:23 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; Are you proposing to switch Android back to getAdvancedTypefaceMetrics(), and thus removing the compile-time branch, until emSizeInFontUnits() is available for all platforms?

Yes. But now I think this is unnecessary as there&apos;s no diff about this in downstream/upstream. Closing this bug.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>