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

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

Issue 166033009: *** FOR PROTOTYPE PURPOSES ONLY! NOT INTENDED FOR COMMIT! *** (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 10 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
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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 InlineFlowBox* firstLineBox() const { return m_lineBoxes.firstLineBox(); } 96 InlineFlowBox* firstLineBox() const { return m_lineBoxes.firstLineBox(); }
97 InlineFlowBox* lastLineBox() const { return m_lineBoxes.lastLineBox(); } 97 InlineFlowBox* lastLineBox() const { return m_lineBoxes.lastLineBox(); }
98 98
99 // FIXME-BLOCKFLOW: Remove virtualizaion when all callers have moved to Rend erBlockFlow 99 // FIXME-BLOCKFLOW: Remove virtualizaion when all callers have moved to Rend erBlockFlow
100 virtual void deleteLineBoxTree(); 100 virtual void deleteLineBoxTree();
101 101
102 virtual void addChild(RenderObject* newChild, RenderObject* beforeChild = 0) OVERRIDE; 102 virtual void addChild(RenderObject* newChild, RenderObject* beforeChild = 0) OVERRIDE;
103 virtual void removeChild(RenderObject*) OVERRIDE; 103 virtual void removeChild(RenderObject*) OVERRIDE;
104 104
105 virtual void layoutBlock(bool relayoutChildren); 105 virtual void layoutBlock(bool relayoutChildren);
106 virtual void preLayoutBlock(bool relayoutChildren, bool traverseChildren);
107 virtual bool postLayoutBlock();
106 108
107 void insertPositionedObject(RenderBox*); 109 void insertPositionedObject(RenderBox*);
108 static void removePositionedObject(RenderBox*); 110 static void removePositionedObject(RenderBox*);
109 void removePositionedObjects(RenderBlock*, ContainingBlockState = SameContai ningBlock); 111 void removePositionedObjects(RenderBlock*, ContainingBlockState = SameContai ningBlock);
110 112
111 TrackedRendererListHashSet* positionedObjects() const; 113 TrackedRendererListHashSet* positionedObjects() const;
112 bool hasPositionedObjects() const 114 bool hasPositionedObjects() const
113 { 115 {
114 TrackedRendererListHashSet* objects = positionedObjects(); 116 TrackedRendererListHashSet* objects = positionedObjects();
115 return objects && !objects->isEmpty(); 117 return objects && !objects->isEmpty();
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 // inline-block elements paint all phases atomically. This function ensures that. Certain other elements 317 // inline-block elements paint all phases atomically. This function ensures that. Certain other elements
316 // (grid items, flex items) require this behavior as well, and this function exists as a helper for them. 318 // (grid items, flex items) require this behavior as well, and this function exists as a helper for them.
317 // It is expected that the caller will call this function independent of the value of paintInfo.phase. 319 // It is expected that the caller will call this function independent of the value of paintInfo.phase.
318 static void paintAsInlineBlock(RenderObject*, PaintInfo&, const LayoutPoint& ); 320 static void paintAsInlineBlock(RenderObject*, PaintInfo&, const LayoutPoint& );
319 protected: 321 protected:
320 virtual void willBeDestroyed() OVERRIDE; 322 virtual void willBeDestroyed() OVERRIDE;
321 323
322 void dirtyForLayoutFromPercentageHeightDescendants(SubtreeLayoutScope&); 324 void dirtyForLayoutFromPercentageHeightDescendants(SubtreeLayoutScope&);
323 325
324 virtual void layout() OVERRIDE; 326 virtual void layout() OVERRIDE;
327 virtual void preLayout() OVERRIDE;
328 virtual void postLayout() OVERRIDE;
325 virtual bool updateImageLoadingPriorities() OVERRIDE FINAL; 329 virtual bool updateImageLoadingPriorities() OVERRIDE FINAL;
326 330
327 void layoutPositionedObjects(bool relayoutChildren, bool fixedPositionObject sOnly = false); 331 void layoutPositionedObjects(bool relayoutChildren, bool fixedPositionObject sOnly = false);
328 void markFixedPositionObjectForLayoutIfNeeded(RenderObject* child, SubtreeLa youtScope&); 332 void markFixedPositionObjectForLayoutIfNeeded(RenderObject* child, SubtreeLa youtScope&);
329 333
330 LayoutUnit marginIntrinsicLogicalWidthForChild(RenderBox* child) const; 334 LayoutUnit marginIntrinsicLogicalWidthForChild(RenderBox* child) const;
331 335
332 int beforeMarginInLineDirection(LineDirectionMode) const; 336 int beforeMarginInLineDirection(LineDirectionMode) const;
333 337
334 virtual bool supportsPartialLayout() const OVERRIDE { return true; }; 338 virtual bool supportsPartialLayout() const OVERRIDE { return true; };
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
633 return false; 637 return false;
634 } 638 }
635 return true; 639 return true;
636 } 640 }
637 641
638 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlock, isRenderBlock()); 642 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlock, isRenderBlock());
639 643
640 } // namespace WebCore 644 } // namespace WebCore
641 645
642 #endif // RenderBlock_h 646 #endif // RenderBlock_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698