Adding toChromeClientImpl & toFrameLoaderClientImpl conversion functions to replace static_cast.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@159290 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fire onscroll events at requestAnimationFrame timing

This is the best time to fire the event since that's when the scroll state
is synced back from the compositor for threaded scrolling and it allows the
page to take an action at the right spot to avoid flickering if doing
something like infinite scroll.

BUG=299317

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

git-svn-id: svn://svn.chromium.org/blink/trunk@159291 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Generate thread-safe EventTargetNames

This CL prepares us to replace thread-local EventTargetNames with thread-safe
EventTargetNames. I've also taken this opportunity to clean up some of the
other in-file machinery.

R=eseidel@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@159292 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Dispatch [DOM]FocusIn/Out events when the page changes focus.

When the page loses focus dispatch focusout and DOMFocusOut events in addition to the blur event. When the page regains focus, dispatch focusin and DOMFocusIn events in addition to the focus event.

R=tkent@chromium.org
BUG=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@159293 bbb929c8-8fbe-4397-9dbb-9b2b20218538
IDL compiler: sync following CL 26248002

Updates Python CG following Perl CG changes in:
CL 26248002
Throw 'SecurityError' when blocking cross-origin access to frameElement and contentDocument.
https://codereview.chromium.org/26248002

BUG=239771

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

git-svn-id: svn://svn.chromium.org/blink/trunk@159294 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Auto-rebaseline for r159282

http://src.chromium.org/viewvc/blink?view=revision&revision=159282

BUG=285397
TBR=bokan@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@159295 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[FileReaderLoader] Remove isCompleted() method

- Replace isCompleted() used for checking if slicing is needed with
  m_rawData->byteLength() == m_bytesLoaded
- Replace isCompleted() used really for checking if loading is completed with
  m_finishedLoading

BUG=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@159296 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Improve partitionAlloc's resistance to fragmentation.

If we make a full partition page non-full, take steps to get it filled up
again because it is unlikely to become fully empty any time soon.
If we make a partition page empty, free it right away under more situations.

In the process, also apply some tidy-ups and simplifications. Pulling at this
thread led to stronger ASSERTs in the allocation slow path, and better unit
test coverage.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@159297 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[FileReaderLoader] Always shrink m_rawData and cleanup m_decoder on error to save memory

No change visible to web apps should happen.

1. Cleanup m_decoder on error.

Once any error occurs, m_decoder will never be used. Clearing it frees up memory.

2. Shrink m_rawData on didFinishLoading regardless of m_variableLength value.

Since,
- once didFinishLoading() is called, we won't receive new data any more.
- contents of m_rawData with index equal to or higher than m_bytesLoaded are
  never be read.
We should just release the unused are on didFinishLoading() call to save
memory.

m_rawData->byteLength() and m_bytesReceived may differ basically only when
the total length of the resource is unknown and m_variableLength is set, but
the above stands regardless of m_variableLength.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@159298 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[Android WebView] Add a compatibility quirk for returning screen sizes in physical pixels

This enables the browser to return screen.width / availWidth (and height),
@media device-width (and height), window.outerWidth (and height),
but not window.innerWidth (and height) in physical rather than CSS
pixels.

BUG=305236

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

git-svn-id: svn://svn.chromium.org/blink/trunk@159299 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Clarify WebScrollbarThemeGeometry ownership transfer in createScrollbarLayer().

This CL adds a commment for clarifying ownership transfer.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@159300 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Group interpolation tests and describe on hover

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

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