Changeset 24455 in webkit


Ignore:
Timestamp:
Jul 19, 2007 4:48:42 PM (17 years ago)
Author:
treat
Message:

Do a recursive layout on frame's children.

Location:
trunk/WebKitQt
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKitQt/Api/qwebframe.cpp

    r24406 r24455  
    232232        return;
    233233
     234    layout();
     235
     236    GraphicsContext ctx(painter);
     237    d->frameView->paint(&ctx, source);
     238}
     239
     240void QWebFrame::layout()
     241{
    234242    if (d->frameView->needsLayout()) {
    235243        d->frameView->layout();
    236244    }
    237245
    238     GraphicsContext ctx(painter);
    239     d->frameView->paint(&ctx, source);
     246    foreach (QWebFrame *child, childFrames()) {
     247        child->layout();
     248    }
    240249}
    241250
  • trunk/WebKitQt/Api/qwebframe.h

    r24406 r24455  
    7070
    7171    void render(QPainter *painter, const QRect &source);
     72    void layout();
    7273
    7374    QPoint pos() const;
  • trunk/WebKitQt/ChangeLog

    r24422 r24455  
     12007-07-19  Adam Treat  <treat@kde.org>
     2
     3        Reviewed by George.
     4
     5        Do a recursive layout on the frame's children.  This fixes a
     6        segfault found when rendering some framesets.
     7
     8        * Api/qwebframe.cpp:
     9        (QWebFrame::render):
     10        (QWebFrame::layout):
     11        * Api/qwebframe.h:
     12
    1132007-07-18  Timothy Hatcher  <timothy@apple.com>
    214
Note: See TracChangeset for help on using the changeset viewer.