Add myself to WATCHERS (viewport interaction, media queries)

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149947 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Refactoring CSS grammar

Nonfunctional change.
Introduced closing_parenthesis and error_recovery to reduce code duplication.

Extracted from https://codereview.chromium.org/14969002/

BUG=140608

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149948 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Since rules in scoped styles could be treated as scoped selector rules, we don't need to full style recalc.

So updated in the following way:
- register with scoping node before invoking DocumentStyleSheets::updateActiveStyleSheets.
- move needsStyleRecalc logic for scoped styles from HTMLStyleElement to StyleInvalidationAnalysis.
- make StyleInvalidationAnalysis support scoped styles.

BUG=236063

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149950 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Disabled select element should not fire onchange event.

After http://trac.webkit.org/changeset/140286, select elements can scroll
whether they are disabled or not. While they scroll, they also change the
selected item.
This patch allows the select element to scroll, but does not change the selection if the select element is disabled.

BUG=215494
TEST=fast/forms/select/listbox-disabled-no-autoscroll.html

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149951 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Bindings: Call transferArrayBuffers only if we have buffers to transfer.

Currently, we call SerializedScriptValue::transferArrayBuffers every time we
post a message. We can drop that complexity by calling it only if and when we
have buffers we'd like to transfer.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149952 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: Add sourceMappingURL to CSSStyleSheetHeader. [1/2] - Backend change. 

BUG=233507

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149955 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Disable svg/W3C-SVG-1.1/animate-elem-33-t.svg due to crash

BUG=238363
TBR=aarya@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149956 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert 149950 "Since rules in scoped styles could be treated as ..."

Crash in some tests under fast/csss/ and fast/dom.

STDERR: ASSERTION FAILED: root->m_clients.size() == 1
STDERR: ../../third_party/WebKit/Source/core/css/StyleSheetContents.cpp(383) : WebCore::Node *WebCore::StyleSheetContents::singleOwnerNode() const
STDERR: 1   0x3f1fc7ee WebCore::StyleSheetContents::singleOwnerNode() const
STDERR: 2   0x3f16e501 WebCore::StyleInvalidationAnalysis::analyzeStyleSheet(WebCore::StyleSheetContents*)
STDERR: 3   0x3f16e366 WebCore::StyleInvalidationAnalysis::StyleInvalidationAnalysis(WTF::Vector<WebCore::StyleSheetContents*, 0ul> const&)
STDERR: 4   0x3f16e279 WebCore::StyleInvalidationAnalysis::StyleInvalidationAnalysis(WTF::Vector<WebCore::StyleSheetContents*, 0ul> const&)
STDERR: 5   0x3fe31d48 WebCore::DocumentStyleSheetCollection::analyzeStyleSheetChange(WebCore::DocumentStyleSheetCollection::UpdateFlag, WTF::Vector<WTF::RefPtr<WebCore::CSSStyleSheet>, 0ul> const&, WebCore::DocumentStyleSheetCollection::StyleResolverUpdateType&, bool&)
STDERR: 6   0x3fe31f2e WebCore::DocumentStyleSheetCollection::updateActiveStyleSheets(WebCore::DocumentStyleSheetCollection::UpdateFlag)
STDERR: 7   0x3fd75d30 WebCore::Document::styleResolverChanged(WebCore::StyleResolverUpdateFlag)
STDERR: 8   0x3fd7e576 WebCore::Document::didRemoveAllPendingStylesheet()
STDERR: 9   0x3fe30f8e WebCore::DocumentStyleSheetCollection::removePendingSheet(WebCore::DocumentStyleSheetCollection::RemovePendingSheetNotificationType)
STDERR: 10  0x40064df0 WebCore::HTMLLinkElement::removePendingSheet(WebCore::HTMLLinkElement::RemovePendingSheetNotificationType)
STDERR: 11  0x40066a32 WebCore::HTMLLinkElement::sheetLoaded()
STDERR: 12  0x4006667d WebCore::HTMLLinkElement::setCSSStyleSheet(WTF::String const&, WebCore::KURL const&, WTF::String const&, WebCore::CachedCSSStyleSheet const*)
STDERR: 13  0x40066b77 non-virtual thunk to WebCore::HTMLLinkElement::setCSSStyleSheet(WTF::String const&, WebCore::KURL const&, WTF::String const&, WebCore::CachedCSSStyleSheet const*)
STDERR: 14  0x3f62ad41 WebCore::CachedCSSStyleSheet::checkNotify()
STDERR: 15  0x3f643c96 WebCore::CachedResource::finishOnePart()
STDERR: 16  0x3f643cee WebCore::CachedResource::finish()

> Since rules in scoped styles could be treated as scoped selector rules, we don't need to full style recalc.
> 
> So updated in the following way:
> - register with scoping node before invoking DocumentStyleSheets::updateActiveStyleSheets.
> - move needsStyleRecalc logic for scoped styles from HTMLStyleElement to StyleInvalidationAnalysis.
> - make StyleInvalidationAnalysis support scoped styles.
> 
> BUG=236063
> 
> Review URL: https://chromiumcodereview.appspot.com/14623002

TBR=tasak@google.com

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149957 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Bindings generator should include wtf headers with double quotes

The style scripts complains because the generated code includes wtf
headers with <> instead of double quotes.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149958 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Centralize setting a ResourceRequest's cache policy.

BUG=none
TEST=none

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149959 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove FrameLoader::m_quickRedirect in favor of FrameLoadTypes.

m_quickRedirect is nearly synonmous with
FrameLoadTypeRedirectWithLockedBackForwardList. Make them completely
synonymous.

BUG=none
TEST=none

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149960 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Disable fast/canvas/webgl/index-validation-with-resized-buffer.html as it's crashing

BUG=239077
TBR=kbr@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149961 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fix ietestcenter/css3/grid/grid-column-003.htm on MountainLion

This is the same bug as crbug.com/225778 and is related to font
smoothing on Mac. The fix is to add some CSS to disable font
smoothing on the whole page.

BUG=237083
TEST=ietestcenter/css3/grid/grid-column-003.htm

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

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