This patch fixes user-agent reported for iPad 3/4 emulation.

BUG=328677
TBR=vsevik

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

git-svn-id: svn://svn.chromium.org/blink/trunk@163913 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Use WebPermissionClient fom all the callsites in FrameLoaderClientImpl. I missed a bunch of call sites in r163901 that were exposed when I finished implementing the chromium side.

BUG=304341
R=jochen@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@163914 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove enable_touch_icon_loading gyp variable. It seems to be not used.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@163915 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add trace event for identifying style invalidations

This adds an off-by-default "style.debug" trace
which records all style invalidations larger than
a certain threshold (currently 100) in the trace viewer
with JS stacks.

Hopefully this will help authors to better understand what part of their page is causing style invalidations.

This worked well for Baker when debugging his app.
Hopefully it will work well for others and we can add
something more web-dev-friendly in devtools
which is tracked by crbug.com/325900.

BUG=316388
R=nduca@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@163916 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Reland "Teach Skia to use discardable memory"

Previous change was failing because Android doesn't support
SkDiscardablePixelRef. It is now used only on non-Android platforms.

BUG=318490

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

git-svn-id: svn://svn.chromium.org/blink/trunk@163917 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Move UnicodeUtilities to platform/

BUG=297477

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

git-svn-id: svn://svn.chromium.org/blink/trunk@163918 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Annotate a LeakSanitizer false positive in BitVector.

When BitVector allocates memory, it shifts the pointer by 1 before storing it.
LeakSanitizer cannot recognize such pointers, so the memory is reported as
leaked. Annotate the allocation site to silence the leak reports.

BUG=242672
R=thakis@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@163919 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Use an enum on ChromiumDataObjectItem for kind.

This removes its dependency on strings declared in DataTransferItem,
and thus reduces the dependency of CDO on core/.

The strings returned to the DOM can be declared statically inside
the scope of DataTransferItem::kind, now that they no longer need
to be exposed to other classes.

BUG=328079

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

git-svn-id: svn://svn.chromium.org/blink/trunk@163920 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove several calls to Page::mainFrame

All of these callers either didn't need to use the mainFrame
(as in the case of the MediaQuery functions which called
PlatformScreen functions which already jumped to the top-most
Widget automatically) or could get the information they need
by asking the Frame directly.

There were a couple cases in the inspector where checking
Frame::isMainFrame() wouldn't be identical, so I've left
those as FIXMEs for now.

R=abarth@chromium.org
BUG=305811

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

git-svn-id: svn://svn.chromium.org/blink/trunk@163921 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove several needless dependencies on Page

Most of these were just needless includes.
There are a few cases of code checking Document::page()
when I think what it really wants is Document::isActive().

I may try to remove Document::page() in a follow-up patch.

BUG=305811
R=abarth@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@163922 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Cleanup TreeShared and Node

This patch removes the following deadcode from TreeShared and Node:
  Node::renderRect
  Node::pixelSnappedRenderRect
  Node::textRects
  TreeShared::hasOneRef

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

git-svn-id: svn://svn.chromium.org/blink/trunk@163923 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add a FIXME explaining PageGroup's lack of utility

R=abarth@chromium.org
BUG=299834

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

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