[FastTextAutosizer] Update expectations for two FTA table tests

This patch updates the test expectations for two FTA table tests after [1].

The old autosizer would autosize some table cells that the fast autosizer
doesn't autosize. This patch simply updates the virtual expectations to
enforce that.

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

BUG=302005

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

git-svn-id: svn://svn.chromium.org/blink/trunk@167974 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[CSS Shapes] Adjust lineTop position to the next available wrapping location at shape-outsides

When we don't have space next to the floating container, but we have space inside the floating-container next
to the defined shape-outside, we should wrap around the shape-outside. This patch fixes the behavior both for
cases when there is no space to fit at the first line, and for the additional lines cases.

BUG=346877

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

git-svn-id: svn://svn.chromium.org/blink/trunk@167975 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Move computeInlinePreferredLogicalWidths to RenderBlockLineLayout

Only RenderBlockFlows have inline children, and furthermore, code
for dealing with inline children lives in RenderBlockLineLayout.
This patch moves the code out of RenderBlock. It also adds some
FIXMEs to break the mammoth function up.

Ultimately, RenderBlock shouldn't be aware of its inline child
mode at all, which will clean up this code path.

I also tried to remove the need for the const_cast, but ended up
deep in wild yak territory and gave up. I stuck with fixing all
the ancient style errors :)

BUG=302024

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

git-svn-id: svn://svn.chromium.org/blink/trunk@167976 bbb929c8-8fbe-4397-9dbb-9b2b20218538
SerializedScriptValue: Don't hold isolate in Writer

The Writer (which mostly serializes C++ values to a buffer) does not
need the isolate. The Writer's isolate pointer was only used by the
Serializer which called into the Writer, and the Serializer already
has an isolate pointer.

This lets us remove a v8::Isolate::GetCurrent() call.

R=haraken
BUG=339838

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

git-svn-id: svn://svn.chromium.org/blink/trunk@167978 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[webcrypto] Add the KeyAlgorithm interface.

This matches the changes in https://dvcs.w3.org/hg/webcrypto-api/rev/2fa3494f0179

 * Key.algorithm is now reflected as a KeyAlgorithm interface rather than Algorithm
 * HMAC no longer takes the hash as an operational parameter (key move to import/generation)
 * RSA-SSA no longer takes the hash as an operation (move to key import/generation)parameter

BUG=245025

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

git-svn-id: svn://svn.chromium.org/blink/trunk@167979 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fix webfont loading problems when stylesheets changed while loading

Stylesheets change causes FontFaceCache::clear(). If there are any
ongoing font downloads, that may cause two problems:

(1) The font download can be canceled, because CSSFontFaceSource, which
is a FontResourceClient, is destroyed. To prevent this, this patch makes
FontFaceSet keep a reference to FontFace while loading.

(2) Text is not refreshed because CSSFontFace::fontLoaded() returns
immediately. FontFaceCache::clear() reconstructs CSSFontFace objects,
so m_sources may not point to the source it was loading before style
changes. This patch changes CSSFontFace::fontLoaded() always calls
CSSFontSelector::fontLoaded(), regardless its status.

In the long term, we should try to avoid reconstructing FontFace on
stylesheet changes.

BUG=336476
TEST=http/tests/webfont/fontface-style-change.html

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

git-svn-id: svn://svn.chromium.org/blink/trunk@167981 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[FastTextAutosizer] Optimize clusterHasEnoughTextToAutosize

This patch optimizes clusterHasEnoughTextToAutosize by returning early
if the text length is greater than a minimum ("minimumTextLengthToAutosize").

I've also optimized superclusterMultiplier to early-out of a for loop once a
candidate has been found with enough text to autosize.

Lastly, this patch has some refactoring for clarity. The unnecessary
anyClusterHasEnoughText variable on Supercluster has been removed.
textLength() has been merged into clusterHasEnoughTextToAutosize, and
a comment has been added describing why 4 lines of text is considered
sufficient.

No new tests as there's no change in behavior.

BUG=302005

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

git-svn-id: svn://svn.chromium.org/blink/trunk@167982 bbb929c8-8fbe-4397-9dbb-9b2b20218538
IDL compiler: switch build to Python compiler

This switches the build to Python, rather than Perl.

As of Blink r-167947, Perl and Python generate identical bindings code, so we're ready to switch:
https://src.chromium.org/viewvc/blink?view=rev&revision=167947

Certain in-flight CLs may cause breakage if they land:
if they only change Perl (not Python).
This is generally caught by run-bindings-tests in blink_presubmit, but can fail if the change lacks test cases,
or if the patch set was uploaded prior to turning on Python tests in r-167838.

The only 1 I can see is:
Move mediastream module to oilpan
https://codereview.chromium.org/173363002/
This lacks test cases, and will break the build if it lands.
I've stopped this.

Ref:
log: code_generator_v8.pm
http://src.chromium.org/viewvc/blink/trunk/Source/bindings/scripts/code_generator_v8.pm?view=log#revHEAD

BUG=239771
R=haraken

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

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