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

Side by Side Diff: Source/core/rendering/RenderGeometryMap.cpp

Issue 669803002: Optimize for horizontal writing mode (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: w compile fix Created 6 years, 2 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) 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2012 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 renderer = renderer->pushMappingToContainer(ancestorRenderer, *this); 191 renderer = renderer->pushMappingToContainer(ancestorRenderer, *this);
192 } while (renderer && renderer != ancestorRenderer); 192 } while (renderer && renderer != ancestorRenderer);
193 193
194 ASSERT(m_mapping.isEmpty() || isTopmostRenderView(m_mapping[0].m_renderer)); 194 ASSERT(m_mapping.isEmpty() || isTopmostRenderView(m_mapping[0].m_renderer));
195 } 195 }
196 196
197 static bool canMapBetweenRenderers(const RenderObject* renderer, const RenderObj ect* ancestor) 197 static bool canMapBetweenRenderers(const RenderObject* renderer, const RenderObj ect* ancestor)
198 { 198 {
199 for (const RenderObject* current = renderer; ; current = current->parent()) { 199 for (const RenderObject* current = renderer; ; current = current->parent()) {
200 const RenderStyle* style = current->style(); 200 const RenderStyle* style = current->style();
201 if (style->position() == FixedPosition || style->isFlippedBlocksWritingM ode()) 201 if (style->position() == FixedPosition || style->slowIsFlippedBlocksWrit ingMode())
202 return false; 202 return false;
203 203
204 if (current->hasColumns() || current->hasTransformRelatedProperty() || c urrent->isRenderFlowThread() || current->isSVGRoot()) 204 if (current->hasColumns() || current->hasTransformRelatedProperty() || c urrent->isRenderFlowThread() || current->isSVGRoot())
205 return false; 205 return false;
206 206
207 if (current == ancestor) 207 if (current == ancestor)
208 break; 208 break;
209 } 209 }
210 210
211 return true; 211 return true;
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 // If we're not working with multiple RenderViews, then any view is consider ed 338 // If we're not working with multiple RenderViews, then any view is consider ed
339 // "topmost" (to preserve original behavior). 339 // "topmost" (to preserve original behavior).
340 if (!(m_mapCoordinatesFlags & TraverseDocumentBoundaries)) 340 if (!(m_mapCoordinatesFlags & TraverseDocumentBoundaries))
341 return true; 341 return true;
342 342
343 return renderer->frame()->isMainFrame(); 343 return renderer->frame()->isMainFrame();
344 } 344 }
345 #endif 345 #endif
346 346
347 } // namespace blink 347 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698