Kill StyleResolver::initElement.

That function served mostly as plumbing to StyleResolverState::initElement and was a callsite twin to StyleResolverState::initForStyleResolve. Let's make them whole.

R=eseidel
BUG=237268

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

git-svn-id: svn://svn.chromium.org/blink/trunk@153277 bbb929c8-8fbe-4397-9dbb-9b2b20218538
WebSockets should not use bloatedCharacters()

R=adamk
BUG=254708

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

git-svn-id: svn://svn.chromium.org/blink/trunk@153278 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fix crash caused by calling appendBuffer() with an empty buffer.

BUG=239506
TEST=Updated http/tests/media/media-source/mediasource-append-buffer.html LayoutTest to verify the fix.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@153279 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert "parseHTMLInteger shouldn't bloatCharacters()"

This reverts commit e0ebab23e0c16b49dc90c9c39b8bbbf4f243a01e (r153193)

Looks like it's causing asserts:

STDERR: ASSERTION FAILED: !isParsingFragment() || !tagName.matches(htmlTag)
STDERR: ../../third_party/WebKit/Source/core/html/parser/HTMLTreeBuilder.cpp(1651) : void WebCore::HTMLTreeBuilder::resetInsertionModeAppropriately()

TBR=abarth@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@153280 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert "Make element.innerHTML='' fast, as it's a common pattern on the web"

This reverts commit b76f92e9a78b9bfc10080fc7e51fd049a7f0c5dd. (r153269)

Causes asserts:
STDERR: ASSERTION FAILED: !isParsingFragment() || !tagName.matches(htmlTag)
STDERR: ../../third_party/WebKit/Source/core/html/parser/HTMLTreeBuilder.cpp(1651) : void WebCore::HTMLTreeBuilder::resetInsertionModeAppropriately()

TBR=eseidel@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@153281 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Streamline GraphicsContext::clipToImageBuffer().

We can save a couple of innocent stack frames by getting rid of the following (no longer needed) indirection:

GraphicsContext::clipToImageBuffer -> ImageBuffer::clip -> GraphicsContext::beginLayerClippedToImage.

R=schenney@chromium.org,senorblanco@chromium.org

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

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

Now that there are no other dom exception classes we can remove:

  - make_dom_exceptions.py
  - DOMException.in
  - ExceptionBase

BUG=None

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

git-svn-id: svn://svn.chromium.org/blink/trunk@153283 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Gardening: Mark animation-direction-normal.html as failing on mac debug

BUG=255724
TBR=serya

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

git-svn-id: svn://svn.chromium.org/blink/trunk@153284 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Gardening: Mark compositing/contents-opaque/visibility-hidden.html as flaky on debug

BUG=255726
TBR=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@153285 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parseHTMLInteger shouldn't bloatCharacters()

R=eseidel
BUG=254708

Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=153193

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

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