Use convertToCSSPropertyID helper in UseCounter.

So use convertToCSSPropertyID() helper to hide a static_cast. Also fix
incorrect comment: make it refer to maximumCSSSampleId(). ASSERT that
CSSPropertyInvalid and CSSPropertyVariable should not be present in use
counts, matching the behavior of UseCounter::updateMeasurements().

BUG=None

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149557 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove references to SVG properties of CSS when SVG is disabled

The CSS property to histogram ID mapping references CSS properties that are
SVG-specific. If GYP_DEFINES includes 'enable_svg=0' flag, then compile fails.
This patch places a '#if defined(ENABLE_SVG) && ENABLE_SVG' preprocessor macro
around the SVG-specific CSS properties.

BUG=237264

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149558 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Flakiness dashboard FILE BUG should link to crbug.

BUG=237194
TEST=in flakiness dashboard, click on FILE BUG link -- should go to crbug
R=jparent@chromium.org, ojan

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149559 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Extending a non-HTML, non-SVG element should throw NAMESPACE_ERR

BUG=234509

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149560 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Lists & counters should use DOM for ordering

From https://bugs.webkit.org/show_bug.cgi?id=110352

Currently the list items ordering is made by traversing the render tree. This gives bad results for:
- list items flown inside regions because they are not rendered as descendants of their DOM list ancestors.
- list items matched to insertion points inside a shadow tree. The insertion point may be a child of a list so the numbering gets broken.

To implement correct DOM ordering I've taken into account the fact that pseudo-elements can have display: list-item so they should be included when traversing the DOM tree. I've added helper methods on the NodeTraversal namespace that should allow easily traversing the tree including the pseudo-elements (e.g. firstChildWithPseudo for an element with pseudo-before will return the before PseudoElement). Using these helper methods I've implemented pre-order traversal methods aware of the pseudo-elements.
An effect of this change is how the list items inside shadow tree update their counting. With the patch, if there's no <ol> or <ul> element on the ancestor chain of a <li> element to the shadow root, the list node will be considered the first parent of the <li> or the shadow root if there is no ancestor. The RenderListItem class now makes use of this new method of traversal, replacing the one based on the render tree.
To simplify the CSS counters implementation, I've changed the traversal functions inside RenderCounter to also make use of this method. The CSS counters and the list items now have the same traversal algorithm.

I've also added the correct expectations for fast/lists/positioned-count-crash.html and
fast/dom/shadow/shadow-and-list-elements.html

R=esprehn@chromium.org
BUG=229431

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149561 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Introduce PerMessageDeflate extension to WebSocket. 

Implement and add PerMessageDeflate extension being discussed in IETF. 
The current spec draft is: http://tools.ietf.org/html/draft-ietf-hybi-permessage-compression-08 
This CL includes: 
- A bug fix for WebSocketDeflater
- pywebsocket update 

BUG=229290
TEST=http/tests/websocket
R=tyoshino, tkent

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

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149562 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Make Custom Element processing simpler by using fewer QualifiedNames

Custom Element definitions fundamentally have flat, non-namespaced
names. The Custom Elements spec frequently mentions namespaces to
avoid incongruities such as upgrading a HTML element with a Custom
Element definition that extends an SVG element.

This changes Custom Element processing to make those checks
explicit. Hitherto it used QualifiedNames, but they vitiate Custom
Element processing by introducing prefixes (unused) and multiple,
overlapping namespaces (CustomElementDefinition had the potential for
two namespaceURIs.)

BUG=233775

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149563 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Support for latest WebIDL for indexed property getters.

Currently Blink WebIDL is old and defined indexed property getter
as [IndexedGetter], which has a problem that sometimes
we can't get return type and method name via IDL.

Now
getter type identifier(unsigned long identifier);
means the function is used as indexed property getter,
as described in:
http://www.w3.org/TR/WebIDL/#idl-indexed-properties

At the same time, generator now generate toV8Fast instead of toV8
for all indexed getter because wrappable is known in those cases.

R=haraken@chromium.org
BUG=229740
TEST=TestEventTarget

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149564 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Refactoring: Make WebSocketFrame construction more readable.

BUG=236732
R=tyoshino, tkent

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

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

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