Element should not override childShouldCreateRenderer

Instead of overriding this method we can just put the check in
RenderTreeBuilder itself. This paves the way to making
childShouldCreateRenderer an SVG only concept. Once my other patches land
we can guard the call to childShouldCreateRenderer with isSVGElement()
too.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@164569 bbb929c8-8fbe-4397-9dbb-9b2b20218538
IDL compiler: Pickle interface information

This CL writes IDL interface dependency information to a pickle file
(Python serialization), Interfaces.pickle.
This is for speed and simplicity of handling dependencies between interfaces
and global interface information.

1. Serializing/Deserializing a pickle is v. fast (done in optimized C);
　we don't need to manually parse a custom text file format
　(also simplifies the code b/c don't need custom read/write functions).
2. For implementing IDL compiler features that depend on inspecting other
　interfaces, storing global information in this pickle speeds up compilation
　b/c we don't need to re-read and re-parse dependency files.

For example, to support [ImplementedAs], currently Perl has to parse
the IDL file for every interface type that is used, just to check if
it has an [ImplementedAs]. This is a major cause of slowness in the Perl
compiler.
Instead, in a followup CL I plan to store this [ImplementedAs] data
in Interfaces.pickle, so it's immediately available from reading this
one file.

This CL just adds the pickle file and does some simplification of the Python;
further refactoring will be possible once we remove Perl
and can remove the legacy text file, but we can do that later,
as part of rewriting dependency resolution.

BUG=239771
R=haraken

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

git-svn-id: svn://svn.chromium.org/blink/trunk@164570 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Support the monitoring mode in about:tracing

This is a corresponding change to trace_event.h in https://codereview.chromium.org/109933006/

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

git-svn-id: svn://svn.chromium.org/blink/trunk@164571 bbb929c8-8fbe-4397-9dbb-9b2b20218538
IDL compiler: Use v8AtomicString instead of v8::String::NewFromUtf8 (remaining places)

Followup to:
Use v8AtomicString instead of v8::String::NewFromUtf8
https://codereview.chromium.org/116983005/

There were a few places in the Perl code that hadn't changed:
v8::String::NewFromUtf8(isolate, "{NAME}", v8::String::kInternalizedString)
=>
v8AtomicString(isolate, "{NAME}")
...but had been updated in the Python code.

This syncs the Perl code to also make these changes.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@164572 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Drop 'throwUninformativeAndGenericTypeError' usage from SVG.

BUG=270033

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

git-svn-id: svn://svn.chromium.org/blink/trunk@164573 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Improve Document exception messages.

BUG=270033

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

git-svn-id: svn://svn.chromium.org/blink/trunk@164574 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Rename selection{Start,End} properties to activeSegment{Start,End}.
Merge Composition interface to CompositionEvent.

Renaming 'selection{Start,End}' to 'activeSegment{Start,End}'
was discussed at:
https://www.w3.org/Bugs/Public/show_bug.cgi?id=22059

Merging Composition interface into CompositionEvent is discussed at:
https://www.w3.org/Bugs/Public/show_bug.cgi?id=23830
and the resulting spec is:
https://dvcs.w3.org/hg/ime-api/raw-file/default/Annex.html

BUG=238585

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

git-svn-id: svn://svn.chromium.org/blink/trunk@164575 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Move the worker script loading code to the worker process (phase:1/5)

- Add contentSecurityPolicy and WebContentSecurityPolicyType to the arguments of WebSharedWorkerRepositoryClient::createSharedWorkerConnector.
- Add workerScriptLoaded(), workerScriptLoadFailed(), and selectAppChacheID() to WebSharedWorkerClient.

This is step 1 of moving the worker script loading code from the renderer process to the worker process.
See: http://crbug.com/329786

BUG=329786

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

git-svn-id: svn://svn.chromium.org/blink/trunk@164576 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Ensure DrawingBuffer::m_recycledMailboxes is queue, not stack.

DrawingBuffer::recycledMailbox() should consume the element that
is appended to m_recycledMailboxes firstly, not lastly, because
recycledMailbox() needs to wait the sync point.

DrawingBuffer::recycledMailbox() get the last element, so
DrawingBuffer::mailboxReleased() should input an element in the first place.

BUG=

R=Ken Russell	
Rubber-stamped by aelias for Source/web/tests/.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@164577 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Deprecate Attr.specified.

Use counters measure usage of Attr.specified at 0.04%. Firefox prints
a deprecation message for Attr.specified.

BUG=305105

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

git-svn-id: svn://svn.chromium.org/blink/trunk@164578 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Support missing and invalid defaults for reflected attributes.

Some enumerated attributes have a designated state if the underlying
attribute value is either missing or in an invalid state. That state
should be observable for reflected IDL attributes on getting, hence
add support for controlling what values to use for these attribute
states:

  [ReflectMissing=missingValue]
  [ReflectInvalid=invalidValue]

The attributes only have an interpretation for limited DOMString
attributes that use [ReflectOnly=<list>]. The missing/invalid value
defaults must appear in the ReflectOnly list.

R=
BUG=331694

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

git-svn-id: svn://svn.chromium.org/blink/trunk@164579 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Document does not need to be a friend of TreeScope

R=esprehn@chromium.org

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

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