Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(543)

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutView.cpp

Issue 2015523004: Don't explicitly initialize LayoutUnit to 0. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Go through the subdirs of core/layout/ too. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutState.cpp ('k') | third_party/WebKit/Source/core/layout/TableLayoutAlgorithm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698