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

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

Issue 1282713003: Painter side preparation for subtree caching (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: needsSubtreeRecorder Created 5 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
« no previous file with comments | « no previous file | Source/core/paint/BlockPainter.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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 LayoutObjectChildList* children() { return &m_children; } 73 LayoutObjectChildList* children() { return &m_children; }
74 74
75 bool beingDestroyed() const { return m_beingDestroyed; } 75 bool beingDestroyed() const { return m_beingDestroyed; }
76 76
77 // These two functions are overridden for inline-block. 77 // These two functions are overridden for inline-block.
78 LayoutUnit lineHeight(bool firstLine, LineDirectionMode, LinePositionMode = PositionOnContainingLine) const final; 78 LayoutUnit lineHeight(bool firstLine, LineDirectionMode, LinePositionMode = PositionOnContainingLine) const final;
79 int baselinePosition(FontBaseline, bool firstLine, LineDirectionMode, LinePo sitionMode = PositionOnContainingLine) const override; 79 int baselinePosition(FontBaseline, bool firstLine, LineDirectionMode, LinePo sitionMode = PositionOnContainingLine) const override;
80 80
81 LayoutUnit minLineHeightForReplacedObject(bool isFirstLine, LayoutUnit repla cedHeight) const; 81 LayoutUnit minLineHeightForReplacedObject(bool isFirstLine, LayoutUnit repla cedHeight) const;
82 82
83 const LineBoxList& lineBoxes() const { return m_lineBoxes; }
83 LineBoxList* lineBoxes() { return &m_lineBoxes; } 84 LineBoxList* lineBoxes() { return &m_lineBoxes; }
84 85
85 const char* name() const override; 86 const char* name() const override;
86 87
87 protected: 88 protected:
88 InlineFlowBox* firstLineBox() const { return m_lineBoxes.firstLineBox(); } 89 InlineFlowBox* firstLineBox() const { return m_lineBoxes.firstLineBox(); }
89 InlineFlowBox* lastLineBox() const { return m_lineBoxes.lastLineBox(); } 90 InlineFlowBox* lastLineBox() const { return m_lineBoxes.lastLineBox(); }
90 91
91 RootInlineBox* firstRootBox() const { return static_cast<RootInlineBox*>(fir stLineBox()); } 92 RootInlineBox* firstRootBox() const { return static_cast<RootInlineBox*>(fir stLineBox()); }
92 RootInlineBox* lastRootBox() const { return static_cast<RootInlineBox*>(last LineBox()); } 93 RootInlineBox* lastRootBox() const { return static_cast<RootInlineBox*>(last LineBox()); }
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 // FIXME: This is temporary as we move code that accesses block flow 422 // FIXME: This is temporary as we move code that accesses block flow
422 // member variables out of LayoutBlock and into LayoutBlockFlow. 423 // member variables out of LayoutBlock and into LayoutBlockFlow.
423 friend class LayoutBlockFlow; 424 friend class LayoutBlockFlow;
424 }; 425 };
425 426
426 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlock, isLayoutBlock()); 427 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlock, isLayoutBlock());
427 428
428 } // namespace blink 429 } // namespace blink
429 430
430 #endif // LayoutBlock_h 431 #endif // LayoutBlock_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/paint/BlockPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698