| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv
ed. | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv
ed. |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 | 78 |
| 79 } // namespace | 79 } // namespace |
| 80 | 80 |
| 81 LayoutView::LayoutView(Document* document) | 81 LayoutView::LayoutView(Document* document) |
| 82 : LayoutBlockFlow(document) | 82 : LayoutBlockFlow(document) |
| 83 , m_frameView(document->view()) | 83 , m_frameView(document->view()) |
| 84 , m_selectionStart(nullptr) | 84 , m_selectionStart(nullptr) |
| 85 , m_selectionEnd(nullptr) | 85 , m_selectionEnd(nullptr) |
| 86 , m_selectionStartPos(-1) | 86 , m_selectionStartPos(-1) |
| 87 , m_selectionEndPos(-1) | 87 , m_selectionEndPos(-1) |
| 88 , m_pageLogicalHeight(0) | |
| 89 , m_pageLogicalHeightChanged(false) | 88 , m_pageLogicalHeightChanged(false) |
| 90 , m_layoutState(nullptr) | 89 , m_layoutState(nullptr) |
| 91 , m_layoutQuoteHead(nullptr) | 90 , m_layoutQuoteHead(nullptr) |
| 92 , m_layoutCounterCount(0) | 91 , m_layoutCounterCount(0) |
| 93 , m_hitTestCount(0) | 92 , m_hitTestCount(0) |
| 94 , m_hitTestCacheHits(0) | 93 , m_hitTestCacheHits(0) |
| 95 , m_hitTestCache(HitTestCache::create()) | 94 , m_hitTestCache(HitTestCache::create()) |
| 96 { | 95 { |
| 97 // init LayoutObject attributes | 96 // init LayoutObject attributes |
| 98 setInline(false); | 97 setInline(false); |
| (...skipping 938 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1037 // ASSERT(!frame()->isMainFrame()) here. All main frame scrolling should | 1036 // ASSERT(!frame()->isMainFrame()) here. All main frame scrolling should |
| 1038 // be handled by the ViewportScrollCallback. | 1037 // be handled by the ViewportScrollCallback. |
| 1039 | 1038 |
| 1040 if (!frameView()) | 1039 if (!frameView()) |
| 1041 return ScrollResult(false, false, delta.width(), delta.height()); | 1040 return ScrollResult(false, false, delta.width(), delta.height()); |
| 1042 | 1041 |
| 1043 return frameView()->getScrollableArea()->userScroll(granularity, delta); | 1042 return frameView()->getScrollableArea()->userScroll(granularity, delta); |
| 1044 } | 1043 } |
| 1045 | 1044 |
| 1046 } // namespace blink | 1045 } // namespace blink |
| OLD | NEW |