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

Unified Diff: third_party/WebKit/Source/platform/fonts/shaping/SimpleShaper.h

Issue 1479003002: Remove Simple Text Path (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 2 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/shaping/SimpleShaper.h
diff --git a/third_party/WebKit/Source/platform/fonts/shaping/SimpleShaper.h b/third_party/WebKit/Source/platform/fonts/shaping/SimpleShaper.h
deleted file mode 100644
index 79e7b6158592da106a879dfbec76a2832fed04db..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/platform/fonts/shaping/SimpleShaper.h
+++ /dev/null
@@ -1,81 +0,0 @@
-/*
- * Copyright (C) 2003, 2006, 2008, 2011 Apple Inc. All rights reserved.
- * Copyright (C) 2008 Holger Hans Peter Freyther
- * Copyright (C) 2014 Google Inc. All rights reserved.
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Library General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Library General Public License for more details.
- *
- * You should have received a copy of the GNU Library General Public License
- * along with this library; see the file COPYING.LIB. If not, write to
- * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- * Boston, MA 02110-1301, USA.
- *
- */
-
-#ifndef SimpleShaper_h
-#define SimpleShaper_h
-
-#include "platform/PlatformExport.h"
-#include "platform/fonts/shaping/Shaper.h"
-#include "platform/geometry/FloatPoint.h"
-#include "platform/geometry/FloatRect.h"
-#include "platform/text/TextRun.h"
-#include "wtf/HashSet.h"
-#include "wtf/text/Unicode.h"
-
-namespace blink {
-
-class Font;
-class GlyphBuffer;
-class SimpleFontData;
-class TextRun;
-struct GlyphData;
-
-struct PLATFORM_EXPORT SimpleShaper : public Shaper {
- public:
- SimpleShaper(const Font*,
- const TextRun&,
- const GlyphData* emphasisData = nullptr,
- HashSet<const SimpleFontData*>* fallbackFonts = nullptr,
- FloatRect* = nullptr);
-
- // TODO(sk.kumar): This function should be updated to take an unsigned value,
- // and callers should be updated to not pass negative values.
- // See: crbug.com/540047.
- unsigned advance(int to, GlyphBuffer* = 0);
- bool advanceOneCharacter(float& width);
-
- const TextRun& run() const { return m_textRun; }
- float runWidthSoFar() const { return m_runWidthSoFar; }
- unsigned currentOffset() { return m_currentCharacter; }
-
- private:
- unsigned m_currentCharacter;
- float m_runWidthSoFar;
-
- struct CharacterData {
- STACK_ALLOCATED();
- UChar32 character;
- unsigned clusterLength;
- int characterOffset;
- };
-
- GlyphData glyphDataForCharacter(CharacterData&, bool normalizeSpace = false);
- float characterWidth(UChar32, const GlyphData&) const;
- float adjustSpacing(float, const CharacterData&);
-
- template <typename TextIterator>
- unsigned advanceInternal(TextIterator&, GlyphBuffer*);
-};
-
-} // namespace blink
-
-#endif

Powered by Google App Engine
This is Rietveld 408576698