| OLD | NEW |
| 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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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->isFlippedBlocksWritingM
ode()) |
| 202 return false; | 202 return false; |
| 203 | 203 |
| 204 if (current->hasColumns() || current->hasTransform() || current->isRende
rFlowThread() || current->isSVGRoot()) | 204 if (current->hasColumns() || current->hasTransform() || current->isSVGRo
ot()) |
| 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; |
| 212 } | 212 } |
| 213 | 213 |
| 214 void RenderGeometryMap::pushMappingsToAncestor(const RenderLayer* layer, const R
enderLayer* ancestorLayer) | 214 void RenderGeometryMap::pushMappingsToAncestor(const RenderLayer* layer, const R
enderLayer* ancestorLayer) |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 337 // If we're not working with multiple RenderViews, then any view is consider
ed | 337 // If we're not working with multiple RenderViews, then any view is consider
ed |
| 338 // "topmost" (to preserve original behavior). | 338 // "topmost" (to preserve original behavior). |
| 339 if (!(m_mapCoordinatesFlags & TraverseDocumentBoundaries)) | 339 if (!(m_mapCoordinatesFlags & TraverseDocumentBoundaries)) |
| 340 return true; | 340 return true; |
| 341 | 341 |
| 342 return renderer->frame()->isMainFrame(); | 342 return renderer->frame()->isMainFrame(); |
| 343 } | 343 } |
| 344 #endif | 344 #endif |
| 345 | 345 |
| 346 } // namespace WebCore | 346 } // namespace WebCore |
| OLD | NEW |