| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv
ed. | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv
ed. |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| (...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 374 } | 374 } |
| 375 } | 375 } |
| 376 | 376 |
| 377 // If a container was specified, and was not 0 or the LayoutView, then we | 377 // If a container was specified, and was not 0 or the LayoutView, then we |
| 378 // should have found it by now unless we're traversing to a parent document. | 378 // should have found it by now unless we're traversing to a parent document. |
| 379 ASSERT_ARG(ancestorToStopAt, !ancestorToStopAt || ancestorToStopAt == this |
| container); | 379 ASSERT_ARG(ancestorToStopAt, !ancestorToStopAt || ancestorToStopAt == this |
| container); |
| 380 | 380 |
| 381 if ((!ancestorToStopAt || container) && shouldUseTransformFromContainer(cont
ainer)) { | 381 if ((!ancestorToStopAt || container) && shouldUseTransformFromContainer(cont
ainer)) { |
| 382 TransformationMatrix t; | 382 TransformationMatrix t; |
| 383 getTransformFromContainer(container, LayoutSize(), t); | 383 getTransformFromContainer(container, LayoutSize(), t); |
| 384 geometryMap.push(this, t, false, false, false, true, offsetForFixedPosit
ion); | 384 geometryMap.push(this, t, HasTransform, offsetForFixedPosition); |
| 385 } else { | 385 } else { |
| 386 geometryMap.push(this, offset, false, false, false, false, offsetForFixe
dPosition); | 386 geometryMap.push(this, offset, 0, offsetForFixedPosition); |
| 387 } | 387 } |
| 388 | 388 |
| 389 return container; | 389 return container; |
| 390 } | 390 } |
| 391 | 391 |
| 392 void LayoutView::mapAbsoluteToLocalPoint(MapCoordinatesFlags mode, TransformStat
e& transformState) const | 392 void LayoutView::mapAbsoluteToLocalPoint(MapCoordinatesFlags mode, TransformStat
e& transformState) const |
| 393 { | 393 { |
| 394 if (mode & IsFixed && m_frameView) | 394 if (mode & IsFixed && m_frameView) |
| 395 transformState.move(toIntSize(m_frameView->scrollPosition())); | 395 transformState.move(toIntSize(m_frameView->scrollPosition())); |
| 396 | 396 |
| (...skipping 600 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 997 } | 997 } |
| 998 | 998 |
| 999 void LayoutView::sendMediaPositionChangeNotifications(const IntRect& visibleRect
) | 999 void LayoutView::sendMediaPositionChangeNotifications(const IntRect& visibleRect
) |
| 1000 { | 1000 { |
| 1001 for (auto& media : m_mediaForPositionNotification) { | 1001 for (auto& media : m_mediaForPositionNotification) { |
| 1002 media->notifyPositionMayHaveChanged(visibleRect); | 1002 media->notifyPositionMayHaveChanged(visibleRect); |
| 1003 } | 1003 } |
| 1004 } | 1004 } |
| 1005 | 1005 |
| 1006 } // namespace blink | 1006 } // namespace blink |
| OLD | NEW |