Merge CSSProperties.in and CSSShorthands.in

This patch is part 1 of merging the CSS .in files (part 2 is also up, at
https://codereview.chromium.org/415613002). Having a single .in file for
listing CSS properties makes it both easier to add new properties and
add new property flags.

I've renamed some of the StyleBuilder flags to make it more obvious what
these refer to and also re-ordered CSSProperties.in in some sort of
sensible fashion (see part 2 patch for what this will look like with the
remaining properties); the high/low priority split doesn't make too much
sense right now but will of course make sense once CSSPropertyNames.in
is merged into the same file.

BUG=396992
TBR=pfeldman

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

git-svn-id: svn://svn.chromium.org/blink/trunk@180020 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Update LeakExpectation for AudioNode and Resource leaks.

TBR=kouhei@chromium.org,hajimehoshi@chromium.org
BUG=400588,402742,402743

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

git-svn-id: svn://svn.chromium.org/blink/trunk@180021 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Have DocumentOrderedMap API deal with AtomicString type instead of StringImpl*

Have DocumentOrderedMap API deal with AtomicString type instead of StringImpl*
as it would be unsafe to use if the StringImpls were not atomized.

This basically moves the AtomicString::impl() calls from the DocumentOrderedMap
API call sites to the DocumentOrderedMap implementation. This simplifies the
call sites a bit and makes the DocumentOrderedMap code look safer.

R=morrita@chromium.org, adamk@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@180022 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Oilpan: RenderMenuList should call PopupMenu::disconnectClient in destroy().

PopupMenu::disconnectClient accesses some objects, and they might be destructed
when a RenderMenuList object is garbage collected. We should call
PopupMenu::disconnectClient earlier.

This fixes SelectPopupMenuStyleTest.PopupListBoxRTLRowWidth in Oilpan.

BUG=402439

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

git-svn-id: svn://svn.chromium.org/blink/trunk@180023 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add a comment about calling clearScriptObjects before clearForNavigation.

This is a follow up CL to r178818, adding a comment why the order is important.

BUG=364377
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/blink/trunk@180024 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Convert moar Sheriff-o-Matic tests to Polymer.

BUG=400387
R=ojan@chromium.org,esprehn@chromium.org,leviw@chromium.org
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/blink/trunk@180026 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Mark test as needing rebaseline after Skia change improves it.

virtual/gpu/fast/canvas/canvas-createImageBitmap-colorClamping.html is less dirty after Skia change.


git-svn-id: svn://svn.chromium.org/blink/trunk@180027 bbb929c8-8fbe-4397-9dbb-9b2b20218538
LeakDetector: Add an expectation for resolve-after-window-close.html

r179771 fixed the crash bug but it didn't fix the leak bug.

BUG=400012
TEST=n/a
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/blink/trunk@180028 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Oilpan: RenderImageResource::shutdown should be called earlier.

This CL fixes flaky crashes in tables/mozilla/bugs/.

RenderImageResource::shutdown unregisters the owner RenderImage from an
ImageResource. We should call it in RenderImage::destroy because
RenderObject::willRenderImage, which is a callback of ImageResourceClient,
should not be called after RenderImage::destroy.

BUG=398342

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

git-svn-id: svn://svn.chromium.org/blink/trunk@180029 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert 180027 "Mark test as needing rebaseline after Skia change..."

A reftest cannot be marked as NeedsRebaseline/NeedsManualRebaseline.
This caused lint errors on all bots.

> Mark test as needing rebaseline after Skia change improves it.
> 
> virtual/gpu/fast/canvas/canvas-createImageBitmap-colorClamping.html is less dirty after Skia change.
> 

TBR=bungeman@chromium.org,zerny@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@180030 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert of Fix leaks when the shared worker is requested to be terminated while loading the main script. (https://codereview.chromium.org/451603002/)

Reason for revert:
UAF bug in WebSharedWorkerImpl::stopWorkerThread().

Original issue's description:
> Fix leaks when the shared worker is requested to be terminated while loading the main script.
> 
> BUG=398742
> 
> Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=180013

TBR=jochen@chromium.org,sigbjornf@opera.com
NOTREECHECKS=true
NOTRY=true
BUG=398742

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

git-svn-id: svn://svn.chromium.org/blink/trunk@180031 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove AudioNode::isMarkedForDeletion from oilpan builds

AudioNode::isMarkedForDeletion is not needed any more in oilpan builds
for the following (non-trivial) reason:

0 isMarkedForDeletion is set to true in AudioNode::dispose().
In oilpan builds, AudioNode::dispose() is called after the AudioNode
becomes unreachable. In other words, isMarkedForDeletion is set to true
after the AudioNode becomes unreachable.

- The only user of isMarkedForDeletion is AudioNodeInput::canUpdateState().
AudioNodeInput::canUpdateState() returns false if isMarkedForDeletion is true.

- AudioNodeInput has a strong reference to the AudioNode.

These facts indicate that AudioNodeInput::canUpdateState() always returns true. Thus this CL removes the canUpdateState() checks from the code base. This also enables us to remove AudioNode::isMarkedForDeletion.

BUG=340522
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/blink/trunk@180032 bbb929c8-8fbe-4397-9dbb-9b2b20218538
JS errors thrown in private scripts should be reported to stderr in Debug builds

In order to debug private scripts, JS errors thrown in the private scripts
(e.g., ReferenceError thrown when we make a typo in private scripts)
need to be reported to stderr. This CL makes the change.

The fprintf(stderr, ...) is enabled only in Debug builds.

This CL also renames throwDOMExceptionInPrivateScriptIfNeeded to rethrowExceptionInPrivateScript.

BUG=341031

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

git-svn-id: svn://svn.chromium.org/blink/trunk@180033 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Merge CSSPropertyNames.in and SVGCSSPropertyNames.in with CSSProperties.in

This patch is part 2 of merging the CSS .in files. Having a single .in
file for listing CSS properties makes it both easier to add new properties
and add new property flags.

BUG=396992
TBR=pfeldman

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

git-svn-id: svn://svn.chromium.org/blink/trunk@180034 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Check HTMLMediaElement::supportsType() in MediaSource.isTypeSupported()

MediaSource.isTypeSupported() should not return true without making sure
that the HTMLMediaElement supports the content type as well.

BUG=402386
R=acolwell@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@180035 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Convert more fullscreen tests to reftests

This removes ~242 KB of *-expected.png and leaves only a few
platform-specific expectations left in
LayoutTests/platform/linux/virtual/android/fullscreen/

Some tests were simultaneously pixel tests and text tests, which is
not great for a reftest. To avoid having the (formated) log output in
*-expected.html, instead make those tests time out if any check fails.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@180036 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add <menuitem>, new HTMLMenuElement IDL attributes.

Specifications:
http://www.whatwg.org/specs/web-apps/current-work/#the-menu-element
http://www.whatwg.org/specs/web-apps/current-work/#the-menuitem-element

Changes in /parser/HTMLStackItem.h are required as per this part of specification
http://www.whatwg.org/specs/web-apps/current-work/multipage/syntax.html#special
And isSpecial() is used here
http://www.whatwg.org/specs/web-apps/current-work/multipage/syntax.html#parsing-main-inbody
with section "Any other end tag"
During end tag processing, if it is a special element, it should report parseError.

Changes in /parser/HTMLTreeBuilder.cpp are required as per this part of specification
http://www.whatwg.org/specs/web-apps/current-work/multipage/syntax.html#tokenization
"When a start tag token is emitted with its self-closing flag set, if the
flag is not acknowledged when it is processed by the tree construction
stage, that is a parse error."
<menuitem> has no end tag, its a self closing tag, and it should not
contain any inner node, so adding token using insertSelfClosingHTMLElement().

Changes in /rendering/RenderTheme.cpp are as per this part of specification
http://www.whatwg.org/specs/web-apps/current-work/multipage/rendering.html#hidden-elements


BUG=87553

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

git-svn-id: svn://svn.chromium.org/blink/trunk@180037 bbb929c8-8fbe-4397-9dbb-9b2b20218538
GN: Fixes for component build

This enables webkit_unit_tests and makes public/blink work in the
component build.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@180038 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add animatable flag to CSSProperties.in

This patch adds the flag 'animatable' to CSSProperties.in, replacing the
existing switch statement in CSSAnimations.cpp. Setting the flag
indicates that the property can be animated by CSS animations and
transitions.

The added code will generate a function in CSSPropertyMetadata, which
will eventually also support functions like isInheritedProperty and
isValidFirstLetterStyleProperty. This means that the individual lines in
CSSProperties.in may start getting a bit long, although a centralized
specification of our supported CSS properties arguably helps developers
add new CSS properties, by reducing the lines they need to add and
adding documentation on what changes need to be made.

BUG=396992

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

git-svn-id: svn://svn.chromium.org/blink/trunk@180039 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Credential manager: Introduce platform interface.

This patch adds a WebCredentialManager interface that the credential
manager module will (eventually) use to call up into its embedder in
response to JavaScript API calls.

These methods don't currently do anything, and aren't actually called;
until the Chromium-side work is done, there's no reason to wire them up
to the JavaScript bindings.

BUG=400674

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

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