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) 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 Loading... |
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 Loading... |
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 |
OLD | NEW |