OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2003, 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2003, 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
8 * | 8 * |
9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 } | 292 } |
293 | 293 |
294 bool descendantsHaveSameLineHeightAndBaseline() const { return m_descendants
HaveSameLineHeightAndBaseline; } | 294 bool descendantsHaveSameLineHeightAndBaseline() const { return m_descendants
HaveSameLineHeightAndBaseline; } |
295 void clearDescendantsHaveSameLineHeightAndBaseline() | 295 void clearDescendantsHaveSameLineHeightAndBaseline() |
296 { | 296 { |
297 m_descendantsHaveSameLineHeightAndBaseline = false; | 297 m_descendantsHaveSameLineHeightAndBaseline = false; |
298 if (parent() && parent()->descendantsHaveSameLineHeightAndBaseline()) | 298 if (parent() && parent()->descendantsHaveSameLineHeightAndBaseline()) |
299 parent()->clearDescendantsHaveSameLineHeightAndBaseline(); | 299 parent()->clearDescendantsHaveSameLineHeightAndBaseline(); |
300 } | 300 } |
301 | 301 |
302 virtual void reportMemoryUsage(MemoryObjectInfo*) const OVERRIDE FINAL; | |
303 | |
304 private: | 302 private: |
305 void addBoxShadowVisualOverflow(LayoutRect& logicalVisualOverflow); | 303 void addBoxShadowVisualOverflow(LayoutRect& logicalVisualOverflow); |
306 void addBorderOutsetVisualOverflow(LayoutRect& logicalVisualOverflow); | 304 void addBorderOutsetVisualOverflow(LayoutRect& logicalVisualOverflow); |
307 void addTextBoxVisualOverflow(InlineTextBox*, GlyphOverflowAndFallbackFontsM
ap&, LayoutRect& logicalVisualOverflow); | 305 void addTextBoxVisualOverflow(InlineTextBox*, GlyphOverflowAndFallbackFontsM
ap&, LayoutRect& logicalVisualOverflow); |
308 void addReplacedChildOverflow(const InlineBox*, LayoutRect& logicalLayoutOve
rflow, LayoutRect& logicalVisualOverflow); | 306 void addReplacedChildOverflow(const InlineBox*, LayoutRect& logicalLayoutOve
rflow, LayoutRect& logicalVisualOverflow); |
309 void constrainToLineTopAndBottomIfNeeded(LayoutRect&) const; | 307 void constrainToLineTopAndBottomIfNeeded(LayoutRect&) const; |
310 | 308 |
311 protected: | 309 protected: |
312 OwnPtr<RenderOverflow> m_overflow; | 310 OwnPtr<RenderOverflow> m_overflow; |
313 | 311 |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
382 } | 380 } |
383 | 381 |
384 } // namespace WebCore | 382 } // namespace WebCore |
385 | 383 |
386 #ifndef NDEBUG | 384 #ifndef NDEBUG |
387 // Outside the WebCore namespace for ease of invocation from gdb. | 385 // Outside the WebCore namespace for ease of invocation from gdb. |
388 void showTree(const WebCore::InlineFlowBox*); | 386 void showTree(const WebCore::InlineFlowBox*); |
389 #endif | 387 #endif |
390 | 388 |
391 #endif // InlineFlowBox_h | 389 #endif // InlineFlowBox_h |
OLD | NEW |