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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutBlockFlow.h

Issue 1952613002: Move LayoutDeprecatedFlexibleBox-specific line handling. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Const all the things! Created 4 years, 7 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-2013 Apple Inc. All rights reserved. 5 * Copyright (C) 2003-2013 Apple Inc. All rights reserved.
6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
7 * Copyright (C) 2013 Google Inc. All rights reserved. 7 * Copyright (C) 2013 Google Inc. All rights reserved.
8 * 8 *
9 * Redistribution and use in source and binary forms, with or without 9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions are 10 * modification, are permitted provided that the following conditions are
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 using LayoutBlock::firstLineBox; 129 using LayoutBlock::firstLineBox;
130 using LayoutBlock::lastLineBox; 130 using LayoutBlock::lastLineBox;
131 using LayoutBlock::firstRootBox; 131 using LayoutBlock::firstRootBox;
132 using LayoutBlock::lastRootBox; 132 using LayoutBlock::lastRootBox;
133 133
134 LayoutUnit logicalLeftSelectionOffset(const LayoutBlock* rootBlock, LayoutUn it position) const override; 134 LayoutUnit logicalLeftSelectionOffset(const LayoutBlock* rootBlock, LayoutUn it position) const override;
135 LayoutUnit logicalRightSelectionOffset(const LayoutBlock* rootBlock, LayoutU nit position) const override; 135 LayoutUnit logicalRightSelectionOffset(const LayoutBlock* rootBlock, LayoutU nit position) const override;
136 136
137 RootInlineBox* createAndAppendRootInlineBox(); 137 RootInlineBox* createAndAppendRootInlineBox();
138 138
139 // Return the number of lines in *this* block flow. Does not recurse into bl ock flow children.
140 // Will start counting from the first line, and stop counting right after |s topRootInlineBox|,
141 // if specified.
142 int lineCount(const RootInlineBox* stopRootInlineBox = nullptr) const;
143
139 void removeFloatingObjectsFromDescendants(); 144 void removeFloatingObjectsFromDescendants();
140 void markAllDescendantsWithFloatsForLayout(LayoutBox* floatToRemove = nullpt r, bool inLayout = true); 145 void markAllDescendantsWithFloatsForLayout(LayoutBox* floatToRemove = nullpt r, bool inLayout = true);
141 void markSiblingsWithFloatsForLayout(LayoutBox* floatToRemove = nullptr); 146 void markSiblingsWithFloatsForLayout(LayoutBox* floatToRemove = nullptr);
142 147
143 bool containsFloats() const { return m_floatingObjects && !m_floatingObjects ->set().isEmpty(); } 148 bool containsFloats() const { return m_floatingObjects && !m_floatingObjects ->set().isEmpty(); }
144 bool containsFloat(LayoutBox*) const; 149 bool containsFloat(LayoutBox*) const;
145 150
146 void removeFloatingObjects(); 151 void removeFloatingObjects();
147 152
148 void addChild(LayoutObject* newChild, LayoutObject* beforeChild = nullptr) o verride; 153 void addChild(LayoutObject* newChild, LayoutObject* beforeChild = nullptr) o verride;
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after
607 612
608 // END METHODS DEFINED IN LayoutBlockFlowLine 613 // END METHODS DEFINED IN LayoutBlockFlowLine
609 614
610 }; 615 };
611 616
612 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlockFlow, isLayoutBlockFlow()); 617 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlockFlow, isLayoutBlockFlow());
613 618
614 } // namespace blink 619 } // namespace blink
615 620
616 #endif // LayoutBlockFlow_h 621 #endif // LayoutBlockFlow_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBlock.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698