Move LinkHash.cpp/.h to Source/platform/

BUG=297477

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

git-svn-id: svn://svn.chromium.org/blink/trunk@158581 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add WebDocument::watchCssSelectors(selectors)
which requests callbacks to track whether elements matching |selectors|
exist within the document.  Blink calls the embedder through
WebFrameClient::didMatchCss(frame, newlyMatching, stoppedMatching) to
report changes.

This patch only watches for the binary set "selector matches anything on the page" vs "selector matches nothing on the page". There are some use cases for getting called back when the number of elements matching the selector changes, but I'm not suggesting an interface for that yet. It might also be useful to publish this to the web through MutationObservers. I'm also not proposing that. :)

This continues https://bugs.webkit.org/show_bug.cgi?id=110524.

BUG=172011

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

git-svn-id: svn://svn.chromium.org/blink/trunk@158582 bbb929c8-8fbe-4397-9dbb-9b2b20218538
V8ScriptRunner should accept v8::Value as an receiver

Since the primitive value can be used as an receiver of a function call
from ECMA262 5th, V8ScriptRunner should accept v8::Value as an receiver.

This change should be landed after the V8-side CL[1] is landed and V8 is
rolled.

[1]: https://chromiumcodereview.appspot.com/24920003/

BUG=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@158583 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Change SimpleFontData::platformBoundsForGlyph to use getTextPath

On skia platforms we currnetly implement platformBoundsForGlyph by
using the measureText API. This returns a conservative bounding box
intended for paint but it is close enough to the actual metrics in
most cases. For vertical text however it tends to overly inflated.

Change it to use the getTextPath API instead which returns more
precise metrics instead for text metrics.

BUG=249099

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

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