Let SpellChecker::respondToChangeClient on a text input field avoid synchronous 
layout. 

SpellChecker::respondToChangeClient is called by FrameSelection::setSelection. 
We use VisiblePosition to find word and sentence boundaries and it cause 
synchronous layout. 

However we implement text field as a shadow element including only div and text 
nodes. 
HTMLTextFormControlElement, which is a implementation of text field, provides 
boundary functions without VisiblePosition.
Thus we can use them.

Following is an implementation detail. 
Source/core/editing/SpellChecker.cpp: 
- SpellChecker::respondToChangeClient. if Selection is in a text field, we use 
new Position functions to find the boundaries. 
- L794: oldSelection.isContentEditable() causes the layout. We avoid that. 

Source/core/html/HTMLTextFormControlElementTest.cpp: 
- The SpellCheckDoesNotCauseUpdateLayout test confirms 
that SpellChecker::respondToChangeClinet on a text input field avoid synchronous 
layout. 
- The test is little tricky because SpellChecker is strongly bound to frame and 
FrameSelection, which cause synchronous layout, so we can not test 
SpellChecker::respondToChangeClinet simply. 
- Until L187, we set up a situation that we have old Selection and 
FrameSelection selects new Selection. Then create new SpellChecker an call 
respondToChangedSelection with the old Selection. Thus the new SpellChecker 
works. 

Source/core/testing/DummyPageHolder.cpp/h: 
- We change DummyPageHolder constructor in order to assign new 
SpellCheckerClient for the 
HTMLTextFormControlElementTest::SpellCheckDoesNotCauseUpdateLayout test. 


BUG=382809

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

git-svn-id: svn://svn.chromium.org/blink/trunk@177732 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Auto-rebaseline for r177724

http://src.chromium.org/viewvc/blink?view=revision&revision=177724

BUG=367736,133242
TBR=harpreet.sk@samsung.com

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

git-svn-id: svn://svn.chromium.org/blink/trunk@177733 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[screen-orientation] Update implementation to match recent spec changes.

https://github.com/w3c/screen-orientation/pull/21

BUG=162827

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

git-svn-id: svn://svn.chromium.org/blink/trunk@177734 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove invocations of soon to be removed v8 api function Object::Set taking attributes

the Set function when passed attributes has can cause inconsistent behaviour in v8 internally.  The attributes parameter is slated for removal.

ForceSet acts like Object.defineProperty.

R=haraken@chromium.org

BUG=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@177735 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Enable layout test for font fallback with identical family names

BUG=285303
R=eae,eseidel,behdad

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

git-svn-id: svn://svn.chromium.org/blink/trunk@177736 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert "Revert 177666 "DevTools: Make the "common" module window- and DO...""

This reverts commit 8c91ee4ca904b2701c2557cccc3edd8ce99d9604 (r177731).

ParseCapabilities.MobileEmulationDeviceName relies on data retrieved from
the Chrome DevTools (Blink-side) frontend JavaScript source code.
http://crbug.com/392430 has been filed and the test disabled
in http://crrev.com/282007.

TBR=yutak@chromium.org
BUG=391566
NOTRY=true
NOTREECHECK=true

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

git-svn-id: svn://svn.chromium.org/blink/trunk@177737 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Node.appendChild should throw TypeError when newChild is omitted

This is a follow-up CL of https://codereview.chromium.org/374093002/

TEST=LayoutTests/fast/dom/Node/append-child-error.html
    ,LayoutTests/fast/inspector-support/uncaught-dom8-exception.html
    ,LayoutTests/fast/js/dot-node-base-exception.html

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

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