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

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

Issue 2610253004: Migrate WTF::Vector::append() to ::push_back() [part 9 of N] (Closed)
Patch Set: rebase Created 3 years, 11 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) 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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 // Set up a fragments relative to the descendant, in the flow thread 131 // Set up a fragments relative to the descendant, in the flow thread
132 // coordinate space, and convert each of them, individually, to absolute 132 // coordinate space, and convert each of them, individually, to absolute
133 // coordinates. 133 // coordinates.
134 for (FragmentainerIterator iterator(*this, boundingRectInFlowThread); 134 for (FragmentainerIterator iterator(*this, boundingRectInFlowThread);
135 !iterator.atEnd(); iterator.advance()) { 135 !iterator.atEnd(); iterator.advance()) {
136 LayoutRect fragment = boundingRectInFlowThread; 136 LayoutRect fragment = boundingRectInFlowThread;
137 // We use inclusiveIntersect() because intersect() would reset the 137 // We use inclusiveIntersect() because intersect() would reset the
138 // coordinates for zero-height objects. 138 // coordinates for zero-height objects.
139 fragment.inclusiveIntersect(iterator.fragmentainerInFlowThread()); 139 fragment.inclusiveIntersect(iterator.fragmentainerInFlowThread());
140 fragment.moveBy(-offsetFromFlowThread); 140 fragment.moveBy(-offsetFromFlowThread);
141 quads.append(descendant.localToAbsoluteQuad(FloatRect(fragment), mode)); 141 quads.push_back(descendant.localToAbsoluteQuad(FloatRect(fragment), mode));
142 } 142 }
143 } 143 }
144 144
145 bool LayoutFlowThread::nodeAtPoint(HitTestResult& result, 145 bool LayoutFlowThread::nodeAtPoint(HitTestResult& result,
146 const HitTestLocation& locationInContainer, 146 const HitTestLocation& locationInContainer,
147 const LayoutPoint& accumulatedOffset, 147 const LayoutPoint& accumulatedOffset,
148 HitTestAction hitTestAction) { 148 HitTestAction hitTestAction) {
149 if (hitTestAction == HitTestBlockBackground) 149 if (hitTestAction == HitTestBlockBackground)
150 return false; 150 return false;
151 return LayoutBlockFlow::nodeAtPoint(result, locationInContainer, 151 return LayoutBlockFlow::nodeAtPoint(result, locationInContainer,
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 229
230 void LayoutFlowThread::MultiColumnSetSearchAdapter::collectIfNeeded( 230 void LayoutFlowThread::MultiColumnSetSearchAdapter::collectIfNeeded(
231 const MultiColumnSetInterval& interval) { 231 const MultiColumnSetInterval& interval) {
232 if (m_result) 232 if (m_result)
233 return; 233 return;
234 if (interval.low() <= m_offset && interval.high() > m_offset) 234 if (interval.low() <= m_offset && interval.high() > m_offset)
235 m_result = interval.data(); 235 m_result = interval.data();
236 } 236 }
237 237
238 } // namespace blink 238 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutGrid.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698