Changeset 52903 in webkit


Ignore:
Timestamp:
Jan 6, 2010 11:07:54 PM (14 years ago)
Author:
eric@webkit.org
Message:

2010-01-06 Andreas Kling <andreas.kling@nokia.com>

Reviewed by Simon Hausmann.

[Qt] Return an invalid Qt::ImMicroFocus if queried while the view needs to layout.

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

  • Api/qwebpage.cpp: (QWebPage::inputMethodQuery):
Location:
trunk/WebKit/qt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit/qt/Api/qwebpage.cpp

    r52815 r52903  
    13941394    switch (property) {
    13951395        case Qt::ImMicroFocus: {
     1396            WebCore::FrameView* view = frame->view();
     1397            if (view && view->needsLayout()) {
     1398                // We can't access absoluteCaretBounds() while the view needs to layout.
     1399                return QVariant();
     1400            }
    13961401            return QVariant(frame->selection()->absoluteCaretBounds());
    13971402        }
  • trunk/WebKit/qt/ChangeLog

    r52815 r52903  
     12010-01-06  Andreas Kling  <andreas.kling@nokia.com>
     2
     3        Reviewed by Simon Hausmann.
     4
     5        [Qt] Return an invalid Qt::ImMicroFocus if queried while the view needs to layout.
     6
     7        https://bugs.webkit.org/show_bug.cgi?id=33204
     8
     9        * Api/qwebpage.cpp:
     10        (QWebPage::inputMethodQuery):
     11
    1122010-01-05  Yael Aharon  <yael.aharon@nokia.com>
    213
Note: See TracChangeset for help on using the changeset viewer.