Changeset 108634 in webkit
- Timestamp:
- Feb 23, 2012 9:28:33 AM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r108629 r108634 1 2012-02-23 Pavel Feldman <pfeldman@chromium.org> 2 3 Web Inspector: add experiment that loads stylesheets as links 4 https://bugs.webkit.org/show_bug.cgi?id=79340 5 6 Reviewed by Timothy Hatcher. 7 8 * inspector/front-end/Settings.js: 9 (WebInspector.ExperimentsSettings): 10 * inspector/front-end/View.js: 11 (WebInspector.View.prototype._doLoadCSS): 12 1 13 2012-02-23 Adam Roben <aroben@apple.com> 2 14 -
trunk/Source/WebCore/inspector/front-end/Settings.js
r108502 r108634 179 179 // FIXME: Enable http/tests/inspector/indexeddb/resources-panel.html when removed from experiments. 180 180 this.showIndexedDB = this._createExperiment("showIndexedDB", "Show IndexedDB in Resources panel"); 181 this.debugCSS = this._createExperiment("debugCSS", "Load CSS via link tags for debugging"); 181 182 182 183 this._cleanUpSetting(); -
trunk/Source/WebCore/inspector/front-end/View.js
r100433 r108634 279 279 } 280 280 281 var xhr = new XMLHttpRequest(); 282 xhr.open("GET", cssFile, false); 283 xhr.send(null); 284 285 styleElement = document.createElement("style"); 286 styleElement.type = "text/css"; 287 styleElement.textContent = xhr.responseText; 281 if (WebInspector.experimentsSettings.debugCSS.isEnabled()) { 282 styleElement = document.createElement("link"); 283 styleElement.rel = "stylesheet"; 284 styleElement.type = "text/css"; 285 styleElement.href = cssFile; 286 } else { 287 var xhr = new XMLHttpRequest(); 288 xhr.open("GET", cssFile, false); 289 xhr.send(null); 290 291 styleElement = document.createElement("style"); 292 styleElement.type = "text/css"; 293 styleElement.textContent = xhr.responseText; 294 } 288 295 document.head.insertBefore(styleElement, document.head.firstChild); 289 296
Note: See TracChangeset
for help on using the changeset viewer.