Devtools: Fix array check in CustomPreviewSection

BUG=
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/blink/trunk@187688 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: Improve code structure in Section.js

PropertiesSection is merged into Section, and the setters/getters usage
is reduced.

R=pfeldman
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/blink/trunk@187690 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Timeline: show paint profiler for RasterTask events

Show paint profiler in RasterTask (aka off-thread Paint) event details,
use mask to indicate what part of the original picture was actually
rasterized.

BUG=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@187693 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: make toolbar buttons more theme-friendly.

This regressed upon migration to shadow dom.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@187694 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: NetworkPanel: add "Open in Sources panel" context menu item.

BUG=443088

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

git-svn-id: svn://svn.chromium.org/blink/trunk@187695 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: Fix vertical alignment of text and checkboxes in dt-checkbox labels

This got regressed in r187165

R=pfeldman
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/blink/trunk@187697 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Timeline: do not use for-of for iterating over long sequences

v8 disables optimizations when for-ofs are present, so avoid them
in performance-criticial spots. In particular, this change removes
InvalidationTracker.addInvalidation and invalidationsOfTypes generator
from the top of profiler stats while loading timeline.

Drive-by: index invalidations by node ids to speed up addInvalidation().

BUG=

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

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