<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - r200216 fails to build for darwin/gtk: use of undeclared identifier 'm_font'"
href="https://bugs.webkit.org/show_bug.cgi?id=157167#c9">Comment # 9</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - r200216 fails to build for darwin/gtk: use of undeclared identifier 'm_font'"
href="https://bugs.webkit.org/show_bug.cgi?id=157167">bug 157167</a>
from <span class="vcard"><a class="email" href="mailto:jeremyhu@apple.com" title="Jeremy Huddleston Sequoia <jeremyhu@apple.com>"> <span class="fn">Jeremy Huddleston Sequoia</span></a>
</span></b>
<pre>It seems to me like it should be something like this:
#if USE(CAIRO)
return PtrHash<cairo_scaled_font_t*>::hash(m_scaledFont.get());
#elif PLATFORM(WIN)
return m_font ? m_font->hash() : 0;
#elif PLATFORM(COCOA)
uintptr_t flags = static_cast<uintptr_t>(m_isHashTableDeletedValue << 5 | m_textRenderingMode << 3 | m_orientation << 2 | m_syntheticBold << 1 | m_syntheticOblique);
#if USE(APPKIT)
uintptr_t fontHash = (uintptr_t)m_font.get();
#else
uintptr_t fontHash = reinterpret_cast<uintptr_t>(CFHash(m_font.get()));
#endif
uintptr_t hashCodes[3] = { fontHash, m_widthVariant, flags };
return StringHasher::hashMemory<sizeof(hashCodes)>(hashCodes);
#else
#error "Unsupported configuration"
#endif</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>