Changeset 128590 in webkit
- Timestamp:
- Sep 14, 2012 5:05:44 AM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r128589 r128590 1 2012-09-14 Andrei Poenaru <poenaru@adobe.com> 2 3 Web Inspector: Display Named Flows in the "CSS Named Flows" drawer 4 https://bugs.webkit.org/show_bug.cgi?id=90871 5 6 Reviewed by Alexander Pavlov. 7 8 Implemented CSS Regions support in WebInspector as a drawer. (feature is under an experimental flag) 9 10 * English.lproj/localizedStrings.js: 11 * WebCore.gypi: 12 * WebCore.vcproj/WebCore.vcproj: 13 * inspector/compile-front-end.py: 14 * inspector/front-end/CSSNamedFlowCollectionsView.js: Added. 15 (WebInspector.CSSNamedFlowCollectionsView): 16 (WebInspector.CSSNamedFlowCollectionsView.prototype.showInDrawer): 17 (WebInspector.CSSNamedFlowCollectionsView.prototype.reset): 18 (WebInspector.CSSNamedFlowCollectionsView.prototype._setDocument): 19 (WebInspector.CSSNamedFlowCollectionsView.prototype._documentUpdated): 20 (WebInspector.CSSNamedFlowCollectionsView.prototype._setSidebarHasContent): 21 (WebInspector.CSSNamedFlowCollectionsView.prototype._appendNamedFlow): 22 (WebInspector.CSSNamedFlowCollectionsView.prototype._removeNamedFlow): 23 (WebInspector.CSSNamedFlowCollectionsView.prototype._updateNamedFlow): 24 (WebInspector.CSSNamedFlowCollectionsView.prototype._resetNamedFlows): 25 (WebInspector.CSSNamedFlowCollectionsView.prototype._namedFlowCreated): 26 (WebInspector.CSSNamedFlowCollectionsView.prototype._namedFlowRemoved): 27 (WebInspector.CSSNamedFlowCollectionsView.prototype._regionLayoutUpdated): 28 (WebInspector.CSSNamedFlowCollectionsView.prototype._hashNamedFlow): 29 (WebInspector.CSSNamedFlowCollectionsView.prototype._showNamedFlow): 30 (WebInspector.CSSNamedFlowCollectionsView.prototype._selectNamedFlowInSidebar): 31 (WebInspector.CSSNamedFlowCollectionsView.prototype._selectedNodeChanged): 32 (WebInspector.CSSNamedFlowCollectionsView.prototype._showNamedFlowForNode): 33 (WebInspector.CSSNamedFlowCollectionsView.prototype.wasShown): 34 (WebInspector.CSSNamedFlowCollectionsView.prototype.willHide): 35 * inspector/front-end/ElementsPanel.js: 36 (WebInspector.ElementsPanel.prototype._contextMenuEventFired.set get var): 37 (WebInspector.ElementsPanel.prototype._showNamedFlowCollections): 38 * inspector/front-end/Images/namedFlowOverflow.png: Added. 39 * inspector/front-end/Settings.js: 40 (WebInspector.ExperimentsSettings): 41 * inspector/front-end/WebKit.qrc: 42 * inspector/front-end/cssNamedFlows.css: Added. 43 (.css-named-flow-collections-view .split-view-sidebar-left): 44 (.css-named-flow-collections-view .tabbed-pane-header): 45 (.css-named-flow-collections-view .info): 46 (.css-named-flow-collections-view .split-view-sidebar-left .sidebar-content): 47 (.css-named-flow-collections-view .split-view-sidebar-left .selection): 48 (.css-named-flow-collections-view .split-view-contents .title): 49 (.css-named-flow-collections-view .split-view-sidebar-left .named-flow-overflow::before): 50 1 51 2012-09-14 Yoshifumi Inoue <yosin@chromium.org> 2 52 -
trunk/Source/WebCore/English.lproj/localizedStrings.js
r128184 r128590 96 96 localizedStrings["CPU PROFILES"] = "CPU PROFILES"; 97 97 localizedStrings["CPU profiles show where the execution time is spent in your page's JavaScript functions."] = "CPU profiles show where the execution time is spent in your page's JavaScript functions."; 98 localizedStrings["CSS Named Flows"] = "CSS Named Flows"; 99 localizedStrings["CSS Named Flows..."] = "CSS Named Flows..."; 98 100 localizedStrings["CSS SELECTOR PROFILES"] = "CSS SELECTOR PROFILES"; 99 101 localizedStrings["CSS selector profiles show how long the selector matching has taken in total and how many times a certain selector has matched DOM elements (the results are approximate due to matching algorithm optimizations.)"] = "CSS selector profiles show how long the selector matching has taken in total and how many times a certain selector has matched DOM elements (the results are approximate due to matching algorithm optimizations.)"; … … 273 275 localizedStrings["No Application Cache information available."] = "No Application Cache information available."; 274 276 localizedStrings["No Breakpoints"] = "No Breakpoints"; 277 localizedStrings["No CSS Named Flows"] = "No CSS Named Flows"; 275 278 localizedStrings["No Event Listeners"] = "No Event Listeners"; 276 279 localizedStrings["No Properties"] = "No Properties"; … … 293 296 localizedStrings["Open link in Resources panel"] = "Open link in Resources panel"; 294 297 localizedStrings["Other"] = "Other"; 298 localizedStrings["Overflows."] = "Overflows."; 295 299 localizedStrings["Device metrics"] = "Device metrics"; 296 300 localizedStrings["Paint"] = "Paint"; -
trunk/Source/WebCore/WebCore.gypi
r128575 r128590 6469 6469 'inspector/front-end/breadcrumbList.css', 6470 6470 'inspector/front-end/cm/codemirror.css', 6471 'inspector/front-end/cssNamedFlows.css', 6471 6472 'inspector/front-end/cmdevtools.css', 6472 6473 'inspector/front-end/dataGrid.css', … … 6495 6496 ], 6496 6497 'webinspector_elements_js_files': [ 6498 'inspector/front-end/CSSNamedFlowCollectionsView.js', 6497 6499 'inspector/front-end/ElementsPanel.js', 6498 6500 'inspector/front-end/EventListenersSidebarPane.js', … … 6612 6614 'inspector/front-end/Images/closeButtons.png', 6613 6615 'inspector/front-end/Images/cookie.png', 6616 'inspector/front-end/Images/namedFlowOverflow.png', 6614 6617 'inspector/front-end/Images/database.png', 6615 6618 'inspector/front-end/Images/databaseTable.png', -
trunk/Source/WebCore/WebCore.vcproj/WebCore.vcproj
r128588 r128590 76023 76023 </File> 76024 76024 <File 76025 RelativePath="..\inspector\front-end\CSSNamedFlowCollectionsView.js" 76026 > 76027 </File> 76028 <File 76029 RelativePath="..\inspector\front-end\cssNamedFlows.css" 76030 > 76031 </File> 76032 <File 76025 76033 RelativePath="..\inspector\front-end\CSSSelectorProfileView.js" 76026 76034 > -
trunk/Source/WebCore/inspector/compile-front-end.py
r127454 r128590 180 180 "dependencies": ["components"], 181 181 "sources": [ 182 "CSSNamedFlowCollectionsView.js", 182 183 "ElementsPanel.js", 183 184 "ElementsPanelDescriptor.js", -
trunk/Source/WebCore/inspector/front-end/ElementsPanel.js
r126706 r128590 29 29 */ 30 30 31 importScript("CSSNamedFlowCollectionsView.js"); 31 32 importScript("EventListenersSidebarPane.js"); 32 33 importScript("MetricsSidebarPane.js"); … … 337 338 var contextMenu = new WebInspector.ContextMenu(); 338 339 var populated = this.treeOutline.populateContextMenu(contextMenu, event); 340 341 if (WebInspector.experimentsSettings.cssRegions.isEnabled()) { 342 contextMenu.appendSeparator(); 343 contextMenu.appendItem(WebInspector.UIString("CSS Named Flows..."), this._showNamedFlowCollections.bind(this)); 344 } 345 339 346 contextMenu.appendSeparator(); 340 347 contextMenu.appendCheckboxItem(WebInspector.UIString(WebInspector.useLowerCaseMenuTitles() ? "Word wrap" : "Word Wrap"), toggleWordWrap.bind(this), WebInspector.settings.domWordWrap.get()); 341 348 342 349 contextMenu.show(event); 350 }, 351 352 _showNamedFlowCollections: function() 353 { 354 if (!WebInspector.cssNamedFlowCollectionsView) 355 WebInspector.cssNamedFlowCollectionsView = new WebInspector.CSSNamedFlowCollectionsView(); 356 WebInspector.cssNamedFlowCollectionsView.showInDrawer(); 343 357 }, 344 358 -
trunk/Source/WebCore/inspector/front-end/Settings.js
r126855 r128590 198 198 this.sass = this._createExperiment("sass", "Support for SASS"); 199 199 this.codemirror = this._createExperiment("codemirror", "Use CodeMirror editor"); 200 this.cssRegions = this._createExperiment("cssRegions", "CSS Regions Support"); 200 201 201 202 this._cleanUpSetting(); -
trunk/Source/WebCore/inspector/front-end/WebKit.qrc
r127454 r128590 32 32 <file>CSSCompletions.js</file> 33 33 <file>CSSKeywordCompletions.js</file> 34 <file>CSSNamedFlowCollectionsView.js</file> 34 35 <file>CSSSelectorProfileView.js</file> 35 36 <file>CSSStyleModel.js</file> … … 216 217 <file>auditsPanel.css</file> 217 218 <file>breadcrumbList.css</file> 219 <file>cssNamedFlows.css</file> 218 220 <file>dataGrid.css</file> 219 221 <file>cmdevtools.css</file> … … 289 291 <file>Images/localStorage.png</file> 290 292 <file>Images/navigatorShowHideButton.png</file> 293 <file>Images/namedFlowOverflow.png</file> 291 294 <file>Images/paneAddButtons.png</file> 292 295 <file>Images/paneBottomGrow.png</file>
Note: See TracChangeset
for help on using the changeset viewer.