Also fix ACE hinting for QtWebKit

This commit is contained in:
Florian Bruhin 2017-02-24 18:36:15 +01:00
parent 16b259a390
commit 48c9a4061b

View File

@ -251,8 +251,10 @@ class WebKitElement(webelem.AbstractWebElement):
'opacity': '0',
}
for k, v in hidden_attributes.items():
if self._elem.styleProperty(k, QWebElement.ComputedStyle) == v:
if (self._elem.styleProperty(k, QWebElement.ComputedStyle) == v and
'ace_text-input' not in self.classes()):
return False
elem_geometry = self._elem.geometry()
if not elem_geometry.isValid() and elem_geometry.x() == 0:
# Most likely an invisible link