| 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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 do { | 172 do { |
| 173 renderer = renderer->pushMappingToContainer(ancestorRenderer, *this); | 173 renderer = renderer->pushMappingToContainer(ancestorRenderer, *this); |
| 174 } while (renderer && renderer != ancestorRenderer); | 174 } while (renderer && renderer != ancestorRenderer); |
| 175 | 175 |
| 176 ASSERT(m_mapping.isEmpty() || isTopmostRenderView(m_mapping[0].m_renderer)); | 176 ASSERT(m_mapping.isEmpty() || isTopmostRenderView(m_mapping[0].m_renderer)); |
| 177 } | 177 } |
| 178 | 178 |
| 179 static bool canMapBetweenRenderers(const RenderObject* renderer, const RenderObj
ect* ancestor) | 179 static bool canMapBetweenRenderers(const RenderObject* renderer, const RenderObj
ect* ancestor) |
| 180 { | 180 { |
| 181 for (const RenderObject* current = renderer; ; current = current->parent())
{ | 181 for (const RenderObject* current = renderer; ; current = current->parent())
{ |
| 182 const RenderStyle* style = current->style(); | |
| 183 if (style->isFlippedBlocksWritingMode()) | |
| 184 return false; | |
| 185 | |
| 186 if (current->hasTransform()) | 182 if (current->hasTransform()) |
| 187 return false; | 183 return false; |
| 188 | 184 |
| 189 if (current == ancestor) | 185 if (current == ancestor) |
| 190 break; | 186 break; |
| 191 } | 187 } |
| 192 | 188 |
| 193 return true; | 189 return true; |
| 194 } | 190 } |
| 195 | 191 |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 if (!renderer->isRenderView()) | 301 if (!renderer->isRenderView()) |
| 306 return false; | 302 return false; |
| 307 | 303 |
| 308 // If we're not working with multiple RenderViews, then any view is consider
ed | 304 // If we're not working with multiple RenderViews, then any view is consider
ed |
| 309 // "topmost" (to preserve original behavior). | 305 // "topmost" (to preserve original behavior). |
| 310 return !(m_mapCoordinatesFlags & TraverseDocumentBoundaries); | 306 return !(m_mapCoordinatesFlags & TraverseDocumentBoundaries); |
| 311 } | 307 } |
| 312 #endif | 308 #endif |
| 313 | 309 |
| 314 } // namespace blink | 310 } // namespace blink |
| OLD | NEW |