Chromium Code Reviews| 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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 203 // Some LayoutMedias want to know about their viewport visibility for | 203 // Some LayoutMedias want to know about their viewport visibility for |
| 204 // crbug.com/487345,402044 . This facility will be removed once those | 204 // crbug.com/487345,402044 . This facility will be removed once those |
| 205 // experiments complete. | 205 // experiments complete. |
| 206 // TODO(ojan): Merge this with IntersectionObserver once it lands. | 206 // TODO(ojan): Merge this with IntersectionObserver once it lands. |
| 207 void registerMediaForPositionChangeNotification(LayoutMedia&); | 207 void registerMediaForPositionChangeNotification(LayoutMedia&); |
| 208 void unregisterMediaForPositionChangeNotification(LayoutMedia&); | 208 void unregisterMediaForPositionChangeNotification(LayoutMedia&); |
| 209 // Notify all registered LayoutMedias that their position on-screen might | 209 // Notify all registered LayoutMedias that their position on-screen might |
| 210 // have changed. visibleRect is the clipping boundary. | 210 // have changed. visibleRect is the clipping boundary. |
| 211 void sendMediaPositionChangeNotifications(const IntRect& visibleRect); | 211 void sendMediaPositionChangeNotifications(const IntRect& visibleRect); |
| 212 | 212 |
| 213 ScrollResult scroll(ScrollGranularity, const FloatSize&) override; | |
|
skobes
2016/03/02 23:26:30
Maybe worth a clarifying comment here to the effec
bokan
2016/03/02 23:33:19
Done.
| |
| 214 | |
| 213 private: | 215 private: |
| 214 void mapLocalToAncestor(const LayoutBoxModelObject* ancestor, TransformState &, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed = nullptr, const Pai ntInvalidationState* = nullptr) const override; | 216 void mapLocalToAncestor(const LayoutBoxModelObject* ancestor, TransformState &, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed = nullptr, const Pai ntInvalidationState* = nullptr) const override; |
| 215 | 217 |
| 216 const LayoutObject* pushMappingToContainer(const LayoutBoxModelObject* ances torToStopAt, LayoutGeometryMap&) const override; | 218 const LayoutObject* pushMappingToContainer(const LayoutBoxModelObject* ances torToStopAt, LayoutGeometryMap&) const override; |
| 217 void mapAncestorToLocal(const LayoutBoxModelObject*, TransformState&, MapCoo rdinatesFlags) const override; | 219 void mapAncestorToLocal(const LayoutBoxModelObject*, TransformState&, MapCoo rdinatesFlags) const override; |
| 218 void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint& layerOf fset) const override; | 220 void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint& layerOf fset) const override; |
| 219 | 221 |
| 220 void layoutContent(); | 222 void layoutContent(); |
| 221 #if ENABLE(ASSERT) | 223 #if ENABLE(ASSERT) |
| 222 void checkLayoutState(); | 224 void checkLayoutState(); |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 303 m_paintInvalidationState->m_cachedOffsetsEnabled = true; | 305 m_paintInvalidationState->m_cachedOffsetsEnabled = true; |
| 304 } | 306 } |
| 305 private: | 307 private: |
| 306 const PaintInvalidationState* m_paintInvalidationState; | 308 const PaintInvalidationState* m_paintInvalidationState; |
| 307 bool m_didDisable; | 309 bool m_didDisable; |
| 308 }; | 310 }; |
| 309 | 311 |
| 310 } // namespace blink | 312 } // namespace blink |
| 311 | 313 |
| 312 #endif // LayoutView_h | 314 #endif // LayoutView_h |
| OLD | NEW |