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

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

Issue 1952763002: Move showLineTreeAndMark() to LayoutBlockFlow. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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) 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 3105 matching lines...) Expand 10 before | Expand all | Expand 10 after
3116 3116
3117 // FIXME: Glyph overflow will get lost in this case, but not really a big de al. 3117 // FIXME: Glyph overflow will get lost in this case, but not really a big de al.
3118 GlyphOverflowAndFallbackFontsMap textBoxDataMap; 3118 GlyphOverflowAndFallbackFontsMap textBoxDataMap;
3119 for (ListHashSet<RootInlineBox*>::const_iterator it = lineBoxes.begin(); it != lineBoxes.end(); ++it) { 3119 for (ListHashSet<RootInlineBox*>::const_iterator it = lineBoxes.begin(); it != lineBoxes.end(); ++it) {
3120 RootInlineBox* box = *it; 3120 RootInlineBox* box = *it;
3121 box->computeOverflow(box->lineTop(), box->lineBottom(), textBoxDataMap); 3121 box->computeOverflow(box->lineTop(), box->lineBottom(), textBoxDataMap);
3122 } 3122 }
3123 return childrenOverflowChanged; 3123 return childrenOverflowChanged;
3124 } 3124 }
3125 3125
3126 #ifndef NDEBUG
3127
3128 void LayoutBlockFlow::showLineTreeAndMark(const InlineBox* markedBox1, const cha r* markedLabel1, const InlineBox* markedBox2, const char* markedLabel2, const La youtObject* obj) const
3129 {
3130 showLayoutObject();
3131 for (const RootInlineBox* root = firstRootBox(); root; root = root->nextRoot Box())
3132 root->showLineTreeAndMark(markedBox1, markedLabel1, markedBox2, markedLa bel2, obj, 1);
3133 }
3134
3135 #endif
3136
3126 } // namespace blink 3137 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698