callTheAdoptionAgency work asynchronously

Rather than manipulating the DOM tree directly,
HTMLTreeBuilder::callTheAdoptionAgency should indirect its modifications
through the HTMLConstructionSite, which can use its task queue to make sure the
operations occur in a consistent order and on a clean runtime stack.

This CL shouldn't have an observable behavior change.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149823 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert "Clear highlight when the highlighted node gets removed from the document"

This reverts http://src.chromium.org/viewvc/blink?view=revision&revision=149814, because the test that was landed with it
is failing immediately after landing.

TBR=trchen@chromium.org
BUG=232926

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149824 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove unused WebRuntimeFeature for XHRResponseBlob

BUG=237740

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149825 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove unused ScriptGlobalObject methods

R=haraken

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149826 bbb929c8-8fbe-4397-9dbb-9b2b20218538
This makes the functions all match the naming used in Blink's RuntimeEnabledFeatures.in.  This will make them much easier to autogenerate.

Some of these will require a 2-sided change, so I've left some helper functions to map to the new names.

I don't believe anyone ever calls the isFooEnabled functions in Content/Chrome so we will may end up removing those during autogeneration.

BUG=237740
R=abarth@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149827 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Devirtualize Document class type checking

Document has a bunch of virtual bool is*Document() methods on it, but it also has
two bools for XHTML and HTML documents which is silly. We can merge them all
together into an enum of values and devirtualize the type checking methods.

This patch introduces the DocumentClass enum that is used to signal what subclass
of Document, or HTMLDocument, is being implemented.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149828 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[Navigation Timing] Handle http cached resoruceLoadTiming case.

Currently, resourceLoadTiming of the http cached response is not populated
to navigation timing, so there is an assumption that timeticks nav obtained is complete.
If we let http cached timing info pass through glue, timestamps in resourceLoadTiming 
will be negative except "requestTime", we should handle the case here.

Contributed by pan.deng@intel.com

BUG=None
TBR=tonyg

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149829 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Maintain webtiming test case

Modify expected text of http/tests/misc/webtiming-ssl.php, and add expect failure
in TestExpectations. This case should fail because resource load timing info is not
passed to DRT.

Once the chromium change https://codereview.chromium.org/14108004/ is made, this case will pass.

Contributed by pan.deng@intel.com

BUG=234867
TBR=tonyg

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149830 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Move AudioContext back to WebAudio after learning from crogers that it controls the whole feature

BUG=237740
R=abarth@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149831 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Include scrollbar size in @media width/height

Not including scrollbar size causes bad circular dependencies when
non-overlay scrollbars are created or removed.

CSS spec says we should include size of scroll bars when evaluate the
MQ rules about width/height.

BUG=236111
TEST=LayoutTests/fast/media/mq-size-include-scrollbars.html

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149832 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Allow touch to resize elements with CSS property "resize" enabled

Elements with CSS property "resize" enabled will have a small resize
handle at the right bottom of the element. Currently using mouse event
to drag the resize handle is already implemented in main thread. This
patch adds the support of using touch to drag the resize handle.

1. Scroll gestures are used for manipulating the resize handle instead
of raw touch events. Scroll gesture is more handy for handling dragging
operation than raw touch events, e.g. we probably don't want a tap with
small movement to move the resizer, and we also don't want to deal with
multi-fingers like pinch in this case. Scroll gestures hide unnecessary
details and give us more clean data.

2. Scroll gestures won't reach the main thread if the scroll can be
executed in impl thread (fast scroll). So we mark those resizer handle
areas as non-fast-scrollable, and if the touches hit those area they
will be forced to be sent to main thread for resizing.

3. We make the resizer handle area larger for touch hit testing since
touch pointing is inherently not as accurate as mouse pointing.

BUG=150601
TEST=1. go to https://code.google.com/p/chromium/issues/detail?id=150601
check that one can use touch to resize the text input area at the bottom.
2. LayoutTests/fast/css/resize-corner-tracking-touch pass

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149833 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Implement DumpRenderTree...WebViewHost::scheduleAnimation

In order to move animation servicing to be triggered by only animation
frame callbacks this patch implements scheduleAnimation so that calls
to testRunner.display are not necessary to generate frame callbacks.

Animation is scheduled on the message loop with a 1ms delay. While no
delay would be ideal, because animation servicing triggers further
calls to scheduleAnimation it would cause priority inversion with dom
timers. setTimeout calls used by many CSS Animation and Transition
tests to sample expectations would occasionally miss their scheduled
times by hundreds of ms.

Updated request-animation-frame tests to not call testRunner.display()

Removed request-animation-frame-too-rapid.html since DumpRenderTree now
triggers frame callbacks with minimal delay.

BUG=235678

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

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