| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com) | 4 * (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com) |
| 5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com) | 5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com) |
| 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. |
| 7 * Copyright (C) 2010 Google Inc. All rights reserved. | 7 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 8 * | 8 * |
| 9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
| 10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
| (...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 351 if (translate->dependsOnBoxSize()) | 351 if (translate->dependsOnBoxSize()) |
| 352 return true; | 352 return true; |
| 353 } | 353 } |
| 354 return style.transform().dependsOnBoxSize() | 354 return style.transform().dependsOnBoxSize() |
| 355 || (style.transformOriginX() != Length(50, Percent) && style.transformOr
iginX().hasPercent()) | 355 || (style.transformOriginX() != Length(50, Percent) && style.transformOr
iginX().hasPercent()) |
| 356 || (style.transformOriginY() != Length(50, Percent) && style.transformOr
iginY().hasPercent()); | 356 || (style.transformOriginY() != Length(50, Percent) && style.transformOr
iginY().hasPercent()); |
| 357 } | 357 } |
| 358 | 358 |
| 359 void LayoutBoxModelObject::invalidateTreeIfNeeded(PaintInvalidationState& paintI
nvalidationState) | 359 void LayoutBoxModelObject::invalidateTreeIfNeeded(PaintInvalidationState& paintI
nvalidationState) |
| 360 { | 360 { |
| 361 ASSERT(!RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled()); |
| 361 ASSERT(!needsLayout()); | 362 ASSERT(!needsLayout()); |
| 362 | 363 |
| 363 if (!shouldCheckForPaintInvalidation(paintInvalidationState)) | 364 if (!shouldCheckForPaintInvalidation(paintInvalidationState)) |
| 364 return; | 365 return; |
| 365 | 366 |
| 366 bool establishesNewPaintInvalidationContainer = isPaintInvalidationContainer
(); | 367 bool establishesNewPaintInvalidationContainer = isPaintInvalidationContainer
(); |
| 367 const LayoutBoxModelObject& newPaintInvalidationContainer = establishesNewPa
intInvalidationContainer ? *this : paintInvalidationState.paintInvalidationConta
iner(); | 368 const LayoutBoxModelObject& newPaintInvalidationContainer = establishesNewPa
intInvalidationContainer ? *this : paintInvalidationState.paintInvalidationConta
iner(); |
| 368 // FIXME: This assert should be re-enabled when we move paint invalidation t
o after compositing update. crbug.com/360286 | 369 // FIXME: This assert should be re-enabled when we move paint invalidation t
o after compositing update. crbug.com/360286 |
| 369 // ASSERT(&newPaintInvalidationContainer == &containerForPaintInvalidation()
); | 370 // ASSERT(&newPaintInvalidationContainer == &containerForPaintInvalidation()
); |
| 370 | 371 |
| (...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 960 if (rootElementStyle->hasBackground()) | 961 if (rootElementStyle->hasBackground()) |
| 961 return false; | 962 return false; |
| 962 | 963 |
| 963 if (node() != document().firstBodyElement()) | 964 if (node() != document().firstBodyElement()) |
| 964 return false; | 965 return false; |
| 965 | 966 |
| 966 return true; | 967 return true; |
| 967 } | 968 } |
| 968 | 969 |
| 969 } // namespace blink | 970 } // namespace blink |
| OLD | NEW |