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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sdk/CSSModel.js

Issue 2198463003: DevTools: add CSS.FontsUpdated event to signify that WebFont has loaded. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit Created 4 years, 5 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 | « third_party/WebKit/Source/devtools/front_end/elements/ComputedStyleModel.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/sdk/CSSModel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/CSSModel.js b/third_party/WebKit/Source/devtools/front_end/sdk/CSSModel.js
index bbbf2e840949ed3cc3ad410f10832d878aac3f39..1e4d3c36bd7117ade1f732ea13e7b922e1cbe273 100644
--- a/third_party/WebKit/Source/devtools/front_end/sdk/CSSModel.js
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/CSSModel.js
@@ -62,6 +62,7 @@ WebInspector.CSSModel = function(target)
WebInspector.CSSModel.Events = {
LayoutEditorChange: "LayoutEditorChange",
+ FontsUpdated: "FontsUpdated",
MediaQueryResultChanged: "MediaQueryResultChanged",
ModelWasEnabled: "ModelWasEnabled",
PseudoStateForced: "PseudoStateForced",
@@ -758,6 +759,11 @@ WebInspector.CSSModel.prototype = {
this.dispatchEventToListeners(WebInspector.CSSModel.Events.MediaQueryResultChanged);
},
+ fontsUpdated: function()
+ {
+ this.dispatchEventToListeners(WebInspector.CSSModel.Events.FontsUpdated);
+ },
+
/**
* @param {!CSSAgent.StyleSheetId} id
* @return {?WebInspector.CSSStyleSheetHeader}
@@ -1100,6 +1106,14 @@ WebInspector.CSSDispatcher.prototype = {
/**
* @override
+ */
+ fontsUpdated: function()
+ {
+ this._cssModel.fontsUpdated();
+ },
+
+ /**
+ * @override
* @param {!CSSAgent.StyleSheetId} styleSheetId
*/
styleSheetChanged: function(styleSheetId)
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/elements/ComputedStyleModel.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698