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

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

Issue 1026823002: [S.P.] Don't draw frames of animated images that are offscreen (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/layout/LayoutObject.cpp ('k') | Source/core/layout/LayoutView.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 void removeLayoutCounter() { ASSERT(m_layoutCounterCount > 0); m_layoutCount erCount--; } 162 void removeLayoutCounter() { ASSERT(m_layoutCounterCount > 0); m_layoutCount erCount--; }
163 bool hasLayoutCounters() { return m_layoutCounterCount; } 163 bool hasLayoutCounters() { return m_layoutCounterCount; }
164 164
165 virtual bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect) const override; 165 virtual bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect) const override;
166 166
167 double layoutViewportWidth() const; 167 double layoutViewportWidth() const;
168 double layoutViewportHeight() const; 168 double layoutViewportHeight() const;
169 169
170 void pushLayoutState(LayoutState& layoutState) { m_layoutState = &layoutStat e; } 170 void pushLayoutState(LayoutState& layoutState) { m_layoutState = &layoutStat e; }
171 void popLayoutState() { ASSERT(m_layoutState); m_layoutState = m_layoutState ->next(); } 171 void popLayoutState() { ASSERT(m_layoutState); m_layoutState = m_layoutState ->next(); }
172 virtual void invalidateTreeIfNeeded(const PaintInvalidationState&) override final; 172 virtual void invalidateTreeIfNeeded(PaintInvalidationState&) override final;
173 173
174 private: 174 private:
175 virtual void mapLocalToContainer(const LayoutBoxModelObject* paintInvalidati onContainer, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wa sFixed = 0, const PaintInvalidationState* = 0) const override; 175 virtual void mapLocalToContainer(const LayoutBoxModelObject* paintInvalidati onContainer, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wa sFixed = 0, const PaintInvalidationState* = 0) const override;
176 virtual const LayoutObject* pushMappingToContainer(const LayoutBoxModelObjec t* ancestorToStopAt, LayoutGeometryMap&) const override; 176 virtual const LayoutObject* pushMappingToContainer(const LayoutBoxModelObjec t* ancestorToStopAt, LayoutGeometryMap&) const override;
177 virtual void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) c onst override; 177 virtual void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) c onst override;
178 virtual void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint& layerOffset) const override; 178 virtual void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint& layerOffset) const override;
179 179
180 void layoutContent(); 180 void layoutContent();
181 #if ENABLE(ASSERT) 181 #if ENABLE(ASSERT)
182 void checkLayoutState(); 182 void checkLayoutState();
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 m_paintInvalidationState->m_cachedOffsetsEnabled = true; 234 m_paintInvalidationState->m_cachedOffsetsEnabled = true;
235 } 235 }
236 private: 236 private:
237 const PaintInvalidationState* m_paintInvalidationState; 237 const PaintInvalidationState* m_paintInvalidationState;
238 bool m_didDisable; 238 bool m_didDisable;
239 }; 239 };
240 240
241 } // namespace blink 241 } // namespace blink
242 242
243 #endif // LayoutView_h 243 #endif // LayoutView_h
OLDNEW
« no previous file with comments | « Source/core/layout/LayoutObject.cpp ('k') | Source/core/layout/LayoutView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698