DevTools: goto-line functionality should not change selected uisourcecode

BUG=363597

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

git-svn-id: svn://svn.chromium.org/blink/trunk@171764 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Clean up methods in ScriptValue

This CL is a preparation for introducing NewScriptState to ScriptValue.

- Remove createNull(). Replace the call sites with an alternative method.
- Remove createBoolean(). Ditto.
- Remove toString(). Ditto.
- Rename getString() to toString().
- Remove isEqual(). This method is unused.
- Rename hasNoValue() to isEmpty().

BUG=357144

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

git-svn-id: svn://svn.chromium.org/blink/trunk@171765 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove DOMImplementation.createCSSStyleSheet()

Intent to Remove:
https://groups.google.com/a/chromium.org/d/msg/blink-dev/uDjkuGA9gQs/zytnzJ6WryYJ

Without createCSSStyleSheet() it becomes a bit more difficult to create
a CSSStyleSheet which is not reachable from elsewhere, but it's still
possible. Note that the updated tests still do fail, the reason being
explained in ~CSSStyleSheet().

BUG=363561

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

git-svn-id: svn://svn.chromium.org/blink/trunk@171766 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: Suggest cmd-P instead of cmd-O

BUG=363718

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

git-svn-id: svn://svn.chromium.org/blink/trunk@171767 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove UnsafePersistent from ScriptWrappable and ScriptWrappable clients.

BUG=276323

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

git-svn-id: svn://svn.chromium.org/blink/trunk@171768 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: Fix CPU profile flame chart overview scale on hidpi

Driveby: turn couple static functions into regular methods.

BUG=363969

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

git-svn-id: svn://svn.chromium.org/blink/trunk@171769 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Added devices panel to drawer in DevTools.

BUG=309879

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

git-svn-id: svn://svn.chromium.org/blink/trunk@171770 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove InspectorFrontendAPI.evaluateForTest

The method was used by stanalone inspector test harness that has been removed.

BUG=364013

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

git-svn-id: svn://svn.chromium.org/blink/trunk@171771 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[SVG] Avoid invalidation cycles.

Currently, there is no mechanism to prevent cycles in the
SVGDocumentExtensions reference sets.
RenderSVGResource::markForLayoutAndParentResourceInvalidation() and his
buddy removeFromCacheAndInvalidateDependencies() use these sets to
transitively invalidate dependencies -> cycles cause indefinite
recursion.

There are two ways we can go about this:

1) Avoid adding SVGDocumentExtensions references which would introduce
cycles in the first place: this may require some convoluted logic for
reconstructing the sets when references are removed (as previous cycles
can turn into valid dependency chains). It's also unclear how it
interacts with cross-document references.

2) Detect & break cycles at invalidation time: simply track the
references being invalidated and avoid entering cycles.

This CL implements the latter, using a hash set for tracking
invalidating references.

BUG=361808
R=schenney@chromium.org,pdr@chromium.org,fs@opera.com

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

git-svn-id: svn://svn.chromium.org/blink/trunk@171772 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Unreviewed test expectation updates

Mark inspector/audits/audits-panel-noimages-functional.html as flaky
and skip virtual/windows-directwrite/fast/text/cg-fallback-bolding.html

TBR=leviw@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@171777 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Flatten platform CalculationValues down to two floats

This change simplifies Calculated Length values by flattening the calc
tree into pixel and percentage values. Constructing a platform calc now
requires evaluating the CSS calc tree down to two values.
This simplifies much of the code that deals with calc Lengths and can
now easily avoid creating calcs when they are not necessary.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@171779 bbb929c8-8fbe-4397-9dbb-9b2b20218538
applyClippingToContext() target node may be missing.

RenderSVGResourceClipper::applyClippingToContext() should handle missing
target nodes gracefully (for generated/synthetic non-SVG targets).

BUG=264492
R=schenney@chromium.org,pdr@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@171780 bbb929c8-8fbe-4397-9dbb-9b2b20218538
hitTest should check the location if it is inside borderBoxRect in case of overflow: hidden

BUG=110705

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

git-svn-id: svn://svn.chromium.org/blink/trunk@171781 bbb929c8-8fbe-4397-9dbb-9b2b20218538
RIP UnsafePersistent, 2013-2014.

BUG=276323

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

git-svn-id: svn://svn.chromium.org/blink/trunk@171782 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Added ASSERT(!document.childNeedsDistributionRecalc) before using m_nodeToInsertionPoints.

We cannot use m_nodeToInsertionPoints when document.childNeedsDistributionRecalc() is true.

So added ASSERT to finalDestinationInsertionPointFor and destinationInsertionPointsFor.

BUG=338970,337618
TEST=no new test, because this patch just added two asserts.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@171783 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: Make reloading inspected page faster when using source maps with many sources.

BUG=363881

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

git-svn-id: svn://svn.chromium.org/blink/trunk@171784 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: make timeline memory overview nice again (thin lines, no shadow)

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

git-svn-id: svn://svn.chromium.org/blink/trunk@171785 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: the colors for 'margin/border/padding' were not retained on mouseout.

BUG=364021

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

git-svn-id: svn://svn.chromium.org/blink/trunk@171786 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add platform/WebConvertableToTraceFormat.h

This is extracted from https://codereview.chromium.org/236983003/
to provide the types necessary to land the chromium counterpart in
https://codereview.chromium.org/236683007/

BUG=361045
TBR=pfeldman

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

git-svn-id: svn://svn.chromium.org/blink/trunk@171788 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[webcrypto] Update layout tests to match idl generator changes.

Functions that return Promises no longer throw TypeError exceptions.

BUG=362992,245025

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

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