Changeset 72631 in webkit


Ignore:
Timestamp:
Nov 23, 2010 2:54:45 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2010-11-23 Shimeng (Simon) Wang <swang@google.com>

Reviewed by Steve Block.

Use platform bridge to set scroll position.
https://bugs.webkit.org/show_bug.cgi?id=49550

Refactoring only. Existing tests shall suffice.

  • platform/android/PlatformBridge.h:
  • platform/android/ScrollViewAndroid.cpp: (WebCore::ScrollView::platformSetScrollPosition):
Location:
trunk/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r72630 r72631  
     12010-11-23  Shimeng (Simon) Wang  <swang@google.com>
     2
     3        Reviewed by Steve Block.
     4
     5        Use platform bridge to set scroll position.
     6        https://bugs.webkit.org/show_bug.cgi?id=49550
     7
     8        Refactoring only.  Existing tests shall suffice.
     9
     10        * platform/android/PlatformBridge.h:
     11        * platform/android/ScrollViewAndroid.cpp:
     12        (WebCore::ScrollView::platformSetScrollPosition):
     13
    1142010-11-23  Andreas Kling  <kling@webkit.org>
    215
  • trunk/WebCore/platform/android/PlatformBridge.h

    r71639 r72631  
    8282namespace WebCore {
    8383
     84class ScrollView;
    8485class Widget;
    8586
     
    105106    // Plugin
    106107    static NPObject* pluginScriptableObject(Widget*);
     108
     109    static void setScrollPosition(ScrollView*, int x, int y);
     110
    107111    // Language
    108112    static String computeDefaultLanguage();
  • trunk/WebCore/platform/android/ScrollViewAndroid.cpp

    r50971 r72631  
    7171    if (parent()) // don't attempt to scroll subframes; they're fully visible
    7272        return;
    73     android::WebViewCore::getWebViewCore(this)->scrollTo(pt.x(), pt.y());
     73    PlatformBridge::setScrollPosition(this, pt.x(), pt.y());
    7474}
    7575
Note: See TracChangeset for help on using the changeset viewer.