Title: [131918] trunk/Source/WebKit/blackberry
- Revision
- 131918
- Author
- [email protected]
- Date
- 2012-10-19 10:36:06 -0700 (Fri, 19 Oct 2012)
Log Message
[BlackBerry] Add input logs to InputHandler::ensureFocusTextElementVisible.
https://bugs.webkit.org/show_bug.cgi?id=99837
Reviewed by Antonio Gomes.
Add input logs for InputHandler::ensureFocusTextElementVisible.
Reviewed Internally by Nima Ghanavatian.
* WebKitSupport/InputHandler.cpp:
(BlackBerry::WebKit::InputHandler::ensureFocusTextElementVisible):
Modified Paths
Diff
Modified: trunk/Source/WebKit/blackberry/ChangeLog (131917 => 131918)
--- trunk/Source/WebKit/blackberry/ChangeLog 2012-10-19 17:26:10 UTC (rev 131917)
+++ trunk/Source/WebKit/blackberry/ChangeLog 2012-10-19 17:36:06 UTC (rev 131918)
@@ -1,3 +1,17 @@
+2012-10-19 Mike Fenton <[email protected]>
+
+ [BlackBerry] Add input logs to InputHandler::ensureFocusTextElementVisible.
+ https://bugs.webkit.org/show_bug.cgi?id=99837
+
+ Reviewed by Antonio Gomes.
+
+ Add input logs for InputHandler::ensureFocusTextElementVisible.
+
+ Reviewed Internally by Nima Ghanavatian.
+
+ * WebKitSupport/InputHandler.cpp:
+ (BlackBerry::WebKit::InputHandler::ensureFocusTextElementVisible):
+
2012-10-19 Andrew Lo <[email protected]>
[BlackBerry] Should suspend AnimationController when WebPage becomes invisible.
Modified: trunk/Source/WebKit/blackberry/WebKitSupport/InputHandler.cpp (131917 => 131918)
--- trunk/Source/WebKit/blackberry/WebKitSupport/InputHandler.cpp 2012-10-19 17:26:10 UTC (rev 131917)
+++ trunk/Source/WebKit/blackberry/WebKitSupport/InputHandler.cpp 2012-10-19 17:36:06 UTC (rev 131918)
@@ -1088,7 +1088,9 @@
m_focusZoomScale = m_webPage->currentScale();
m_focusZoomLocation = selectionFocusRect.location();
}
- m_webPage->zoomAboutPoint(s_minimumTextHeightInPixels / fontHeight, m_focusZoomLocation);
+ double zoomScaleRequired = static_cast<double>(s_minimumTextHeightInPixels) / fontHeight;
+ m_webPage->zoomAboutPoint(zoomScaleRequired, m_focusZoomLocation);
+ InputLog(LogLevelInfo, "InputHandler::ensureFocusTextElementVisible zooming in to %f at point %d, %d", zoomScaleRequired, m_focusZoomLocation.x(), m_focusZoomLocation.y());
} else {
m_focusZoomScale = 0.0;
m_focusZoomLocation = WebCore::IntPoint();
@@ -1161,6 +1163,7 @@
scrollLocation = scrollLocation.shrunkTo(maximumScrollPosition);
mainFrameView->setScrollPosition(scrollLocation);
mainFrameView->setConstrainsScrollingToContentEdge(true);
+ InputLog(LogLevelInfo, "InputHandler::ensureFocusTextElementVisible scrolling to point %d, %d", scrollLocation.x(), scrollLocation.y());
}
}
m_webPage->resumeBackingStore();
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes