Index: third_party/WebKit/Source/core/layout/PaintInvalidationState.cpp |
diff --git a/third_party/WebKit/Source/core/layout/PaintInvalidationState.cpp b/third_party/WebKit/Source/core/layout/PaintInvalidationState.cpp |
index 5daa2a67b53539f117afbabeb3a8eac051904dba..b0c29719e53a1656b70386e24b3aa8cac523930a 100644 |
--- a/third_party/WebKit/Source/core/layout/PaintInvalidationState.cpp |
+++ b/third_party/WebKit/Source/core/layout/PaintInvalidationState.cpp |
@@ -249,14 +249,6 @@ void PaintInvalidationState::updateForCurrentObject( |
EPosition position = m_currentObject.styleRef().position(); |
if (position == FixedPosition) { |
- if (m_paintInvalidationContainer != m_currentObject.view() && |
- m_paintInvalidationContainer->view() == m_currentObject.view()) { |
- // TODO(crbug.com/598762): localToAncestorPoint() is incorrect for |
- // fixed-position when paintInvalidationContainer is under the containing |
- // LayoutView. |
- m_cachedOffsetsEnabled = false; |
- return; |
- } |
// Use slow path to get the offset of the fixed-position, and enable fast |
// path for descendants. |
FloatPoint fixedOffset = m_currentObject.localToAncestorPoint( |