Changeset 25488 in webkit


Ignore:
Timestamp:
Sep 10, 2007 10:33:56 PM (17 years ago)
Author:
staikos
Message:

2007-09-11 George Staikos <staikos@kde.org>

Reviewed by Anders.

Work around gcc bug with some old gcc versions.

  • platform/qt/WidgetQt.cpp: (WebCore::Widget::convertToContainingWindow): (WebCore::Widget::convertFromContainingWindow):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r25487 r25488  
     12007-09-11  George Staikos  <staikos@kde.org>
     2
     3        Reviewed by Anders.
     4
     5        Work around gcc bug with some old gcc versions.
     6
     7        * platform/qt/WidgetQt.cpp:
     8        (WebCore::Widget::convertToContainingWindow):
     9        (WebCore::Widget::convertFromContainingWindow):
     10
    1112007-09-10  Mitz Pettel  <mitz@webkit.org>
    212
  • trunk/WebCore/platform/qt/WidgetQt.cpp

    r24814 r25488  
    244244    for (const Widget *parentWidget = parent(), *childWidget = this;
    245245         parentWidget;
    246          childWidget = parentWidget, parentWidget = parentWidget->parent())
    247         windowPoint = parentWidget->convertChildToSelf(childWidget, windowPoint);
     246         childWidget = parentWidget, parentWidget = parentWidget->parent()) {
     247        IntPoint oldPoint = windowPoint;
     248        windowPoint = parentWidget->convertChildToSelf(childWidget, oldPoint);
     249    }
    248250    return windowPoint;
    249251}
     
    254256    for (const Widget *parentWidget = parent(), *childWidget = this;
    255257         parentWidget;
    256          childWidget = parentWidget, parentWidget = parentWidget->parent())
    257         widgetPoint = parentWidget->convertSelfToChild(childWidget, widgetPoint);
     258         childWidget = parentWidget, parentWidget = parentWidget->parent()) {
     259        IntPoint oldPoint = widgetPoint;
     260        widgetPoint = parentWidget->convertSelfToChild(childWidget, oldPoint);
     261    }
    258262    return widgetPoint;
    259263}
Note: See TracChangeset for help on using the changeset viewer.