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

Side by Side Diff: Source/core/rendering/RenderLazyBlock.h

Issue 18601002: Add infrastructure for partial layouts (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix release compile, minor cleanups Created 7 years, 4 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 private: 58 private:
59 virtual void paintChildren(PaintInfo&, const LayoutPoint&) OVERRIDE; 59 virtual void paintChildren(PaintInfo&, const LayoutPoint&) OVERRIDE;
60 60
61 virtual bool isRenderLazyBlock() const OVERRIDE { return true; } 61 virtual bool isRenderLazyBlock() const OVERRIDE { return true; }
62 virtual void willBeDestroyed() OVERRIDE; 62 virtual void willBeDestroyed() OVERRIDE;
63 virtual void willBeRemovedFromTree() OVERRIDE; 63 virtual void willBeRemovedFromTree() OVERRIDE;
64 virtual void layoutBlock(bool relayoutChildren, LayoutUnit pageLogicalHeight ) OVERRIDE; 64 virtual void layoutBlock(bool relayoutChildren, LayoutUnit pageLogicalHeight ) OVERRIDE;
65 65
66 void layoutChildren(bool relayoutChildren); 66 void layoutChildren(bool relayoutChildren);
67 67
68 virtual bool supportsPartialLayout() const OVERRIDE { return false; }
69
68 void attachLazyBlock(); 70 void attachLazyBlock();
69 void detachLazyBlock(); 71 void detachLazyBlock();
70 72
71 RenderLazyBlock* m_next; 73 RenderLazyBlock* m_next;
72 RenderLazyBlock* m_previous; 74 RenderLazyBlock* m_previous;
73 RenderBox* m_firstVisibleChildBox; 75 RenderBox* m_firstVisibleChildBox;
74 RenderBox* m_lastVisibleChildBox; 76 RenderBox* m_lastVisibleChildBox;
75 bool m_attached; 77 bool m_attached;
76 bool m_isNestedLayout; 78 bool m_isNestedLayout;
77 LayoutRect m_intersectRect; 79 LayoutRect m_intersectRect;
78 IntRect m_expandedViewportRect; 80 IntRect m_expandedViewportRect;
79 }; 81 };
80 82
81 inline RenderLazyBlock* toRenderLazyBlock(RenderObject* object) 83 inline RenderLazyBlock* toRenderLazyBlock(RenderObject* object)
82 { 84 {
83 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isRenderLazyBlock()); 85 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isRenderLazyBlock());
84 return static_cast<RenderLazyBlock*>(object); 86 return static_cast<RenderLazyBlock*>(object);
85 } 87 }
86 88
87 inline const RenderLazyBlock* toRenderLazyBlock(const RenderObject* object) 89 inline const RenderLazyBlock* toRenderLazyBlock(const RenderObject* object)
88 { 90 {
89 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isRenderLazyBlock()); 91 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isRenderLazyBlock());
90 return static_cast<const RenderLazyBlock*>(object); 92 return static_cast<const RenderLazyBlock*>(object);
91 } 93 }
92 94
93 } // namespace WebCore 95 } // namespace WebCore
94 96
95 #endif // RenderLazyBlock_h 97 #endif // RenderLazyBlock_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698