[Webkit-unassigned] [Bug 80006] New: geometry() function of QWebElement sometimes return the "incorrect" value?
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Feb 29 23:16:30 PST 2012
https://bugs.webkit.org/show_bug.cgi?id=80006
Summary: geometry() function of QWebElement sometimes return
the "incorrect" value?
Product: WebKit
Version: 528+ (Nightly build)
Platform: PC
OS/Version: Windows XP
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: WebKit Qt
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: lidan at cn.fujitsu.com
I am using the demo browser provided by Qt source (qt-everywhere-opensource-src-4.8.0). I have modified the demo code a little to fetch the geometry of web elements in a html webpage. But when I am trying to use geometry() function of QWebElement, I found out that sometimes the return value is strange.
For example, when the html webpage like this:
<a href=""> this is a link</a>
The <a> element's geometry is QRect(8,8 80x18), this is reasonable.
However, I change the html webpage like this:
<a href=""> this is a link</a>
<img src="image.jpg" width="100" height="100"/>
The <a> element's geometry is QRect(8,8 80x103). The height of <a> element has been effected by the following <img> element, which has its geometry of QRect(92,8 100x100).
In my application, I want to paint the bounding rect of all <a> elements in the html webpage. The result really confused me. Can anybody tell me how to resolve this problem? Or this is a WebKit bug? Thanks for your help!
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list