Extract canvas and context creation and reset into TimelineOverviewBase and makes canvas scale better on hi-res devices through using devicePixelRatio as a multiplier of all hard-coded sizes.

BUG=none
R=pfeldman

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

git-svn-id: svn://svn.chromium.org/blink/trunk@148983 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Improve CORS error message for blocked scripts.

This is the first in a probable series of patches to improve CORS error
messages. A developer reported that scripts blocked via CORS are fairly
difficult to diagnose, as they report neither the URL of the blocked
resource, nor do they always point to the script element that was
blocked.

This patch adds the origin of the blocked resource to the error message,
and pipes through the detailed error from passesAccessControlCheck, so
the developer can figure out exactly why the load failed the CORS check.

The script element will already be identified with a line number if it's
inlined into the pages's markup. Injected script tags are more difficult
to identify in the elements pane; the stack trace will have to suffice
for the moment, but it's something I'd like to get fixed. Filed
http://crbug.com/233868 to track that work.

BUG=233845

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

git-svn-id: svn://svn.chromium.org/blink/trunk@148984 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add an interface and empty implementation for Composition interface.

This is 1/3 of implementing IME API interfaces.
https://codereview.chromium.org/14427003 [2/3] InputMethodContext
https://codereview.chromium.org/13825009 [3/3] HTMLElementInputContext

Spec is at
http://www.w3.org/TR/ime-api/#composition-dictionary

BUG=234476

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

git-svn-id: svn://svn.chromium.org/blink/trunk@148985 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove CodeGeneratorInspector incremental optimisation.

This optimisation causes build errors in the Android WebView build,
and isn't safe on any other make-based build either. Remove it for
now; it could be reintroduced behind a flag later if it's really
useful.

BUG=234568

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

git-svn-id: svn://svn.chromium.org/blink/trunk@148986 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert 148985 "Add an interface and empty implementation for Com..."
This causes 'missing vtable for WebCore::Composition'.

> Add an interface and empty implementation for Composition interface.
> 
> This is 1/3 of implementing IME API interfaces.
> https://codereview.chromium.org/14427003 [2/3] InputMethodContext
> https://codereview.chromium.org/13825009 [3/3] HTMLElementInputContext
> 
> Spec is at
> http://www.w3.org/TR/ime-api/#composition-dictionary
> 
> BUG=234476
> 
> Review URL: https://codereview.chromium.org/13880028

TBR=kochi@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@148987 bbb929c8-8fbe-4397-9dbb-9b2b20218538
When m_state != CONNECTING, it means WebSocket is closing,
and WebSocket::didClose will be invoked automatically. So it
is not necessary to call didClose function immediately. And
it will result in "onerror can't be triggered" error in WorkerContext.

The patch is migrated from WebKit. See: https://bugs.webkit.org/show_bug.cgi?id=89153

BUG=132898

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

Patch from Li Yin <li.yin@intel.com>.

git-svn-id: svn://svn.chromium.org/blink/trunk@148988 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove unused functions in V8Collection.h

Forgot to remove in r148617 and r148356.

R=haraken@chromium.org
BUG=229740
TEST=No tests.

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

Patch from Koji Hara <kojih@chromium.org>.

git-svn-id: svn://svn.chromium.org/blink/trunk@148989 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add the UMAs for mouse-event based prefetching.

I would like to implement pre-{connect, rendering} based on mouse and touch events.
For details, please see BUG=234036
Using these UMAs, I want to measure precision/coverage/expected gain when using mouseevents as pre-{connect, rendering} trigger.

BUG=234036

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

Patch from Kouhei Ueno <kouhei@chromium.org>.

git-svn-id: svn://svn.chromium.org/blink/trunk@148990 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: implement fallback view for large text resources preview

Add ResourceSourceFrameFallback which simply renders resource content in
a div with word wrapping. This helps to avoid resource trancation in a very
long lines.

BUG=168052

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

git-svn-id: svn://svn.chromium.org/blink/trunk@148991 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove ENABLE_VIDEO build flag.

It's enabled by default for a long time.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@148992 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove the ENABLE_PARSED_STYLE_SHEET_CACHING compile time flag.

Caching is enabled by default on all the platforms, so this patch
removes the compile time flag as part of cleaning up #ifdefs from
Blink sources.

BUG=

Review URL: https://chromiumcodereview.appspot.com/14315007

git-svn-id: svn://svn.chromium.org/blink/trunk@148993 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: Track CSSStyleSheetHeaders in the front-end real time

BUG=233588

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

git-svn-id: svn://svn.chromium.org/blink/trunk@148994 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: implement DefaultTextEditor.isClean/markClean methods

Implement DefaultTextEditor.isClean/markClean methods which rely
on undo/redo stack state.

BUG=

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

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