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

Side by Side Diff: sky/engine/core/rendering/RenderBlock.h

Issue 688443003: Remove a bit more position:fixed plumbing. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « no previous file | sky/engine/core/rendering/RenderBlock.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 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2007 David Smith (catfish.man@gmail.com) 4 * (C) 2007 David Smith (catfish.man@gmail.com)
5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All r ights reserved. 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All r ights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 protected: 226 protected:
227 virtual void willBeDestroyed() override; 227 virtual void willBeDestroyed() override;
228 228
229 void dirtyForLayoutFromPercentageHeightDescendants(SubtreeLayoutScope&); 229 void dirtyForLayoutFromPercentageHeightDescendants(SubtreeLayoutScope&);
230 230
231 virtual void layout() override; 231 virtual void layout() override;
232 virtual bool updateImageLoadingPriorities() override final; 232 virtual bool updateImageLoadingPriorities() override final;
233 233
234 enum PositionedLayoutBehavior { 234 enum PositionedLayoutBehavior {
235 DefaultLayout, 235 DefaultLayout,
236 LayoutOnlyFixedPositionedObjects,
237 ForcedLayoutAfterContainingBlockMoved 236 ForcedLayoutAfterContainingBlockMoved
238 }; 237 };
239 238
240 void layoutPositionedObjects(bool relayoutChildren, PositionedLayoutBehavior = DefaultLayout); 239 void layoutPositionedObjects(bool relayoutChildren, PositionedLayoutBehavior = DefaultLayout);
241 void markFixedPositionObjectForLayoutIfNeeded(RenderObject* child, SubtreeLa youtScope&);
242 240
243 LayoutUnit marginIntrinsicLogicalWidthForChild(RenderBox* child) const; 241 LayoutUnit marginIntrinsicLogicalWidthForChild(RenderBox* child) const;
244 242
245 int beforeMarginInLineDirection(LineDirectionMode) const; 243 int beforeMarginInLineDirection(LineDirectionMode) const;
246 244
247 virtual void paint(PaintInfo&, const LayoutPoint&) override; 245 virtual void paint(PaintInfo&, const LayoutPoint&) override;
248 virtual void paintObject(PaintInfo&, const LayoutPoint&) override; 246 virtual void paintObject(PaintInfo&, const LayoutPoint&) override;
249 virtual void paintChildren(PaintInfo&, const LayoutPoint&); 247 virtual void paintChildren(PaintInfo&, const LayoutPoint&);
250 void paintChild(RenderBox*, PaintInfo&, const LayoutPoint&); 248 void paintChild(RenderBox*, PaintInfo&, const LayoutPoint&);
251 void paintChildAsInlineBlock(RenderBox*, PaintInfo&, const LayoutPoint&); 249 void paintChildAsInlineBlock(RenderBox*, PaintInfo&, const LayoutPoint&);
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 // FIXME: This is temporary as we move code that accesses block flow 417 // FIXME: This is temporary as we move code that accesses block flow
420 // member variables out of RenderBlock and into RenderBlockFlow. 418 // member variables out of RenderBlock and into RenderBlockFlow.
421 friend class RenderBlockFlow; 419 friend class RenderBlockFlow;
422 }; 420 };
423 421
424 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlock, isRenderBlock()); 422 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlock, isRenderBlock());
425 423
426 } // namespace blink 424 } // namespace blink
427 425
428 #endif // RenderBlock_h 426 #endif // RenderBlock_h
OLDNEW
« no previous file with comments | « no previous file | sky/engine/core/rendering/RenderBlock.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698