DevTools: Trim sourceURL from scripts before showing them in the editor

BUG=249259
R=pfeldman_ooo, apavlov

Review URL: https://codereview.chromium.org/93663006

git-svn-id: svn://svn.chromium.org/blink/trunk@164311 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: [Elements] Display invisible characters as HTML entities in attribute values

R=aandrey, eustas, vsevik
BUG=330388

Review URL: https://codereview.chromium.org/105663006

git-svn-id: svn://svn.chromium.org/blink/trunk@164312 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: [Styles] Make sure autocompleted property value gets into the stylesheet

We've had a race between the delayed autocompletion and live stylesheet updates,
which used the non-completed property value in certain cases, and it never
made its way into the stylesheet.

R=aandrey, eustas, vsevik
BUG=326393

Review URL: https://codereview.chromium.org/118473004

git-svn-id: svn://svn.chromium.org/blink/trunk@164313 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[DevTools] Refactor docking code.

- Introduced status bar button type, which will be also used for screencast.
- Immediately change UI when dock state is changed, notifying
InspectorFrontendHost. We don't wait for setDockSide call anymore.
- Store dock state in frontend setting, and ignore "dock_side" parameter.

Next step is to switch from "dock_side" to "is_docked" parameter when
communicating with InspectorFrontendHost.

BUG=318751

Review URL: https://codereview.chromium.org/118223002

git-svn-id: svn://svn.chromium.org/blink/trunk@164314 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Timeline: followup fix for r164289. Replace WebInspector.Panel.* calls with WebInspector.View.*

BUG=
R=caseq@chromium.org

Review URL: https://codereview.chromium.org/112943004

git-svn-id: svn://svn.chromium.org/blink/trunk@164315 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Store heap snapshot in a temp file

Protocol data of heap snapshot is saved in a temp file so that it can be later saved in a user specified file. This resembles similar behaviour of CPU profiler and required for not storing heap snapshots on the backend.

BUG=324769
R=loislo@chromium.org

Review URL: https://codereview.chromium.org/120913002

git-svn-id: svn://svn.chromium.org/blink/trunk@164316 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: [JsDoc] Fix inheritance-related annotations and code

R=aandrey, eustas, vsevik
NOTRY=true

Review URL: https://codereview.chromium.org/116463003

git-svn-id: svn://svn.chromium.org/blink/trunk@164317 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Use WebInspector.ChunkedFileReader to speed up heap snapshot saving

BUG=324769
R=loislo@chromium.org

Review URL: https://codereview.chromium.org/113613003

git-svn-id: svn://svn.chromium.org/blink/trunk@164318 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Use 10Mb chunks when writing heap snapshot to temp file

This speeds up writing to the temp file about 15x

BUG=324769
R=loislo@chromium.org

Review URL: https://codereview.chromium.org/107593004

git-svn-id: svn://svn.chromium.org/blink/trunk@164319 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Mark inspector/profiler/heap-snapshot-loader.html as failing

BUG=330617
TBR=loislo@chromium.org

Review URL: https://codereview.chromium.org/111833009

git-svn-id: svn://svn.chromium.org/blink/trunk@164320 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Show Paint events for background threads in Timeline panel.

Review URL: https://codereview.chromium.org/120703002

Review URL: https://codereview.chromium.org/120703002

git-svn-id: svn://svn.chromium.org/blink/trunk@164321 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove dead code from LiveNodeListBase

Remove dead code from LiveNodeListBase. The m_isItemRefElementsCacheValid
member and its associated getter / setter are never used.

R=abarth, esprehn

Review URL: https://codereview.chromium.org/109013007

git-svn-id: svn://svn.chromium.org/blink/trunk@164322 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Dynamically insrted HTMLImport shouldn't block script

This change let <link rel=import> not block the script unless
it is inserted by the parser. The change is straightforward:
Add a flag to indicate whether the import is added by a parser,
and check if before turning the blocking flag on.

BUG=328793
TEST=import-async.html,import-async-tree.html,import-async-shared.html
R=dglazkov,dominicc

Review URL: https://codereview.chromium.org/113703002

git-svn-id: svn://svn.chromium.org/blink/trunk@164323 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: detach sidebar views when they are hidden.

R=vsevik@chromium.org

Review URL: https://codereview.chromium.org/111853004

git-svn-id: svn://svn.chromium.org/blink/trunk@164325 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[SVG] Remove AnimatedNewProperty enum value. Use original type values.

"AnimatedNewProperty" was used to indicate types migrated to new property implementation. However, it turns out that enum representing real type is required when handling "SMIL animations animating CSS values". In addition, they are useful when validating downcasts.

This patch reverts addition of AnimatedNewProperty, and now NewSVGProperty implementations also use original type values.

BUG=308818
TBR=pdr@chromium.org

Review URL: https://codereview.chromium.org/121013003

git-svn-id: svn://svn.chromium.org/blink/trunk@164326 bbb929c8-8fbe-4397-9dbb-9b2b20218538
remove UnsafePersistent::deprecatedHandle()

v8::ReturnValue accepts v8::Persistent, so this is not needed now.

BUG=None

Review URL: https://codereview.chromium.org/120413004

git-svn-id: svn://svn.chromium.org/blink/trunk@164327 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[DevTools] Disable emulation UI elements when emulation itself is disabled.

This was broken because we have two conditions to check:
- whether inspected page is on real device;
- whether emulation is enabled.
Second condition was ignored.

This change also applies emulation on first click on 'Emulate screen' checkbox.

BUG=330504

Review URL: https://codereview.chromium.org/118513004

git-svn-id: svn://svn.chromium.org/blink/trunk@164328 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: Make AuditCategory an interface to avoid bogus @extends for ExtensionAuditCategory.

R=aandrey, eustas, vsevik, yurys

Review URL: https://codereview.chromium.org/114793006

git-svn-id: svn://svn.chromium.org/blink/trunk@164329 bbb929c8-8fbe-4397-9dbb-9b2b20218538