| 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 1600 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1611 } | 1611 } |
| 1612 } | 1612 } |
| 1613 | 1613 |
| 1614 IntPoint FrameView::lastKnownMousePosition() const { | 1614 IntPoint FrameView::lastKnownMousePosition() const { |
| 1615 return m_frame->eventHandler().lastKnownMousePosition(); | 1615 return m_frame->eventHandler().lastKnownMousePosition(); |
| 1616 } | 1616 } |
| 1617 | 1617 |
| 1618 bool FrameView::shouldSetCursor() const { | 1618 bool FrameView::shouldSetCursor() const { |
| 1619 Page* page = frame().page(); | 1619 Page* page = frame().page(); |
| 1620 return page && page->visibilityState() != PageVisibilityStateHidden && | 1620 return page && page->visibilityState() != PageVisibilityStateHidden && |
| 1621 page->focusController().isActive() && | 1621 !m_frame->eventHandler().isMousePositionUnknown() && |
| 1622 page->settings().deviceSupportsMouse(); | 1622 page->focusController().isActive(); |
| 1623 } | 1623 } |
| 1624 | 1624 |
| 1625 void FrameView::scrollContentsIfNeededRecursive() { | 1625 void FrameView::scrollContentsIfNeededRecursive() { |
| 1626 forAllNonThrottledFrameViews( | 1626 forAllNonThrottledFrameViews( |
| 1627 [](FrameView& frameView) { frameView.scrollContentsIfNeeded(); }); | 1627 [](FrameView& frameView) { frameView.scrollContentsIfNeeded(); }); |
| 1628 } | 1628 } |
| 1629 | 1629 |
| 1630 void FrameView::invalidateBackgroundAttachmentFixedObjects() { | 1630 void FrameView::invalidateBackgroundAttachmentFixedObjects() { |
| 1631 for (const auto& layoutObject : m_backgroundAttachmentFixedObjects) | 1631 for (const auto& layoutObject : m_backgroundAttachmentFixedObjects) |
| 1632 layoutObject->setShouldDoFullPaintInvalidation(); | 1632 layoutObject->setShouldDoFullPaintInvalidation(); |
| (...skipping 1940 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3573 } | 3573 } |
| 3574 | 3574 |
| 3575 AXObjectCache* FrameView::axObjectCache() const { | 3575 AXObjectCache* FrameView::axObjectCache() const { |
| 3576 if (frame().document()) | 3576 if (frame().document()) |
| 3577 return frame().document()->existingAXObjectCache(); | 3577 return frame().document()->existingAXObjectCache(); |
| 3578 return nullptr; | 3578 return nullptr; |
| 3579 } | 3579 } |
| 3580 | 3580 |
| 3581 void FrameView::setCursor(const Cursor& cursor) { | 3581 void FrameView::setCursor(const Cursor& cursor) { |
| 3582 Page* page = frame().page(); | 3582 Page* page = frame().page(); |
| 3583 if (!page || !page->settings().deviceSupportsMouse()) | 3583 if (!page || m_frame->eventHandler().isMousePositionUnknown()) |
| 3584 return; | 3584 return; |
| 3585 page->chromeClient().setCursor(cursor, m_frame); | 3585 page->chromeClient().setCursor(cursor, m_frame); |
| 3586 } | 3586 } |
| 3587 | 3587 |
| 3588 void FrameView::frameRectsChanged() { | 3588 void FrameView::frameRectsChanged() { |
| 3589 TRACE_EVENT0("blink", "FrameView::frameRectsChanged"); | 3589 TRACE_EVENT0("blink", "FrameView::frameRectsChanged"); |
| 3590 if (layoutSizeFixedToFrameSize()) | 3590 if (layoutSizeFixedToFrameSize()) |
| 3591 setLayoutSizeInternal(frameRect().size()); | 3591 setLayoutSizeInternal(frameRect().size()); |
| 3592 | 3592 |
| 3593 setNeedsUpdateViewportIntersection(); | 3593 setNeedsUpdateViewportIntersection(); |
| (...skipping 1080 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4674 DCHECK(m_frame->isMainFrame()); | 4674 DCHECK(m_frame->isMainFrame()); |
| 4675 return m_initialViewportSize.width(); | 4675 return m_initialViewportSize.width(); |
| 4676 } | 4676 } |
| 4677 | 4677 |
| 4678 int FrameView::initialViewportHeight() const { | 4678 int FrameView::initialViewportHeight() const { |
| 4679 DCHECK(m_frame->isMainFrame()); | 4679 DCHECK(m_frame->isMainFrame()); |
| 4680 return m_initialViewportSize.height(); | 4680 return m_initialViewportSize.height(); |
| 4681 } | 4681 } |
| 4682 | 4682 |
| 4683 } // namespace blink | 4683 } // namespace blink |
| OLD | NEW |