OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 28 matching lines...) Expand all Loading... |
39 | 39 |
40 this._sectionTitle = createElementWithClass("div", "sidebar-separator"); | 40 this._sectionTitle = createElementWithClass("div", "sidebar-separator"); |
41 this.element.insertBefore(this._sectionTitle, this.bodyElement); | 41 this.element.insertBefore(this._sectionTitle, this.bodyElement); |
42 this._sectionTitle.textContent = WebInspector.UIString("Rendered Fonts"); | 42 this._sectionTitle.textContent = WebInspector.UIString("Rendered Fonts"); |
43 this._fontStatsSection = this.bodyElement.createChild("div", "stats-section"
); | 43 this._fontStatsSection = this.bodyElement.createChild("div", "stats-section"
); |
44 } | 44 } |
45 | 45 |
46 WebInspector.PlatformFontsSidebarPane.prototype = { | 46 WebInspector.PlatformFontsSidebarPane.prototype = { |
47 /** | 47 /** |
48 * @override | 48 * @override |
49 * @param {!WebInspector.DOMNode} changedNode | |
50 */ | 49 */ |
51 onDOMNodeChanged: function(changedNode) | 50 onDOMModelChanged: function() |
52 { | 51 { |
53 this.update(); | 52 this.update(); |
54 }, | 53 }, |
55 | 54 |
56 /** | 55 /** |
57 * @override | 56 * @override |
58 */ | 57 */ |
59 onCSSModelChanged: function() | 58 onCSSModelChanged: function() |
60 { | 59 { |
61 this.update(); | 60 this.update(); |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 | 110 |
112 var fontUsageElement = fontStatElement.createChild("span", "font-usa
ge"); | 111 var fontUsageElement = fontStatElement.createChild("span", "font-usa
ge"); |
113 var usage = platformFonts[i].glyphCount; | 112 var usage = platformFonts[i].glyphCount; |
114 fontUsageElement.textContent = usage === 1 ? WebInspector.UIString("
%d glyph", usage) : WebInspector.UIString("%d glyphs", usage); | 113 fontUsageElement.textContent = usage === 1 ? WebInspector.UIString("
%d glyph", usage) : WebInspector.UIString("%d glyphs", usage); |
115 } | 114 } |
116 finishedCallback(); | 115 finishedCallback(); |
117 }, | 116 }, |
118 | 117 |
119 __proto__: WebInspector.ElementsSidebarPane.prototype | 118 __proto__: WebInspector.ElementsSidebarPane.prototype |
120 } | 119 } |
OLD | NEW |