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

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

Issue 1612683002: Reland of Don't change layout size due to top control show/hide (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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) 2006 Apple Computer, Inc. 3 * Copyright (C) 2006 Apple Computer, Inc.
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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 // FIXME: This is a work around because the current implementation of counte rs 176 // FIXME: This is a work around because the current implementation of counte rs
177 // requires walking the entire tree repeatedly and most pages don't actually use either 177 // requires walking the entire tree repeatedly and most pages don't actually use either
178 // feature so we shouldn't take the performance hit when not needed. Long te rm we should 178 // feature so we shouldn't take the performance hit when not needed. Long te rm we should
179 // rewrite the counter and quotes code. 179 // rewrite the counter and quotes code.
180 void addLayoutCounter() { m_layoutCounterCount++; } 180 void addLayoutCounter() { m_layoutCounterCount++; }
181 void removeLayoutCounter() { ASSERT(m_layoutCounterCount > 0); m_layoutCount erCount--; } 181 void removeLayoutCounter() { ASSERT(m_layoutCounterCount > 0); m_layoutCount erCount--; }
182 bool hasLayoutCounters() { return m_layoutCounterCount; } 182 bool hasLayoutCounters() { return m_layoutCounterCount; }
183 183
184 bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect) const ov erride; 184 bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect) const ov erride;
185 185
186 double layoutViewportWidth() const; 186 // Returns the viewport size in (CSS pixels) that vh and vw units are calcul ated from.
187 double layoutViewportHeight() const; 187 FloatSize viewportSizeForViewportUnits() const;
188 188
189 void pushLayoutState(LayoutState& layoutState) { m_layoutState = &layoutStat e; } 189 void pushLayoutState(LayoutState& layoutState) { m_layoutState = &layoutStat e; }
190 void popLayoutState() { ASSERT(m_layoutState); m_layoutState = m_layoutState ->next(); } 190 void popLayoutState() { ASSERT(m_layoutState); m_layoutState = m_layoutState ->next(); }
191 void invalidateTreeIfNeeded(PaintInvalidationState&) final; 191 void invalidateTreeIfNeeded(PaintInvalidationState&) final;
192 192
193 LayoutRect visualOverflowRect() const override; 193 LayoutRect visualOverflowRect() const override;
194 194
195 // Invalidates paint for the entire view, including composited descendants, but not including child frames. 195 // Invalidates paint for the entire view, including composited descendants, but not including child frames.
196 // It is very likely you do not want to call this method. 196 // It is very likely you do not want to call this method.
197 void setShouldDoFullPaintInvalidationForViewAndAllDescendants(); 197 void setShouldDoFullPaintInvalidationForViewAndAllDescendants();
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 m_paintInvalidationState->m_cachedOffsetsEnabled = true; 301 m_paintInvalidationState->m_cachedOffsetsEnabled = true;
302 } 302 }
303 private: 303 private:
304 const PaintInvalidationState* m_paintInvalidationState; 304 const PaintInvalidationState* m_paintInvalidationState;
305 bool m_didDisable; 305 bool m_didDisable;
306 }; 306 };
307 307
308 } // namespace blink 308 } // namespace blink
309 309
310 #endif // LayoutView_h 310 #endif // LayoutView_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/PageScaleConstraintsSet.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698