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

Unified Diff: sky/engine/core/css/FontFaceSet.h

Issue 922893002: Merge the Sky Engine changes from the SkyDart branch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « sky/engine/core/css/FontFace.idl ('k') | sky/engine/core/css/FontFaceSet.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/css/FontFaceSet.h
diff --git a/sky/engine/core/css/FontFaceSet.h b/sky/engine/core/css/FontFaceSet.h
index 623811c7a59c281a4865f1c0de257ee14d11bd03..42916d7d117b36bb39e8d500bb66209e6d3ffa3b 100644
--- a/sky/engine/core/css/FontFaceSet.h
+++ b/sky/engine/core/css/FontFaceSet.h
@@ -26,9 +26,7 @@
#ifndef SKY_ENGINE_CORE_CSS_FONTFACESET_H_
#define SKY_ENGINE_CORE_CSS_FONTFACESET_H_
-#include "sky/engine/bindings/core/v8/ScriptPromise.h"
#include "sky/engine/core/css/FontFace.h"
-#include "sky/engine/core/css/FontFaceSetForEachCallback.h"
#include "sky/engine/core/dom/ActiveDOMObject.h"
#include "sky/engine/core/events/EventListener.h"
#include "sky/engine/core/events/EventTarget.h"
@@ -54,7 +52,6 @@ class ExceptionState;
class Font;
class FontFaceCache;
class FontResource;
-class FontsReadyPromiseResolver;
class ExecutionContext;
class FontFaceSet final : public RefCountedSupplement<Document, FontFaceSet>, public ActiveDOMObject, public EventTargetWithInlineData {
@@ -65,14 +62,10 @@ public:
virtual ~FontFaceSet();
bool check(const String& font, const String& text, ExceptionState&);
- ScriptPromise load(ScriptState*, const String& font, const String& text);
- ScriptPromise ready(ScriptState*);
void add(FontFace*, ExceptionState&);
void clear();
bool remove(FontFace*, ExceptionState&);
- void forEach(PassOwnPtr<FontFaceSetForEachCallback>, const ScriptValue& thisArg) const;
- void forEach(PassOwnPtr<FontFaceSetForEachCallback>) const;
bool has(FontFace*, ExceptionState&) const;
unsigned long size() const;
@@ -123,7 +116,6 @@ private:
bool hasLoadedFonts() const { return !m_loadedFonts.isEmpty() || !m_failedFonts.isEmpty(); }
bool inActiveDocumentContext() const;
- void forEachInternal(PassOwnPtr<FontFaceSetForEachCallback>, const ScriptValue* thisArg) const;
void addToLoadingFonts(PassRefPtr<FontFace>);
void removeFromLoadingFonts(PassRefPtr<FontFace>);
void fireLoadingEvent();
@@ -136,7 +128,6 @@ private:
HashSet<RefPtr<FontFace> > m_loadingFonts;
bool m_shouldFireLoadingEvent;
- Vector<OwnPtr<FontsReadyPromiseResolver> > m_readyResolvers;
FontFaceArray m_loadedFonts;
FontFaceArray m_failedFonts;
ListHashSet<RefPtr<FontFace> > m_nonCSSConnectedFaces;
« no previous file with comments | « sky/engine/core/css/FontFace.idl ('k') | sky/engine/core/css/FontFaceSet.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698