| 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 Simon Hausmann <hausmann@kde.org> | 5 * 2000 Simon Hausmann <hausmann@kde.org> |
| 6 * 2000 Stefan Schimanski <1Stein@gmx.de> | 6 * 2000 Stefan Schimanski <1Stein@gmx.de> |
| 7 * 2001 George Staikos <staikos@kde.org> | 7 * 2001 George Staikos <staikos@kde.org> |
| 8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. | 8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. |
| 9 * Copyright (C) 2005 Alexey Proskuryakov <ap@nypop.com> | 9 * Copyright (C) 2005 Alexey Proskuryakov <ap@nypop.com> |
| 10 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 10 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
| (...skipping 697 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 708 return loader().stateMachine()->isDisplayingInitialEmptyDocument() && docume
nt()->isSecureTransitionTo(url); | 708 return loader().stateMachine()->isDisplayingInitialEmptyDocument() && docume
nt()->isSecureTransitionTo(url); |
| 709 } | 709 } |
| 710 | 710 |
| 711 void LocalFrame::removeSpellingMarkersUnderWords(const Vector<String>& words) | 711 void LocalFrame::removeSpellingMarkersUnderWords(const Vector<String>& words) |
| 712 { | 712 { |
| 713 spellChecker().removeSpellingMarkersUnderWords(words); | 713 spellChecker().removeSpellingMarkersUnderWords(words); |
| 714 } | 714 } |
| 715 | 715 |
| 716 static bool scrollAreaOnBothAxes(const FloatSize& delta, ScrollableArea& view) | 716 static bool scrollAreaOnBothAxes(const FloatSize& delta, ScrollableArea& view) |
| 717 { | 717 { |
| 718 bool scrolledHorizontal = view.scroll(ScrollLeft, ScrollByPrecisePixel, delt
a.width()); | 718 bool scrolledHorizontal = view.userScroll(ScrollLeft, ScrollByPrecisePixel,
delta.width()); |
| 719 bool scrolledVertical = view.scroll(ScrollUp, ScrollByPrecisePixel, delta.he
ight()); | 719 bool scrolledVertical = view.userScroll(ScrollUp, ScrollByPrecisePixel, delt
a.height()); |
| 720 return scrolledHorizontal || scrolledVertical; | 720 return scrolledHorizontal || scrolledVertical; |
| 721 } | 721 } |
| 722 | 722 |
| 723 // Returns true if a scroll occurred. | 723 // Returns true if a scroll occurred. |
| 724 bool LocalFrame::applyScrollDelta(const FloatSize& delta, bool isScrollBegin) | 724 bool LocalFrame::applyScrollDelta(const FloatSize& delta, bool isScrollBegin) |
| 725 { | 725 { |
| 726 if (isScrollBegin) | 726 if (isScrollBegin) |
| 727 host()->topControls().scrollBegin(); | 727 host()->topControls().scrollBegin(); |
| 728 | 728 |
| 729 if (!view() || delta.isZero()) | 729 if (!view() || delta.isZero()) |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 812 , m_textZoomFactor(parentTextZoomFactor(this)) | 812 , m_textZoomFactor(parentTextZoomFactor(this)) |
| 813 , m_inViewSourceMode(false) | 813 , m_inViewSourceMode(false) |
| 814 { | 814 { |
| 815 if (isLocalRoot()) | 815 if (isLocalRoot()) |
| 816 m_instrumentingAgents = InstrumentingAgents::create(); | 816 m_instrumentingAgents = InstrumentingAgents::create(); |
| 817 else | 817 else |
| 818 m_instrumentingAgents = localFrameRoot()->m_instrumentingAgents; | 818 m_instrumentingAgents = localFrameRoot()->m_instrumentingAgents; |
| 819 } | 819 } |
| 820 | 820 |
| 821 } // namespace blink | 821 } // namespace blink |
| OLD | NEW |