| OLD | NEW |
| 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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 LayoutUnit position) const override; | 162 LayoutUnit position) const override; |
| 163 | 163 |
| 164 RootInlineBox* createAndAppendRootInlineBox(); | 164 RootInlineBox* createAndAppendRootInlineBox(); |
| 165 | 165 |
| 166 // Return the number of lines in *this* block flow. Does not recurse into | 166 // Return the number of lines in *this* block flow. Does not recurse into |
| 167 // block flow children. | 167 // block flow children. |
| 168 // Will start counting from the first line, and stop counting right after | 168 // Will start counting from the first line, and stop counting right after |
| 169 // |stopRootInlineBox|, if specified. | 169 // |stopRootInlineBox|, if specified. |
| 170 int lineCount(const RootInlineBox* stopRootInlineBox = nullptr) const; | 170 int lineCount(const RootInlineBox* stopRootInlineBox = nullptr) const; |
| 171 | 171 |
| 172 bool isDescentBaseline() const; |
| 172 int firstLineBoxBaseline() const override; | 173 int firstLineBoxBaseline() const override; |
| 173 int inlineBlockBaseline(LineDirectionMode) const override; | 174 int inlineBlockBaseline(LineDirectionMode) const override; |
| 174 | 175 |
| 175 void removeFloatingObjectsFromDescendants(); | 176 void removeFloatingObjectsFromDescendants(); |
| 176 void markAllDescendantsWithFloatsForLayout(LayoutBox* floatToRemove = nullptr, | 177 void markAllDescendantsWithFloatsForLayout(LayoutBox* floatToRemove = nullptr, |
| 177 bool inLayout = true); | 178 bool inLayout = true); |
| 178 void markSiblingsWithFloatsForLayout(LayoutBox* floatToRemove = nullptr); | 179 void markSiblingsWithFloatsForLayout(LayoutBox* floatToRemove = nullptr); |
| 179 | 180 |
| 180 bool containsFloats() const { | 181 bool containsFloats() const { |
| 181 return m_floatingObjects && !m_floatingObjects->set().isEmpty(); | 182 return m_floatingObjects && !m_floatingObjects->set().isEmpty(); |
| (...skipping 742 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 924 void positionDialog(); | 925 void positionDialog(); |
| 925 | 926 |
| 926 // END METHODS DEFINED IN LayoutBlockFlowLine | 927 // END METHODS DEFINED IN LayoutBlockFlowLine |
| 927 }; | 928 }; |
| 928 | 929 |
| 929 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlockFlow, isLayoutBlockFlow()); | 930 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlockFlow, isLayoutBlockFlow()); |
| 930 | 931 |
| 931 } // namespace blink | 932 } // namespace blink |
| 932 | 933 |
| 933 #endif // LayoutBlockFlow_h | 934 #endif // LayoutBlockFlow_h |
| OLD | NEW |