Changeset 135672 in webkit
- Timestamp:
- Nov 25, 2012, 11:06:22 AM (13 years ago)
- Location:
- trunk/Source/WebKit/blackberry
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/blackberry/Api/WebPage.cpp
r135615 r135672 1637 1637 #endif 1638 1638 requestLayoutIfNeeded(); 1639 m_client->resetBitmapZoomScale(currentScale());1640 1639 notifyTransformedContentsSizeChanged(); 1641 1640 return; … … 1668 1667 // We only notify if we didn't perform zoom, because zoom will notify on 1669 1668 // its own... 1670 m_client->resetBitmapZoomScale(currentScale());1671 1669 notifyTransformedContentsSizeChanged(); 1672 1670 } … … 2960 2958 zoom.scale(m_blockZoomFinalScale); 2961 2959 *m_transformationMatrix = zoom; 2962 m_client->resetBitmapZoomScale(m_blockZoomFinalScale);2963 2960 // FIXME: Do we really need to suspend/resume both backingstore and screen here? 2964 2961 m_backingStore->d->suspendBackingStoreUpdates(); -
trunk/Source/WebKit/blackberry/Api/WebPageClient.h
r135639 r135672 202 202 virtual BlackBerry::Platform::ViewportAccessor* userInterfaceViewportAccessor() const = 0; 203 203 204 virtual void resetBitmapZoomScale(double scale) = 0;205 204 virtual void animateBlockZoom(double finalScale, const Platform::FloatPoint& finalDocumentScrollPosition) = 0; 206 205 -
trunk/Source/WebKit/blackberry/ChangeLog
r135664 r135672 1 2012-11-25 Jacky Jiang <zhajiang@rim.com> 2 3 [BlackBerry] Get rid of resetBitmapZoomScale() 4 https://bugs.webkit.org/show_bug.cgi?id=103200 5 6 Reviewed by Rob Buis. 7 Internally reviewed by Gen Mak. 8 9 PR: 235707 10 Right now, resetBitmapZoomScale() takes an unused paramter and 11 dispatches a message to end the bitmap zooming. However, the 12 interaction has its own state machine to start bitmap zooming when it 13 is active and end bitmap zooming when it is inactive. This is 14 expecially for pinch zoom and scroll. From WebKit side, block zoom 15 which will call zoomBlock when the bitmap zoom finished doesn't even 16 need to dispatch the useless ending message to ZoomHandler. 17 resetBitmapZoomScale() is basically a noop for block zoom. And likewise 18 that is useless for zoomToInitialScaleOnLoad(). It can also potentially 19 cause problem if it is used somewhere else in the future and 20 incidentally breaks the interaction's own state machine. So just remove 21 this completely. 22 23 * Api/WebPage.cpp: 24 (BlackBerry::WebKit::WebPagePrivate::zoomToInitialScaleOnLoad): 25 (BlackBerry::WebKit::WebPagePrivate::zoomBlock): 26 * Api/WebPageClient.h: 27 1 28 2012-11-24 Andy Chen <andchen@rim.com> 2 29
Note:
See TracChangeset
for help on using the changeset viewer.