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

Side by Side Diff: Source/core/layout/LayoutFlowThread.cpp

Issue 1025213002: Begin tracking why layout is invalidated (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 5 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/layout/LayoutFieldset.cpp ('k') | Source/core/layout/LayoutFrameSet.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved. 2 * Copyright (C) 2011 Adobe Systems Incorporated. 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 8 * 1. Redistributions of source code must retain the above
9 * copyright notice, this list of conditions and the following 9 * copyright notice, this list of conditions and the following
10 * disclaimer. 10 * disclaimer.
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 m_multiColumnSetList.remove(columnSet); 51 m_multiColumnSetList.remove(columnSet);
52 } 52 }
53 53
54 void LayoutFlowThread::invalidateRegions() 54 void LayoutFlowThread::invalidateRegions()
55 { 55 {
56 if (m_regionsInvalidated) { 56 if (m_regionsInvalidated) {
57 ASSERT(selfNeedsLayout()); 57 ASSERT(selfNeedsLayout());
58 return; 58 return;
59 } 59 }
60 60
61 setNeedsLayoutAndFullPaintInvalidation(); 61 setNeedsLayoutAndFullPaintInvalidation(LayoutInvalidationReason::ColumnsChan ged);
62 62
63 m_regionsInvalidated = true; 63 m_regionsInvalidated = true;
64 } 64 }
65 65
66 void LayoutFlowThread::validateRegions() 66 void LayoutFlowThread::validateRegions()
67 { 67 {
68 if (m_regionsInvalidated) { 68 if (m_regionsInvalidated) {
69 m_regionsInvalidated = false; 69 m_regionsInvalidated = false;
70 m_regionsHaveUniformLogicalHeight = true; 70 m_regionsHaveUniformLogicalHeight = true;
71 71
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 213
214 void LayoutFlowThread::MultiColumnSetSearchAdapter::collectIfNeeded(const MultiC olumnSetInterval& interval) 214 void LayoutFlowThread::MultiColumnSetSearchAdapter::collectIfNeeded(const MultiC olumnSetInterval& interval)
215 { 215 {
216 if (m_result) 216 if (m_result)
217 return; 217 return;
218 if (interval.low() <= m_offset && interval.high() > m_offset) 218 if (interval.low() <= m_offset && interval.high() > m_offset)
219 m_result = interval.data(); 219 m_result = interval.data();
220 } 220 }
221 221
222 } // namespace blink 222 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/layout/LayoutFieldset.cpp ('k') | Source/core/layout/LayoutFrameSet.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698