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

Unified Diff: third_party/WebKit/Source/platform/fonts/opentype/OpenTypeCapsSupport.h

Issue 1891613002: Revert of Add OpenTypeCapsSupport class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@caseMapHbBufferFillerLand
Patch Set: Created 4 years, 8 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: third_party/WebKit/Source/platform/fonts/opentype/OpenTypeCapsSupport.h
diff --git a/third_party/WebKit/Source/platform/fonts/opentype/OpenTypeCapsSupport.h b/third_party/WebKit/Source/platform/fonts/opentype/OpenTypeCapsSupport.h
deleted file mode 100644
index 7015c2a82f8ba108e43377facfb5b6f6a94c4bbb..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/platform/fonts/opentype/OpenTypeCapsSupport.h
+++ /dev/null
@@ -1,57 +0,0 @@
-// Copyright 2016 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 OpenTypeCapsSupport_h
-#define OpenTypeCapsSupport_h
-
-#include "platform/fonts/FontDescription.h"
-#include "platform/fonts/SmallCapsIterator.h"
-#include "platform/fonts/opentype/OpenTypeCapsSupport.h"
-#include "platform/fonts/shaping/CaseMappingHarfBuzzBufferFiller.h"
-#include "platform/fonts/shaping/HarfBuzzFace.h"
-
-#include <hb.h>
-
-namespace blink {
-
-class PLATFORM_EXPORT OpenTypeCapsSupport {
-public:
- OpenTypeCapsSupport();
- OpenTypeCapsSupport(const HarfBuzzFace*,
- FontDescription::FontVariantCaps requestedCaps,
- hb_script_t);
-
- bool needsRunCaseSplitting();
- bool needsSyntheticFont(SmallCapsIterator::SmallCapsBehavior runCase);
- FontDescription::FontVariantCaps fontFeatureToUse(SmallCapsIterator::SmallCapsBehavior runCase);
- CaseMapIntend needsCaseChange(SmallCapsIterator::SmallCapsBehavior runCase);
-
-private:
- void determineFontSupport(hb_script_t);
- bool supportsOpenTypeFeature(hb_script_t, uint32_t tag) const;
-
- const HarfBuzzFace* m_harfBuzzFace;
- FontDescription::FontVariantCaps m_requestedCaps;
- SmallCapsIterator::SmallCapsBehavior m_runCase;
-
- enum class FontSupport {
- Full,
- Fallback, // Fall back to 'smcp' or 'smcp' + 'c2sc'
- None
- };
-
- enum class CapsSynthesis {
- None,
- LowerToSmallCaps,
- UpperToSmallCaps,
- BothToSmallCaps
- };
-
- FontSupport m_fontSupport;
- CapsSynthesis m_capsSynthesis;
-};
-
-}; // namespace blink
-
-#endif

Powered by Google App Engine
This is Rietveld 408576698