Changeset 127326 in webkit


Ignore:
Timestamp:
Aug 31, 2012, 3:17:03 PM (13 years ago)
Author:
zhajiang@rim.com
Message:

[BlackBerry] ASSERT failure in RenderBlock::checkPositionedObjectsNeedLayout
https://bugs.webkit.org/show_bug.cgi?id=95611

Reviewed by Antonio Gomes.
Patch by Jacky Jiang <zhajiang@rim.com>

PR:200127
Remove r118405 now as we already have a new fix webkit/43f8394b for
that issue and it is not reproducible anymore after the removal.
In this way, we can get rid of this ASSERT failure as well.
Thanks Antonio for the suggestion.

  • Api/WebPage.cpp:

(BlackBerry::WebKit::WebPagePrivate::setViewportSize):

Location:
trunk/Source/WebKit/blackberry
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/blackberry/Api/WebPage.cpp

    r127325 r127326  
    36913691        setShouldResetTilesWhenShown(true);
    36923692
    3693     bool needsLayout = false;
    36943693    bool hasPendingOrientation = m_pendingOrientation != -1;
    36953694
     
    36973696        resizeSurfaceIfNeeded();
    36983697        m_hasPendingSurfaceSizeChange = false;
    3699     }
    3700     if (!hasPendingOrientation) {
    3701         // If we are not rotating and we've started a viewport resize with
    3702         // the Render tree in dirty state (i.e. it needs layout), lets
    3703         // reset the needsLayout flag for now but set our own 'needsLayout'.
    3704         //
    3705         // Reason: calls like ScrollView::setFixedLayoutSize can trigger a layout
    3706         // if the render tree needs it. We want to avoid it till the viewport resize
    3707         // is actually done (i.e. ScrollView::setViewportSize gets called
    3708         // further down the method).
    3709         if (m_mainFrame->view()->needsLayout()) {
    3710             m_mainFrame->view()->unscheduleRelayout();
    3711             m_mainFrame->contentRenderer()->setNeedsLayout(false);
    3712             needsLayout = true;
    3713         }
    37143698    }
    37153699
     
    37373721
    37383722    // Recompute our virtual viewport.
     3723    bool needsLayout = false;
    37393724    static ViewportArguments defaultViewportArguments;
    37403725    if (m_viewportArguments != defaultViewportArguments) {
  • trunk/Source/WebKit/blackberry/ChangeLog

    r127325 r127326  
     12012-08-31  Jacky Jiang  <zhajiang@rim.com>
     2
     3        [BlackBerry] ASSERT failure in RenderBlock::checkPositionedObjectsNeedLayout
     4        https://bugs.webkit.org/show_bug.cgi?id=95611
     5
     6        Reviewed by Antonio Gomes.
     7
     8        PR:200127
     9        Remove r118405 now as we already have a new fix webkit/43f8394b for
     10        that issue and it is not reproducible anymore after the removal.
     11        In this way, we can get rid of this ASSERT failure as well.
     12        Thanks Antonio for the suggestion.
     13
     14        * Api/WebPage.cpp:
     15        (BlackBerry::WebKit::WebPagePrivate::setViewportSize):
     16
    1172012-08-31  Joshua Netterfield  <jnetterfield@rim.com>
    218
Note: See TracChangeset for help on using the changeset viewer.