DevTools: nit refactoring in ScriptsPanel.js to remove code dups.

BUG=None
R=vsevik@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@153580 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: Main resource should be shown in open resource dialog even if it doesn't have name.

Resources without name are now named as (index).


BUG=255410

Review URL: https://chromiumcodereview.appspot.com/18068014

git-svn-id: svn://svn.chromium.org/blink/trunk@153581 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Regression(r153187): Crash reading webp image color profile

Based on a patch by Pascal Massimino.

setData() may have shuffled the encoded data pointers inbetween the
creation of m_demux object and its use.  Ensure m_demux is properly
updated prior to reading color profile data.

TBR=inferno@chromium.org
BUG=255931

Review URL: https://chromiumcodereview.appspot.com/18691002

git-svn-id: svn://svn.chromium.org/blink/trunk@153582 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Blink gardening: fix inspector tests flakiness.

TBR=vsevik

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

git-svn-id: svn://svn.chromium.org/blink/trunk@153583 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: fix DOM counters drawing artifacts on Timeline chart

It did not take into account one point past the right edge,
thus the line from the rightmost visible point to the right egde
was broken.
Plus changed the time bounds search algorithm to binary search.

R=yurys@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@153584 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fix lint errors in chromium_android.py and chromium_android_unittest.py

The duplicate of ChromiumAndroidTwoPortsTest was added in
https://src.chromium.org/viewvc/blink?revision=149345&view=revision

R=peter
BUG=231188

Review URL: https://chromiumcodereview.appspot.com/18291002

git-svn-id: svn://svn.chromium.org/blink/trunk@153585 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add a webp color profile crash test

Blink r153187 caused ASAN issues: add a test for the ASAN bots
to gnaw on: fast/images/webp-color-profile-crash.html

TBR=skal@google.com
BUG=255931

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

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