<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:mrobinson&#64;webkit.org" title="Martin Robinson &lt;mrobinson&#64;webkit.org&gt;"> <span class="fn">Martin Robinson</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - REGRESSION(r200094): [FreeType] Vertical text is broken after r200094"
   href="https://bugs.webkit.org/show_bug.cgi?id=157066">bug 157066</a>
        <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Attachment #277470 Flags</td>
           <td>review?
           </td>
           <td>review+
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - REGRESSION(r200094): [FreeType] Vertical text is broken after r200094"
   href="https://bugs.webkit.org/show_bug.cgi?id=157066#c9">Comment # 9</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - REGRESSION(r200094): [FreeType] Vertical text is broken after r200094"
   href="https://bugs.webkit.org/show_bug.cgi?id=157066">bug 157066</a>
              from <span class="vcard"><a class="email" href="mailto:mrobinson&#64;webkit.org" title="Martin Robinson &lt;mrobinson&#64;webkit.org&gt;"> <span class="fn">Martin Robinson</span></a>
</span></b>
        <pre>Comment on <span class=""><a href="attachment.cgi?id=277470&amp;action=diff" name="attach_277470" title="Try to fix EFL build">attachment 277470</a> <a href="attachment.cgi?id=277470&amp;action=edit" title="Try to fix EFL build">[details]</a></span>
Try to fix EFL build

View in context: <a href="https://bugs.webkit.org/attachment.cgi?id=277470&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=277470&amp;action=review</a>

<span class="quote">&gt; Source/WebCore/platform/graphics/cairo/CairoUtilities.h:64
&gt; +#if USE(FREETYPE)
&gt; +class CairoFtFaceLocker {
&gt; +public:
&gt; +    CairoFtFaceLocker(cairo_scaled_font_t*);
&gt; +    ~CairoFtFaceLocker();
&gt; +
&gt; +    FT_Face ftFace() const { return m_ftFace; }
&gt; +
&gt; +private:
&gt; +    cairo_scaled_font_t* m_scaledFont { nullptr };
&gt; +    FT_Face m_ftFace { nullptr };
&gt; +};</span >

One note is that by not putting the implementation of the constructor and destructor here, it is impossible for the compiler to inline them. It might be better to avoid changing that.

<span class="quote">&gt; Source/WebCore/platform/graphics/freetype/FontPlatformDataFreeType.cpp:253
&gt; +    // We need to reinitialize the instance, because the difference in size
&gt; +    // necessitates a new scaled font instance.
&gt; +    ASSERT(copy.m_scaledFont.get());
&gt; +    copy.buildScaledFont(cairo_scaled_font_get_font_face(copy.m_scaledFont.get()));</span >

Why don't you also check if the size is different here similar to the methods above?

<span class="quote">&gt; Source/WebCore/platform/graphics/freetype/FontPlatformDataFreeType.cpp:291
&gt; -    return m_scaledFont == other.m_scaledFont
&gt; -        &amp;&amp; m_size == other.m_size
&gt; -        &amp;&amp; m_syntheticOblique == other.m_syntheticOblique
&gt; -        &amp;&amp; m_orientation == other.m_orientation
&gt; -        &amp;&amp; m_syntheticBold == other.m_syntheticBold; 
&gt; +    return m_scaledFont == other.m_scaledFont;
&gt;  }</span >

Yay!

<span class="quote">&gt; Source/WebCore/platform/graphics/freetype/FontPlatformDataFreeType.cpp:349
&gt; +    ASSERT(m_scaledFont.get());</span >

I'm not sure you need .get() here.

<span class="quote">&gt; Source/WebCore/platform/graphics/freetype/FontPlatformDataFreeType.cpp:-412
&gt; -    cairo_ft_scaled_font_unlock_face(m_scaledFont);</span >

Wow. Really nice fix here.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>