Merge 179823 "Add a force-layout-height-to-zero layout mode to W..."

> Add a force-layout-height-to-zero layout mode to WebViewImpl
> 
> This makes it possible for the android_webview to implement
> 'wrap_content' mode for the view's height without completely ignoring
> the viewport meta tag (like it's doing now).
> 
> TBR=abarth@chromium.org, aelias@chromium.org, mnaganov@chromium.org
> BUG=392460
> 
> Review URL: https://codereview.chromium.org/453893002

TBR=mkosiba@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/branches/chromium/2062@180246 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fix up incorrect merge (r180246).

I must have accidentally dropped two files when merging 179823 into
2062. This CL adds the missing files.

TBR=mkosiba@chromium.org
BUG=403709

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

git-svn-id: svn://svn.chromium.org/blink/branches/chromium/2062@180282 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert 180246 "Merge 179823 "Add a force-layout-height-to-zero l..."

Appears this is breaking our beta builders at go/betabuilders
See log http://master.chrome.corp.google.com:8011/builders/win%20beta/builds/5612/steps/compile/logs/stdio

> Merge 179823 "Add a force-layout-height-to-zero layout mode to W..."
> 
> > Add a force-layout-height-to-zero layout mode to WebViewImpl
> > 
> > This makes it possible for the android_webview to implement
> > 'wrap_content' mode for the view's height without completely ignoring
> > the viewport meta tag (like it's doing now).
> > 
> > TBR=abarth@chromium.org, aelias@chromium.org, mnaganov@chromium.org
> > BUG=392460
> > 
> > Review URL: https://codereview.chromium.org/453893002
> 
> TBR=mkosiba@chromium.org
> 
> Review URL: https://codereview.chromium.org/475703002

TBR=mkosiba@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/branches/chromium/2062@180286 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert 180286 "Revert 180246 "Merge 179823 "Add a force-layout-h..."

Apologies, I now see you'd already fixed this up and subsequent builds are passing.
Thus, reverting my revert.

> Revert 180246 "Merge 179823 "Add a force-layout-height-to-zero l..."
> 
> Appears this is breaking our beta builders at go/betabuilders
> See log http://master.chrome.corp.google.com:8011/builders/win%20beta/builds/5612/steps/compile/logs/stdio
> 
> > Merge 179823 "Add a force-layout-height-to-zero layout mode to W..."
> > 
> > > Add a force-layout-height-to-zero layout mode to WebViewImpl
> > > 
> > > This makes it possible for the android_webview to implement
> > > 'wrap_content' mode for the view's height without completely ignoring
> > > the viewport meta tag (like it's doing now).
> > > 
> > > TBR=abarth@chromium.org, aelias@chromium.org, mnaganov@chromium.org
> > > BUG=392460
> > > 
> > > Review URL: https://codereview.chromium.org/453893002
> > 
> > TBR=mkosiba@chromium.org
> > 
> > Review URL: https://codereview.chromium.org/475703002
> 
> TBR=mkosiba@chromium.org
> 
> Review URL: https://codereview.chromium.org/475103002

TBR=amineer@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/branches/chromium/2062@180288 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Merge 176646 "Fix to remove customised String over IPC for Smart..."

> Fix to remove customised String over IPC for SmartClip
> 
> Currently, the data for SmartClip is sent over IPC as a customized
> string, which contains rect values and string of content within the
> clip rect. Changes from Blink side to remove custom serialization and
> send it as a structure of rect and string values.
> 
> BUG=330872
> 
> Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=173295
> 
> Review URL: https://codereview.chromium.org/259263003

TBR=avi.nitk@samsung.com

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

git-svn-id: svn://svn.chromium.org/blink/branches/chromium/2062@180366 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Merge 177984 "[Android] Extend smartclip to return HTML along wi..."

> [Android] Extend smartclip to return HTML along with text
> 
> BUG=388961
> 
> Review URL: https://codereview.chromium.org/380633002

TBR=changwan@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/branches/chromium/2062@180367 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Merge 176649 "RenderView is null for import documents."

> RenderView is null for import documents.
> 
> Documents for html imports have separate StyleEngines and separate lists of
> pending stylesheets. However, they don't have a RenderView. In r176050 the
> repaint was moved from the StyleEngine where non-master documents skipped
> the repaint. Trying to do a repaint from a non-master document will crash
> without a check for renderView().
> 
> I have added a renderView() check with an assert that checks that it happens
> if we are in an import document. I did keep the changing of
> m_pendingSheetLayout to IgnoreLayoutWithPendingSheets, since we
> envidentially do set it to DidLayoutWithPendingSheets for import documents,
> even before the r176050 change.
> 
> It is possible that the m_pendingSheetLayout machinery does nothing useful
> for imported documents, but I frankly don't know how it should work.
> 
> I am only able to reproduce the crash in the layout test with --debug.
> 
> R=ojan@chromium.org,esprehn@chromium.org
> BUG=386564
> 
> Review URL: https://codereview.chromium.org/330093003

TBR=rune@opera.com

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

git-svn-id: svn://svn.chromium.org/blink/branches/chromium/2062@180557 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[TEMP][IVI] WebGL: Turn off MSAA.

MSAA is disabled for now and will be enabled once known issues are fixed for IVI.

BUG=https://crosswalk-project.org/jira/browse/XWALK-1113
Allow enabling 'ScreenOrientation' feature outside Blink.

Upstream link: https://codereview.chromium.org/336513003/

SSIA. This patch introduces the 'enableScreenOrientation()' setter
to the WebRuntimeFeatures class, so that 'ScreenOrientation' feature
can be enabled outside Blink.
[Temp] Backport r178889 from upstream

Document.title getter should return text of title element and setter should stop when head element is null

SPEC: http://www.whatwg.org/specs/web-apps/current-work/#document.title

This CL allowed implicit title set from Document::setTitleElement()
and stopped operation on setter when head element is null as per specification.

In addition, with this change, failed test cases will be passed in
http://w3c-test.org/html/dom/documents/dom-tree-accessors/document.title-01.html

Behavior in other browsers:
*)FF: PASS
*)IE: PASS

Plus, this CL deleted obsolete title argument from Document::setTitleElement.

TEST=LayoutTests/fast/dom/Document/title-01.html
    ,LayoutTests/svg/custom/multiple-title-elements.svg

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

git-svn-id: svn://svn.chromium.org/blink/trunk@178889 bbb929c8-8fbe-4397-9dbb-9b2b20218538
(cherry picked from commit 221337fbfa326e848614b6400dbfd00c59eb0431)