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

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

Issue 1337233002: Invalidate paint when allocating a DeprecatedPaintLayer. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 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/LayoutBoxModelObject.cpp ('k') | no next file » | 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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 dirtyRectInMulticolContainer.moveBy(location()); 171 dirtyRectInMulticolContainer.moveBy(location());
172 172
173 for (LayoutMultiColumnSetList::const_iterator iter = m_multiColumnSetList.be gin(); iter != m_multiColumnSetList.end(); ++iter) { 173 for (LayoutMultiColumnSetList::const_iterator iter = m_multiColumnSetList.be gin(); iter != m_multiColumnSetList.end(); ++iter) {
174 LayoutMultiColumnSet* columnSet = *iter; 174 LayoutMultiColumnSet* columnSet = *iter;
175 columnSet->collectLayerFragments(layerFragments, layerBoundingBox, dirty RectInMulticolContainer); 175 columnSet->collectLayerFragments(layerFragments, layerBoundingBox, dirty RectInMulticolContainer);
176 } 176 }
177 } 177 }
178 178
179 LayoutRect LayoutFlowThread::fragmentsBoundingBox(const LayoutRect& layerBoundin gBox) const 179 LayoutRect LayoutFlowThread::fragmentsBoundingBox(const LayoutRect& layerBoundin gBox) const
180 { 180 {
181 ASSERT(!m_columnSetsInvalidated); 181 ASSERT(!RuntimeEnabledFeatures::slimmingPaintV2Enabled() || !m_columnSetsInv alidated);
182 182
183 LayoutRect result; 183 LayoutRect result;
184 for (auto* columnSet : m_multiColumnSetList) 184 for (auto* columnSet : m_multiColumnSetList)
185 result.unite(columnSet->fragmentsBoundingBox(layerBoundingBox)); 185 result.unite(columnSet->fragmentsBoundingBox(layerBoundingBox));
186 186
187 return result; 187 return result;
188 } 188 }
189 189
190 void LayoutFlowThread::MultiColumnSetSearchAdapter::collectIfNeeded(const MultiC olumnSetInterval& interval) 190 void LayoutFlowThread::MultiColumnSetSearchAdapter::collectIfNeeded(const MultiC olumnSetInterval& interval)
191 { 191 {
192 if (m_result) 192 if (m_result)
193 return; 193 return;
194 if (interval.low() <= m_offset && interval.high() > m_offset) 194 if (interval.low() <= m_offset && interval.high() > m_offset)
195 m_result = interval.data(); 195 m_result = interval.data();
196 } 196 }
197 197
198 } // namespace blink 198 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/layout/LayoutBoxModelObject.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698