Refactor PrivateScriptRunner.js to reduce the number of globally exposed variables

It's not a good idea to use global variables in PrivateScriptRunner.js
because they are exposed to all window objects of the private scripts.
This CL reduces the number of global variables used in PrivateScriptRunner.js.

Also this CL removes a |global| parameter from installClass()
since the |global| is always equal to the window object of the JS file.

BUG=341031

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

git-svn-id: svn://svn.chromium.org/blink/trunk@180053 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove unused functions from ElementRuleCollector

This patch removes the functions:
- lastMatchedRulesPosition
- sortMatchedRulesFrom
- sortAndTransferMatchedRulesWithOnlySortBySpecificity
from ElementRuleCollector as they are unused (and the latter two don't
even have definitions).

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

git-svn-id: svn://svn.chromium.org/blink/trunk@180054 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Move DOMSelection.[cpp/h] from core/page to core/editing

Since this file is associated with the Editing module, this should
be kept in core/editing instead of core/page.

BUG=402417

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

git-svn-id: svn://svn.chromium.org/blink/trunk@180055 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Now context menu item for documentation is not created if WebInspector.DocumentationURLProvider cannot provide a URL for selected property.

BUG=391593

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

git-svn-id: svn://svn.chromium.org/blink/trunk@180056 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[DevTools] Removed ScriptState from createScriptCallTackForConsole

In method createScriptCallTackFromConsole we can get current execution context in function body without passing it in arguments.

Removed canGenerateCallStack argument from InspectorConsoleMessage cstor which uses the transmitted stack.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@180057 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Power profiler should check for the capability CanProfilePower

The patch [1] removed the global capabilities set. The power profiler depends on whether
there exists a power service and it has a valid data provider. If these are met, only then
the devtools can do power profiling.

The checkbox "Power" should only be visible if the capability exists. Restoring the required
checks.

[1] https://codereview.chromium.org/388963004

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

git-svn-id: svn://svn.chromium.org/blink/trunk@180058 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Aligned srcset mixedContent blocking to the spec

Previous implementation did not block mixed content when the srcset attribute was empty.
This CL fixes that.

BUG=402792

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

git-svn-id: svn://svn.chromium.org/blink/trunk@180059 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Cleanup namespace usage from animation to exported in platform/

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

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