Referrer header cleanup.

* Don't keep a separate m_outgoingReferrer on FrameLoader, just strip sensitive information off the Document::url() when the referrer is requested.
* Store a Document instead of a SecurityOrigin on FrameLoadRequest. This allows...
* Always call FrameLoader::setReferrerForFrameRequest(), but only consider using this FrameLoader's outgoing referrer if the associated Document initiated the request. This allows us to correctly enforce referrer restrictions, which ensuring we don't accidentally set a referrer from the wrong frame.

BUG=none

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

git-svn-id: svn://svn.chromium.org/blink/trunk@163800 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Don't force repaint layer on size change

This CL reverts the patch of wkbug.com/104626 (except the layout test).
The test added in the patch still passes, proving that the patch is
unnecessary in blink.

This is part of work for crbug.com/258219 to reduce the paths of
full view repainting on viewport size change.

BUG=258219
TEST=existing test compositing/repaint/clipped-layer-size-change.html

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

git-svn-id: svn://svn.chromium.org/blink/trunk@163801 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: [JsDoc] Add @this annotation to nested functions using |this|.

Drive-by: fix discovered annotation and logical code errors

R=aandrey, eustas, vsevik

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

git-svn-id: svn://svn.chromium.org/blink/trunk@163802 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Blink-side of making all the WebPermissionClient methods take a WebFrame. This is in advance of moving that interface to hang off WebFrame instead of WebView.

BUG=304341
R=jochen@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@163803 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Mark http/tests/inspector/resource-tree/resource-tree-reload.html as flaky

BUG=328112
TBR=junov@chromium.org
NOTRY=true

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

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