Font feature settings comparisons are order-dependent and case-dependent
https://bugs.webkit.org/show_bug.cgi?id=147719
Reviewed by Benjamin Poulain.
Source/WebCore:
We should make our settings vector order-independent and case-independent.
Test: css3/font-feature-settings-parsing.html
* css/CSSParser.cpp:
(WebCore::CSSParser::parseFontFeatureTag):
* css/StyleBuilderConverter.h:
(WebCore::StyleBuilderConverter::convertFontFeatureSettings):
* platform/graphics/FontFeatureSettings.cpp:
(WebCore::FontFeature::FontFeature):
(WebCore::FontFeature::operator==):
(WebCore::FontFeatureSettings::FontFeatureSettings):
* platform/graphics/FontFeatureSettings.h:
(WebCore::FontFeature::FontFeature):
(WebCore::FontFeature::operator==):
(WebCore::FontFeature::operator<):
(WebCore::FontFeatureSettings::insert):
(WebCore::FontFeatureSettings::FontFeatureSettings):
(WebCore::FontFeatureSettings::append): Deleted.
LayoutTests:
Make the test insensitive to order and case.
* css3/font-feature-settings-parsing-expected.txt:
* css3/font-feature-settings-parsing.html:
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@188056 268f45cc-cd09-0410-ab3c-d52691b4dbfc
8 files changed