Summary: | FontDescription copies should share families list, not duplicate it. | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Andreas Kling <kling> | ||||
Component: | Text | Assignee: | Andreas Kling <kling> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | aboxhall, apinheiro, cfleizach, commit-queue, dmazzoni, esprehn+autocc, glenn, gyuyoung.kim, jcraig, jdiggs, kling, macpherson, mario, menard, samuel_white | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Attachments: |
|
Description
Andreas Kling
2013-11-14 01:36:32 PST
Created attachment 216909 [details]
Patch
Comment on attachment 216909 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=216909&action=review > Source/WebCore/platform/graphics/FontDescription.h:235 > +inline bool FontDescription::hasEqualFamilies(const FontDescription& other) const > +{ > + if (m_families.data() == other.m_families.data()) > + return true; > + if (m_families.size() != other.m_families.size()) > + return false; > + for (unsigned i = 0; i < m_families.size(); ++i) { > + if (m_families[i] != other.m_families[i]) > + return false; > + } > + return true; > +} Seems more like this could be operator== or equals in RefCountedArray Committed r159279: <http://trac.webkit.org/changeset/159279> |