Web Inspector: UISourceCode commitWorkingCopy should not fail when original script had syntax error.
https://bugs.webkit.org/show_bug.cgi?id=97272

Reviewed by Pavel Feldman.

This patch is based on patch by John J. Barton.

Source/WebCore:

* inspector/front-end/JavaScriptSource.js:
(WebInspector.JavaScriptSource.prototype.workingCopyCommitted): added rawLocation null check.

LayoutTests:

* http/tests/inspector/live-edit-test.js:
(initialize_LiveEditTest.InspectorTest.replaceInSource):
(initialize_LiveEditTest):
* inspector/debugger/live-edit-expected.txt:
* inspector/debugger/live-edit.html:
* inspector/debugger/resources/edit-me-syntax-error.js: Added.
(syntaxError):
* platform/chromium/TestExpectations: re-enabled the test.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@130287 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: remember the last dock option so that user could toggle between dock to bottom and right
https://bugs.webkit.org/show_bug.cgi?id=98255

Reviewed by Vsevolod Vlasov.

- Introduced DockController.js that covers the dock mechanics
- Removed dock orientation from the settings
- Storing the last dock option to present it as default
- Simplified the multi-option status bar button

* WebCore.gypi:
* WebCore.vcproj/WebCore.vcproj:
* inspector/compile-front-end.py:
* inspector/front-end/DockController.js: Added.
(WebInspector.DockController):
(WebInspector.DockController.prototype.get element):
(WebInspector.DockController.prototype.setDocked.set if):
(WebInspector.DockController.prototype.setDocked):
(WebInspector.DockController.prototype.setDockingUnavailable):
(WebInspector.DockController.prototype._updateUI.get states):
(WebInspector.DockController.prototype._updateUI):
(WebInspector.DockController.prototype._decorateButtonForTargetState):
(WebInspector.DockController.prototype._createDockOptions):
(WebInspector.DockController.prototype._toggleDockState):
(WebInspector.DockController.prototype.isCompactMode):
(WebInspector.DockController.prototype.setCompactMode):
* inspector/front-end/InspectorFrontendAPI.js:
(InspectorFrontendAPI.setAttachedWindow):
* inspector/front-end/InspectorFrontendHostStub.js:
(.WebInspector.InspectorFrontendHostStub.prototype.requestAttachWindow):
(.WebInspector.InspectorFrontendHostStub.prototype.requestDetachWindow):
* inspector/front-end/Settings.js:
* inspector/front-end/SettingsScreen.js:
(WebInspector.GenericSettingsTab):
* inspector/front-end/StatusBarButton.js:
(WebInspector.StatusBarButton):
* inspector/front-end/Toolbar.js:
(WebInspector.Toolbar):
(WebInspector.Toolbar.prototype.setCompactMode):
(WebInspector.Toolbar.prototype._toolbarDragStart):
(WebInspector.Toolbar.prototype._toolbarDrag):
* inspector/front-end/WebKit.qrc:
* inspector/front-end/externs.js:
(WebInspector.toggleSearchingForNode):
* inspector/front-end/inspector.css:
(body.undocked.platform-mac-snowleopard #toolbar):
(body.undocked.platform-mac-snowleopard #toolbar-dropdown):
* inspector/front-end/inspector.html:
* inspector/front-end/inspector.js:
(WebInspector._createGlobalStatusBarItems):
(windowLoaded):
(WebInspector.setDockingUnavailable):
* inspector/front-end/inspectorCommon.css:
(body.dock-to-right:not(.undocked)):
(body.dock-to-right.inactive:not(.undocked)):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@130288 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: NMI: instrument NativeImageSkia.
https://bugs.webkit.org/show_bug.cgi?id=96277

Reviewed by Yury Semikhatsky.

* platform/graphics/skia/NativeImageSkia.cpp:
(WebCore::NativeImageSkia::reportMemoryUsage):
(WebCore::reportMemoryUsage):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@130289 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL] Rebaseline pixel expectations for scrollbars/ and tables/mozilla_expected_failures/.

* platform/efl/scrollbars/scrollbars-on-positioned-content-expected.png:
* platform/efl/tables/mozilla_expected_failures/bugs/bug1010-expected.png:
* platform/efl/tables/mozilla_expected_failures/bugs/bug101759-expected.png:
* platform/efl/tables/mozilla_expected_failures/bugs/bug1128-expected.png:
* platform/efl/tables/mozilla_expected_failures/bugs/bug11331-expected.png:
* platform/efl/tables/mozilla_expected_failures/bugs/bug1164-expected.png:
* platform/efl/tables/mozilla_expected_failures/bugs/bug11945-expected.png:
* platform/efl/tables/mozilla_expected_failures/bugs/bug1262-expected.png:
* platform/efl/tables/mozilla_expected_failures/bugs/bug131020-3-expected.png:
* platform/efl/tables/mozilla_expected_failures/bugs/bug14007-1-expected.png:
* platform/efl/tables/mozilla_expected_failures/bugs/bug14489-expected.png:
* platform/efl/tables/mozilla_expected_failures/bugs/bug17826-expected.png:
* platform/efl/tables/mozilla_expected_failures/bugs/bug18770-expected.png:
* platform/efl/tables/mozilla_expected_failures/bugs/bug19526-expected.png:
* platform/efl/tables/mozilla_expected_failures/bugs/bug21518-expected.png:
* platform/efl/tables/mozilla_expected_failures/bugs/bug220653-expected.png:
* platform/efl/tables/mozilla_expected_failures/bugs/bug22122-expected.png:
* platform/efl/tables/mozilla_expected_failures/bugs/bug24880-1-expected.png:
* platform/efl/tables/mozilla_expected_failures/bugs/bug25707-expected.png:
* platform/efl/tables/mozilla_expected_failures/bugs/bug27993-2-expected.png:
* platform/efl/tables/mozilla_expected_failures/bugs/bug3105-expected.png:
* platform/efl/tables/mozilla_expected_failures/bugs/bug3166-1-expected.png:
* platform/efl/tables/mozilla_expected_failures/bugs/bug3166-10-expected.png:
* platform/efl/tables/mozilla_expected_failures/bugs/bug3166-15-expected.png:
* platform/efl/tables/mozilla_expected_failures/bugs/bug3166-18-expected.png:
* platform/efl/tables/mozilla_expected_failures/bugs/bug3166-7-expected.png:
* platform/efl/tables/mozilla_expected_failures/bugs/bug3166-8-expected.png:
* platform/efl/tables/mozilla_expected_failures/bugs/bug32205-1-expected.png:
* platform/efl/tables/mozilla_expected_failures/bugs/bug32205-4-expected.png:
* platform/efl/tables/mozilla_expected_failures/bugs/bug33784-expected.png:
* platform/efl/tables/mozilla_expected_failures/bugs/bug42043-expected.png:
* platform/efl/tables/mozilla_expected_failures/bugs/bug4294-expected.png:
* platform/efl/tables/mozilla_expected_failures/bugs/bug45621-expected.png: Added.
* platform/efl/tables/mozilla_expected_failures/bugs/bug46268-4-expected.png:
* platform/efl/tables/mozilla_expected_failures/bugs/bug47163-expected.png:
* platform/efl/tables/mozilla_expected_failures/bugs/bug51000-expected.png:
* platform/efl/tables/mozilla_expected_failures/bugs/bug56024-expected.png:
* platform/efl/tables/mozilla_expected_failures/bugs/bug61042-1-expected.png:
* platform/efl/tables/mozilla_expected_failures/bugs/bug61042-2-expected.png:
* platform/efl/tables/mozilla_expected_failures/bugs/bug65372-expected.png:
* platform/efl/tables/mozilla_expected_failures/bugs/bug67915-2-expected.png:
* platform/efl/tables/mozilla_expected_failures/bugs/bug7113-expected.png:
* platform/efl/tables/mozilla_expected_failures/bugs/bug7121-2-expected.png:
* platform/efl/tables/mozilla_expected_failures/bugs/bug73629-expected.png:
* platform/efl/tables/mozilla_expected_failures/bugs/bug80762-2-expected.png:
* platform/efl/tables/mozilla_expected_failures/bugs/bug8499-expected.png:
* platform/efl/tables/mozilla_expected_failures/bugs/bug89315-expected.png:
* platform/efl/tables/mozilla_expected_failures/bugs/bug9879-1-expected.png:
* platform/efl/tables/mozilla_expected_failures/collapsing_borders/bug41262-6-expected.png:
* platform/efl/tables/mozilla_expected_failures/core/backgrounds-expected.png:
* platform/efl/tables/mozilla_expected_failures/core/col_span2-expected.png:
* platform/efl/tables/mozilla_expected_failures/core/cols1-expected.png:
* platform/efl/tables/mozilla_expected_failures/core/columns-expected.png:
* platform/efl/tables/mozilla_expected_failures/core/conflicts-expected.png:
* platform/efl/tables/mozilla_expected_failures/dom/appendCells1-expected.png:
* platform/efl/tables/mozilla_expected_failures/dom/appendCellsRebuild1-expected.png:
* platform/efl/tables/mozilla_expected_failures/dom/appendCol1-expected.png:
* platform/efl/tables/mozilla_expected_failures/dom/appendColGroup1-expected.png:
* platform/efl/tables/mozilla_expected_failures/dom/insertTbodyExpand1-expected.png:
* platform/efl/tables/mozilla_expected_failures/dom/insertTbodyRebuild1-expected.png:
* platform/efl/tables/mozilla_expected_failures/marvin/table_frame_above-expected.png:
* platform/efl/tables/mozilla_expected_failures/marvin/table_frame_below-expected.png:
* platform/efl/tables/mozilla_expected_failures/marvin/table_frame_hsides-expected.png:
* platform/efl/tables/mozilla_expected_failures/marvin/table_frame_void-expected.png:
* platform/efl/tables/mozilla_expected_failures/marvin/tables_cellspacing_pct-expected.png:
* platform/efl/tables/mozilla_expected_failures/marvin/x_colgroup_width_px-expected.png:
* platform/efl/tables/mozilla_expected_failures/marvin/x_table_frame_above-expected.png:
* platform/efl/tables/mozilla_expected_failures/marvin/x_table_frame_below-expected.png:
* platform/efl/tables/mozilla_expected_failures/marvin/x_table_frame_border-expected.png:
* platform/efl/tables/mozilla_expected_failures/marvin/x_table_frame_box-expected.png:
* platform/efl/tables/mozilla_expected_failures/marvin/x_table_frame_hsides-expected.png:
* platform/efl/tables/mozilla_expected_failures/marvin/x_table_frame_lhs-expected.png:
* platform/efl/tables/mozilla_expected_failures/marvin/x_table_frame_rhs-expected.png:
* platform/efl/tables/mozilla_expected_failures/marvin/x_table_frame_vsides-expected.png:
* platform/efl/tables/mozilla_expected_failures/marvin/x_table_rules_all-expected.png:
* platform/efl/tables/mozilla_expected_failures/marvin/x_table_rules_cols-expected.png:
* platform/efl/tables/mozilla_expected_failures/marvin/x_table_rules_rows-expected.png:
* platform/efl/tables/mozilla_expected_failures/other/empty_cells-expected.png:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@130290 268f45cc-cd09-0410-ab3c-d52691b4dbfc