qutebrowser/tests/unit/browser
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
..
webkit Remove adjust_zoom for webelem.rect_on_view 2016-08-17 14:51:05 +02:00
test_adblock.py Merge branch 'open-download' of https://github.com/Kingdread/qutebrowser into Kingdread-open-download 2016-07-26 10:32:34 +02:00
test_commands.py Split browser into browser/browser.webkit 2016-06-13 11:18:21 +02:00
test_pdfjs.py Add qutebrowser.utils.javascript 2016-08-04 17:53:13 +02:00
test_signalfilter.py Remove support for showing JS statusbar messages 2016-07-11 16:19:44 +02:00
test_tab.py tests: Get rid of TestTabData 2016-08-11 16:47:28 +02:00