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

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: Use nullptr 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 3088 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBlockFlow.h ('k') | third_party/WebKit/Source/core/layout/LayoutObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698