[Webkit-unassigned] [Bug 28781] Add QWebFrame::renderElement to API

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Oct 12 06:52:44 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=28781





--- Comment #23 from Viatcheslav Ostapenko <ostapenko.viatcheslav at nokia.com>  2009-10-12 06:52:44 PDT ---
> > +    FrameView* view = frame->view();
> 
> you need a null check here.

There is null check 2 lines upper.

> > +    QList<QWebElement> imgs = page.mainFrame()->findAllElements("img");
> > +    QCOMPARE(imgs.count(), 1);
> > +
> > +    QImage resource(":/image.png");
> > +    QRect imageRect(0, 0, resource.width(), resource.height());
> 
> do you load resource only for width/height?

No. Image get compared to the rendered image. Check testImage - this is
resource image painted on white background - the same way as it rendered.

-- 
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