OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google 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 are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 3088 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3099 | 3099 |
3100 // FIXME: Glyph overflow will get lost in this case, but not really a big de
al. | 3100 // FIXME: Glyph overflow will get lost in this case, but not really a big de
al. |
3101 GlyphOverflowAndFallbackFontsMap textBoxDataMap; | 3101 GlyphOverflowAndFallbackFontsMap textBoxDataMap; |
3102 for (ListHashSet<RootInlineBox*>::const_iterator it = lineBoxes.begin(); it
!= lineBoxes.end(); ++it) { | 3102 for (ListHashSet<RootInlineBox*>::const_iterator it = lineBoxes.begin(); it
!= lineBoxes.end(); ++it) { |
3103 RootInlineBox* box = *it; | 3103 RootInlineBox* box = *it; |
3104 box->computeOverflow(box->lineTop(), box->lineBottom(), textBoxDataMap); | 3104 box->computeOverflow(box->lineTop(), box->lineBottom(), textBoxDataMap); |
3105 } | 3105 } |
3106 return childrenOverflowChanged; | 3106 return childrenOverflowChanged; |
3107 } | 3107 } |
3108 | 3108 |
| 3109 #ifndef NDEBUG |
| 3110 |
| 3111 void LayoutBlockFlow::showLineTreeAndMark(const InlineBox* markedBox1, const cha
r* markedLabel1, const InlineBox* markedBox2, const char* markedLabel2, const La
youtObject* obj) const |
| 3112 { |
| 3113 showLayoutObject(); |
| 3114 for (const RootInlineBox* root = firstRootBox(); root; root = root->nextRoot
Box()) |
| 3115 root->showLineTreeAndMark(markedBox1, markedLabel1, markedBox2, markedLa
bel2, obj, 1); |
| 3116 } |
| 3117 |
| 3118 #endif |
| 3119 |
3109 } // namespace blink | 3120 } // namespace blink |
OLD | NEW |