| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> | 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> |
| 3 * 1999 Lars Knoll <knoll@kde.org> | 3 * 1999 Lars Knoll <knoll@kde.org> |
| 4 * 1999 Antti Koivisto <koivisto@kde.org> | 4 * 1999 Antti Koivisto <koivisto@kde.org> |
| 5 * 2000 Dirk Mueller <mueller@kde.org> | 5 * 2000 Dirk Mueller <mueller@kde.org> |
| 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. |
| 7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) | 7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) |
| 8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
| 9 * Copyright (C) 2009 Google Inc. All rights reserved. | 9 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 10 * | 10 * |
| (...skipping 1318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1329 } | 1329 } |
| 1330 | 1330 |
| 1331 IntPoint FrameView::lastKnownMousePosition() const | 1331 IntPoint FrameView::lastKnownMousePosition() const |
| 1332 { | 1332 { |
| 1333 return m_frame->eventHandler().lastKnownMousePosition(); | 1333 return m_frame->eventHandler().lastKnownMousePosition(); |
| 1334 } | 1334 } |
| 1335 | 1335 |
| 1336 bool FrameView::shouldSetCursor() const | 1336 bool FrameView::shouldSetCursor() const |
| 1337 { | 1337 { |
| 1338 Page* page = frame().page(); | 1338 Page* page = frame().page(); |
| 1339 return page && page->visibilityState() != PageVisibilityStateHidden && page-
>focusController().isActive(); | 1339 return page && page->visibilityState() != PageVisibilityStateHidden && page-
>focusController().isActive() && page->settings().deviceSupportsMouse(); |
| 1340 } | 1340 } |
| 1341 | 1341 |
| 1342 void FrameView::scrollContentsIfNeededRecursive() | 1342 void FrameView::scrollContentsIfNeededRecursive() |
| 1343 { | 1343 { |
| 1344 scrollContentsIfNeeded(); | 1344 scrollContentsIfNeeded(); |
| 1345 | 1345 |
| 1346 for (LocalFrame* child = m_frame->tree().firstChild(); child; child = child-
>tree().nextSibling()) { | 1346 for (LocalFrame* child = m_frame->tree().firstChild(); child; child = child-
>tree().nextSibling()) { |
| 1347 if (FrameView* view = child->view()) | 1347 if (FrameView* view = child->view()) |
| 1348 view->scrollContentsIfNeededRecursive(); | 1348 view->scrollContentsIfNeededRecursive(); |
| 1349 } | 1349 } |
| (...skipping 1837 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3187 | 3187 |
| 3188 AXObjectCache* FrameView::axObjectCache() const | 3188 AXObjectCache* FrameView::axObjectCache() const |
| 3189 { | 3189 { |
| 3190 if (frame().document()) | 3190 if (frame().document()) |
| 3191 return frame().document()->existingAXObjectCache(); | 3191 return frame().document()->existingAXObjectCache(); |
| 3192 return 0; | 3192 return 0; |
| 3193 } | 3193 } |
| 3194 | 3194 |
| 3195 void FrameView::setCursor(const Cursor& cursor) | 3195 void FrameView::setCursor(const Cursor& cursor) |
| 3196 { | 3196 { |
| 3197 if (!shouldSetCursor()) |
| 3198 return; |
| 3197 Page* page = frame().page(); | 3199 Page* page = frame().page(); |
| 3198 if (!page) | 3200 if (!page) |
| 3199 return; | 3201 return; |
| 3200 page->chrome().setCursor(cursor); | 3202 page->chrome().setCursor(cursor); |
| 3201 } | 3203 } |
| 3202 | 3204 |
| 3203 void FrameView::frameRectsChanged() | 3205 void FrameView::frameRectsChanged() |
| 3204 { | 3206 { |
| 3205 if (layoutSizeFixedToFrameSize()) | 3207 if (layoutSizeFixedToFrameSize()) |
| 3206 setLayoutSizeInternal(frameRect().size()); | 3208 setLayoutSizeInternal(frameRect().size()); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 3227 void FrameView::willRemoveScrollbar(Scrollbar* scrollbar, ScrollbarOrientation o
rientation) | 3229 void FrameView::willRemoveScrollbar(Scrollbar* scrollbar, ScrollbarOrientation o
rientation) |
| 3228 { | 3230 { |
| 3229 ScrollableArea::willRemoveScrollbar(scrollbar, orientation); | 3231 ScrollableArea::willRemoveScrollbar(scrollbar, orientation); |
| 3230 if (AXObjectCache* cache = axObjectCache()) { | 3232 if (AXObjectCache* cache = axObjectCache()) { |
| 3231 cache->remove(scrollbar); | 3233 cache->remove(scrollbar); |
| 3232 cache->handleScrollbarUpdate(this); | 3234 cache->handleScrollbarUpdate(this); |
| 3233 } | 3235 } |
| 3234 } | 3236 } |
| 3235 | 3237 |
| 3236 } // namespace WebCore | 3238 } // namespace WebCore |
| OLD | NEW |