Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(544)

Unified Diff: Source/core/css/FontStyleMatcher.h

Issue 1270723002: Improve CSS Style matching spec compliance (Closed) Base URL: git@github.com:drott/blink-crosswalk.git@reimplementMatching
Patch Set: Fix TestExpectations Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/css/FontStyleMatcher.h
diff --git a/Source/core/css/FontStyleMatcher.h b/Source/core/css/FontStyleMatcher.h
new file mode 100644
index 0000000000000000000000000000000000000000..292adc9eba975783b9ad703feed8ec75fc321170
--- /dev/null
+++ b/Source/core/css/FontStyleMatcher.h
@@ -0,0 +1,26 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef FontStyleMatcher_h
+#define FontStyleMatcher_h
+
+#include "platform/fonts/FontTraits.h"
+
+namespace blink {
+
+class CSSSegmentedFontFace;
+
+class FontStyleMatcher final {
+public:
+ explicit FontStyleMatcher(const FontTraits& fontTraits) : m_fontTraits(fontTraits) {};
+ bool isCandidateBetter(CSSSegmentedFontFace* candidate, CSSSegmentedFontFace* current);
+
+private:
+ FontStyleMatcher();
+ const FontTraits& m_fontTraits;
+};
+
+}
+
+#endif

Powered by Google App Engine
This is Rietveld 408576698