qutebrowser/tests/unit/browser/webkit
Florian Bruhin 0293307d61 Remove adjust_zoom for webelem.rect_on_view
Previously, the drawn hint labels were affected by the zoom, i.e., they
were stretched out by QtWebKit and actually had to be drawn at the
unzoomed position.

The Python/C++ API gives us coordinated adjusted for zoom, so
we always *negatively* adjusted them to get the unzoomed coordinates.

JS gave us the original coordinates, so we stretched them out according
to the zoom if adjust_zoom was given (which means only when clicking a
link).

Now we always operate in term of display coordinates: The point where we
draw the hint label is equal to the point we're clicking.

Thus, the zoom level for javascript is always adjusted, and the Python
zoom level is never (negatively) adjusted.
2016-08-17 14:51:05 +02:00
..
http Split browser into browser/browser.webkit 2016-06-13 11:18:21 +02:00
network Use order='strict' with qtbot.waitSignals 2016-07-29 09:12:06 +02:00
test_cache.py Split browser into browser/browser.webkit 2016-06-13 11:18:21 +02:00
test_cookies.py Prevent creation of user dirs on several tests. 2016-07-15 13:46:50 -04:00
test_history.py Fix test_history for WebKit/WebEngine split 2016-08-10 15:19:12 +02:00
test_mhtml.py Split browser into browser/browser.webkit 2016-06-13 11:18:21 +02:00
test_qt_javascript.py Prevent test_tab from creating user data dir. 2016-07-17 07:07:05 -04:00
test_tabhistory.py Get rid of extend=True for qt_log_ignore 2016-07-29 09:12:06 +02:00
test_webkitelem.py Remove adjust_zoom for webelem.rect_on_view 2016-08-17 14:51:05 +02:00