be sure to call correct variant of onDrawPicture

TBR=fmalita@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179902 bbb929c8-8fbe-4397-9dbb-9b2b20218538
ServiceWorker: Add 'updatefound' and version attributes on SWRegistration (Blink)

This change...
- adds 'onupdatefound' event and version attribtues (eg. '.installing') into
ServiceWorkerRegistration interface.
- adds WebServiceWorkerRegistrationProxy interface to talk to the registration
object from embedder.

[NOTE] ServiceWorkerRegistration is still disabled by the macro since Chromium
side is still actively being implemented:
https://codereview.chromium.org/427523002/

[Spec] https://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html#service-worker-registration-obj


BUG=396400
TEST=compile (layout tests will be added after enabling the registration interface)

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179903 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Go through root to get loading clients in StyleSheetContents::checkLoaded.

Added an assertion to the patch in https://codereview.chromium.org/444223004/

In StyleSheetContents::checkLoaded after parentStyleSheet check, "this pointer" is guaranteed to be equal to rootStyleSheet.
So we can only use this pointer instead of rootStyleSheet.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179904 bbb929c8-8fbe-4397-9dbb-9b2b20218538
InjectedScriptManager::CallbackData should be disposed when an associated worker thread terminates

CallbackData created by InjectedScriptManager should be deleted when
an associated worker thread terminates. The most straightforward way
to do that is to make the InjectedScriptManager hold a list of
OwnPtr<CallbackData> that the InjectedScriptManager created.
Since the the InjectedScriptManager is destructed in ~WorkerScriptController(), it's guaranteed that all associated CallbackData is destructed
in
~WorkerScriptController() as well.

This change will fix a couple of inspector-protocol/debugger tests in oilpan builds.

BUG=398472

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179905 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fix rtl text shifting in PopupListBox

What is happening is:
1. User opens popup
2. PopupListBox::layout measure's row width
  2-1. text width is calculated as ltr
  2-2. this width for ltr is registered to the WidthCache
3. PopupListBox::paintRow is called
  3-1. WidthCache has a interval mechanism so the cached ltr width is not used
  3-2. text width is calculated as rtl
  3-3. Text is  drawn as rtl
4. User hovers over items
5. PopupListBox::paintRow is called each time the selection changes
  5-1. WidthCache's cached ltr width is used
  5-2. Text is  drawn as rtl (rtl width is shorter than the rtl width so there is extra space on the right side)

There are two problems
- PopupListBox::layout is measuring row width using ltr always
- WidthCache is returning ltr width for rtl text

This just fixes PopupListBox::layout.
BUG=398929

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

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