| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 namespace WebCore { | 35 namespace WebCore { |
| 36 | 36 |
| 37 class RenderLineBoxList { | 37 class RenderLineBoxList { |
| 38 public: | 38 public: |
| 39 RenderLineBoxList() | 39 RenderLineBoxList() |
| 40 : m_firstLineBox(0) | 40 : m_firstLineBox(0) |
| 41 , m_lastLineBox(0) | 41 , m_lastLineBox(0) |
| 42 { | 42 { |
| 43 } | 43 } |
| 44 | 44 |
| 45 #ifndef NDEBUG | 45 #if ENABLE(ASSERT) |
| 46 ~RenderLineBoxList(); | 46 ~RenderLineBoxList(); |
| 47 #endif | 47 #endif |
| 48 | 48 |
| 49 InlineFlowBox* firstLineBox() const { return m_firstLineBox; } | 49 InlineFlowBox* firstLineBox() const { return m_firstLineBox; } |
| 50 InlineFlowBox* lastLineBox() const { return m_lastLineBox; } | 50 InlineFlowBox* lastLineBox() const { return m_lastLineBox; } |
| 51 | 51 |
| 52 void checkConsistency() const; | 52 void checkConsistency() const; |
| 53 | 53 |
| 54 void appendLineBox(InlineFlowBox*); | 54 void appendLineBox(InlineFlowBox*); |
| 55 | 55 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 72 bool rangeIntersectsRect(RenderBoxModelObject*, LayoutUnit logicalTop, Layou
tUnit logicalBottom, const LayoutRect&, const LayoutPoint&) const; | 72 bool rangeIntersectsRect(RenderBoxModelObject*, LayoutUnit logicalTop, Layou
tUnit logicalBottom, const LayoutRect&, const LayoutPoint&) const; |
| 73 | 73 |
| 74 // For block flows, each box represents the root inline box for a line in th
e | 74 // For block flows, each box represents the root inline box for a line in th
e |
| 75 // paragraph. | 75 // paragraph. |
| 76 // For inline flows, each box represents a portion of that inline. | 76 // For inline flows, each box represents a portion of that inline. |
| 77 InlineFlowBox* m_firstLineBox; | 77 InlineFlowBox* m_firstLineBox; |
| 78 InlineFlowBox* m_lastLineBox; | 78 InlineFlowBox* m_lastLineBox; |
| 79 }; | 79 }; |
| 80 | 80 |
| 81 | 81 |
| 82 #ifdef NDEBUG | 82 #if !ENABLE(ASSERT) |
| 83 inline void RenderLineBoxList::checkConsistency() const | 83 inline void RenderLineBoxList::checkConsistency() const |
| 84 { | 84 { |
| 85 } | 85 } |
| 86 #endif | 86 #endif |
| 87 | 87 |
| 88 } // namespace WebCore | 88 } // namespace WebCore |
| 89 | 89 |
| 90 #endif // RenderFlow_h | 90 #endif // RenderFlow_h |
| OLD | NEW |