Make inline blocks correctly update their line box selection state.

When text is selected, RenderText::setSelectionState marks each RootInlineBox as having selected children.  But if a line contained only an inline-block element, the selection state of that line's RootInlineBox was not updated.

That caused RenderBlockFlow::inlineSelectionGaps to set lastLogicalTop to the wrong value, since it believed the line was not selected.

That caused RenderBlock::selectionGaps to paint a vertical selection gap on top of the affected line, obscuring its content.

This patch adds RenderBlock::setSelectionState, which updates the selection state of the RootInlineBox.

BUG=388324

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

git-svn-id: svn://svn.chromium.org/blink/trunk@176944 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Let ThreadableLoaderClientWrapper's client handle failures better.

If the ThreadableLoaderClientWrapper is notified of a redirect or
CORS access check failure, it forwards that notification to its client.

Do that without first moving the wrapper object to a 'done' state, so as
to allow the client to fully handle the failure -- the worker threadable
loader will for instance signal an error-cancellation failure back at
the wrapper.

R=abarth@chromium.org,tyoshino@chromium.org
BUG=386520

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

git-svn-id: svn://svn.chromium.org/blink/trunk@176945 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Ignoring math expressions involving percentages for widths and heights
on table elements

According to the standard, math expressions involving percentages for
widths and heights on table elements have to be treated as if "auto"
had been specified. The patch implements this fallback.

BUG=350852

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

git-svn-id: svn://svn.chromium.org/blink/trunk@176946 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add core/frame base classes to watchlists for device_orientation and battery_status.

modules/device_orientation and modules/battery depend on some bases classes
in core/frame. Add them to the watchlists for these modules.

BUG=

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

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