Only composite opacity animations when already in compositing mode

This reverts a behavior change introduced by r161636. Entering compositing
mode for opacity animations is the suspected cause of a memory usage
regression on OS X 10.6.

BUG=317747

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

git-svn-id: svn://svn.chromium.org/blink/trunk@162118 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Not parsing @-internal- rules in stylesheets.

BUG=319756

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

git-svn-id: svn://svn.chromium.org/blink/trunk@162119 bbb929c8-8fbe-4397-9dbb-9b2b20218538
CSSGrammar.y refactoring.

Preparation for https://codereview.chromium.org/71623002/

BUG=317499

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

git-svn-id: svn://svn.chromium.org/blink/trunk@162120 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[DevTools] Network: return ability to see data URLS.

BUG=313845

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

git-svn-id: svn://svn.chromium.org/blink/trunk@162121 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[devtools] Correct CSS for extension sidebar panes

Remove position relative.
Add height test to sidebar LayoutTest.

BUG=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@162122 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Introduce PassRefPtr::AdoptRefTag and use it in the adoption constructor

Introduce PassRefPtr::AdoptRefTag and use it in the adoption constructor instead of bool argument.
Rationals:
- makes code more consistent, since having this kind of tags is a pattern in blink
- makes code more clear: it does not have an explanation comment any more.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@162123 bbb929c8-8fbe-4397-9dbb-9b2b20218538
spellcheck-editable-on-focus.html does not test all elements

This tests misspellings on editable elements (div, text area, input).
However, after r161840 only first one is being tested.

Additionally, rename setFocusOnEditableElements() to triggerSpellingForEditables()
to better describe what it does.

BUG=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@162124 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Refactoring spellcheck-disable-enable.html to use async path for spellcheck

Use asynchronous spellchecking in spellcheck-disable-enable.html.

In addition, use more descriptive variable names and simplify the test.
Automatically fill in the misspellings to the editable fields so
non DumpRenderTree users don't have to do that.

BUG=295722

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

git-svn-id: svn://svn.chromium.org/blink/trunk@162125 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Have DOMImplementation take the Document argument by reference

Have DOMImplementation take the Document argument by reference as its
implementation expected the Document pointer to never be null. This
makes the code look safer.

R=adamk

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

git-svn-id: svn://svn.chromium.org/blink/trunk@162126 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Update WebVTT parser spec references

Update the spec. references in the parser implementation to match the
ED from November 9 2013.

Only comments changed.

BUG=305317

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

git-svn-id: svn://svn.chromium.org/blink/trunk@162127 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Update ScriptController's resourceInfo() to use V8TRYCATCH_FOR_V8STRINGRESOURCE_RETURN()

Update ScriptController's resourceInfo() to use V8TRYCATCH_FOR_V8STRINGRESOURCE_RETURN()
macro instead of toWebCoreString(v8::Handle<v8::Value>), to make sure we abort early
in the event v8::Value::ToString() throws an exception.

R=haraken

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

git-svn-id: svn://svn.chromium.org/blink/trunk@162128 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove dead code from IDB (blink side)

BUG=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@162129 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fix typo in LayoutTests/editing/execCommand/apply-style-iframe-crash.html

This patch fixes typo in LayoutTests/editing/execCommand/apply-style-iframe-crash.html

BUG=n/a
TEST=LayoutTests/editing/execCommand/apply-style-iframe-crash.html

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

git-svn-id: svn://svn.chromium.org/blink/trunk@162130 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Split the frame tree logic out of HistoryItem

This is a proposal for separating the per-frame data we need for history from
the frame-tree that HistoryItem stores.

This patch introduces HistoryEntry, which is basically a wrapper around
a tree of HistoryEntryItems. HistoryEntryItem contains a HistoryItem (which
stores the relevant data for the frame) and a vector of child
HistoryEntryItems. Multiple HistoryEntryItems can hold references to the same
HistoryItem. HistoryEntry/HistoryEntryItem have logic for doing a parital
clone of themselves while replacing the navigated item.

HistoryEntry keeps 2 maps. One maps frame ids (which are new) to HistoryEntryItems, the other maps FrameTree::uniqueName() to HistoryEntryItems. The frame id maps is sufficient for the vast majority of cases, but a secondary mechanism for finding a HistoryEntryItem is necessary when doing a back/forward navigation with iframes, as child iframes may want to load from history, but the HistoryEntry may not know about the new Frame object yet.

HistoryController know lives in Page, though for simplicity I left a helper
on FrameLoader that gets the Page's HistoryController.

This patch doesn't plumb the new data model all the way out, so HistoryController retains a mechanic for converting between the old HistoryItem child tree and the HistoryEntry tree.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@162131 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Mark media/video-autoplay.html and media/media-load-event.html as passing again.

The crash was fixed in Chromium r235221.

BUG=319198
TBR=kinuko

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

git-svn-id: svn://svn.chromium.org/blink/trunk@162132 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fix media-source LayoutTest timeouts caused by uncaught assert exceptions.

Some tests were timing out because AssertionError exceptions were not getting
caught because handleWaitCallback_() was not getting consistantly wrapped with
step_func(). This change ensures proper wrapping of the method and makes the
2 instances consistent.

BUG=284793

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

git-svn-id: svn://svn.chromium.org/blink/trunk@162133 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Make free functions we always pass *this to into methods in ContainerNode

The code in ContainerNode.cpp was confusing since there's a bunch of
generic looking methods referencing newParent, but in reality we always
pass *this to them so they were only ever talking about the node that
was having appendChild etc. called on it.

This patch makes all those free functions into methods and removes some
wrapper functions that made the code harder to follow.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@162134 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Have V8WorkerGlobalScopeEventListener::callListenerFunction() use V8TRYCATCH_FOR_V8STRINGRESOURCE_RETURN()

Have V8WorkerGlobalScopeEventListener::callListenerFunction() use V8TRYCATCH_FOR_V8STRINGRESOURCE_RETURN()
macro instead of toWebCoreString(v8::Handle<v8::Value>) so that we abort the function in case
v8::Value::ToString() threw an exception.

R=haraken

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

git-svn-id: svn://svn.chromium.org/blink/trunk@162135 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Make checkForSiblingStyleChanges and checkForEmptyStyleChange into methods on Element

We always passed |this| into these functions, they should just be private
methods instead.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@162136 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Changing can-play-webm layout test for Opus

Opus has been enabled by default in Chromium. Changing the layout
tests so that canPlayType returns probably for opus.

Note: This should not be submitted until
https://codereview.chromium.org/62183002/ lands.

BUG=315606
R=scherkus@chromium.org

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

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