Dirty the first RootInlineBox, always

The current code does not dirty the first RootInlineBox in a text
run if the change affects the first InlineTextBox. It is unclear
why it was not considered necessary. However, several problems with
rtl text editing have revealed the need to dirty the root box
regardless of whether we have already dirtued the line. I believe
this is because rtl text layout creates line boxes where they would
otherwise not exist.

This patch also modifies the fix for an existing SVG rtl bug, which
avoids duplciating the same clear operations. Apparently this also
fixes a layout test that previously had a failing result.

BUG=230726

Review URL: https://chromiumcodereview.appspot.com/15271005

git-svn-id: svn://svn.chromium.org/blink/trunk@150718 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert "Implement TimedItem and timing calculations"

This reverts commit 91cd67b2e68da65b029223f6a6a4d18c314c2fa5.

One of the tests has been failing on the Android bots probably since
the change landed:

UNKNOWN (1 tests): [DISABLED_TimedItem.ZeroDurationInfiniteIteration]

TBR=dstockwell
BUG=240653

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

git-svn-id: svn://svn.chromium.org/blink/trunk@150719 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Use compileAndRunInternalScript() in createInjectedScript()

This is one of efforts to aggregate caller sites of Script::Run()
into one place.

BUG=241743
R=abarth,eseidel
TEST=inspector/*

Review URL: https://chromiumcodereview.appspot.com/15316003

git-svn-id: svn://svn.chromium.org/blink/trunk@150720 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove a bunch of dead code from webkitpy

Review URL: https://chromiumcodereview.appspot.com/15416008

git-svn-id: svn://svn.chromium.org/blink/trunk@150721 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Implement OES_texture_float_linear and OES_texture_half_float_linear extensions in WebGL.

BUG=238237

Review URL: https://chromiumcodereview.appspot.com/14860016

git-svn-id: svn://svn.chromium.org/blink/trunk@150722 bbb929c8-8fbe-4397-9dbb-9b2b20218538
import w3c import script from webkit repo

R=ojan@chromium.org
BUG=242330

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

git-svn-id: svn://svn.chromium.org/blink/trunk@150723 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove setFullScreenRendererSize and setFullScreenRendererBackgroundColor

Remove setFullScreenRendererSize and setFullScreenRendererBackgroundColor since
nothing uses them anymore. I also inlined the trivial full screen boolean
getter isAnimatingFullScreen, there's no reason for it to be out of line.

Review URL: https://chromiumcodereview.appspot.com/15510002

git-svn-id: svn://svn.chromium.org/blink/trunk@150724 bbb929c8-8fbe-4397-9dbb-9b2b20218538
recalcStyle should always start at the Document

After r150713 all recalcStyle calls start at the Document level. We
should add an ASSERT to make sure it stays this way.

Review URL: https://chromiumcodereview.appspot.com/15425003

git-svn-id: svn://svn.chromium.org/blink/trunk@150725 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Validate types of arguments passed to V8InjectedScriptHost custom methods.

This adds the typical argument checks to databaseIdMethodCustom() and
storageIdMethodCustom().

BUG=242322
R=haraken@chromium.org

Review URL: https://chromiumcodereview.appspot.com/15496007

git-svn-id: svn://svn.chromium.org/blink/trunk@150726 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove dead MediaPlayerClient methods and their implementations

Many methods of MediaPlayerClient were never called in Blink. This patch
removes those methods, their (never-invoked) callers in MediaPlayer (if
present), and their implementations in HTMLMediaElement (if present).

To help keep HTMLMediaElement up-to-date in future, made all
MediaPlayerClient's methods pure virtual and marked the overrides in
HTMLMediaElement with OVERRIDE.

R=acolwell, eseidel@chromium.org

Review URL: https://chromiumcodereview.appspot.com/15503002

git-svn-id: svn://svn.chromium.org/blink/trunk@150727 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Account for saturated estimated position in RenderBlock::layoutBlockChild

If the estimated top position is saturated the comparison with oldLogicalTop
might yield a false negative as adding and removing margins, borders etc from
a saturated number might yield incorrect results. If this is the case always
mark for layout.

* Source/core/rendering/RenderBlock.cpp
  (RenderBlock::layoutBlockChild)
    Check if logicalTopEstimate is likely to be saturated and if so mark
    for layout.
* Source/core/platform/LayoutUnit.h
  (LayoutUnit::mightBeSaturated)
    Add helper method for checking whether a number might be saturated.

TEST=Minimal test case impractical
BUG=232265
R=inferno@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@150728 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove flag DISABLE_ROUNDED_CORNER_CLIPPING.

It has been disabled in http://trac.webkit.org/changeset/130355 and is no longer needed.

BUG=

Review URL: https://chromiumcodereview.appspot.com/15492005

git-svn-id: svn://svn.chromium.org/blink/trunk@150729 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert "Use compileAndRunInternalScript() in createInjectedScript()"

This reverts commit 5c8d4d55f5a8ef4c8d4475ac40ac78f7af6469f7.

The change is causing the following ASSERT to trigger on the bots:

ASSERTION FAILED: !isMainThread() || WebCore::V8RecursionScope::properlyUsed()
Source/WebKit/chromium/src/WebKit.cpp(98): void WebKit::assertV8RecursionScope()

BUG=241743
TBR=haraken

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

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