| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Antti Koivisto (koivisto@kde.org) | 2 * Copyright (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
reserved. | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
reserved. |
| 4 * Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved. | 4 * Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 400 if (diffNeedsPaintInvalidationLayer(other)) | 400 if (diffNeedsPaintInvalidationLayer(other)) |
| 401 diff.setNeedsPaintInvalidationLayer(); | 401 diff.setNeedsPaintInvalidationLayer(); |
| 402 else if (diffNeedsPaintInvalidationObject(other)) | 402 else if (diffNeedsPaintInvalidationObject(other)) |
| 403 diff.setNeedsPaintInvalidationObject(); | 403 diff.setNeedsPaintInvalidationObject(); |
| 404 | 404 |
| 405 updatePropertySpecificDifferences(other, diff); | 405 updatePropertySpecificDifferences(other, diff); |
| 406 | 406 |
| 407 // Cursors are not checked, since they will be set appropriately in response
to mouse events, | 407 // Cursors are not checked, since they will be set appropriately in response
to mouse events, |
| 408 // so they don't need to cause any paint invalidation or layout. | 408 // so they don't need to cause any paint invalidation or layout. |
| 409 | 409 |
| 410 // Animations don't need to be checked either. We always set the new style o
n the RenderObject, so we will get a chance to fire off | 410 // Animations don't need to be checked either. We always set the new style o
n the LayoutObject, so we will get a chance to fire off |
| 411 // the resulting transition properly. | 411 // the resulting transition properly. |
| 412 | 412 |
| 413 return diff; | 413 return diff; |
| 414 } | 414 } |
| 415 | 415 |
| 416 bool RenderStyle::diffNeedsFullLayoutAndPaintInvalidation(const RenderStyle& oth
er) const | 416 bool RenderStyle::diffNeedsFullLayoutAndPaintInvalidation(const RenderStyle& oth
er) const |
| 417 { | 417 { |
| 418 // FIXME: Not all cases in this method need both full layout and paint inval
idation. | 418 // FIXME: Not all cases in this method need both full layout and paint inval
idation. |
| 419 // Should move cases into diffNeedsFullLayout() if | 419 // Should move cases into diffNeedsFullLayout() if |
| 420 // - don't need paint invalidation at all; | 420 // - don't need paint invalidation at all; |
| (...skipping 1241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1662 horizontal || includeLogicalRightEdge); | 1662 horizontal || includeLogicalRightEdge); |
| 1663 | 1663 |
| 1664 edges[BSLeft] = BorderEdge(borderLeftWidth(), | 1664 edges[BSLeft] = BorderEdge(borderLeftWidth(), |
| 1665 visitedDependentColor(CSSPropertyBorderLeftColor), | 1665 visitedDependentColor(CSSPropertyBorderLeftColor), |
| 1666 borderLeftStyle(), | 1666 borderLeftStyle(), |
| 1667 borderLeftIsTransparent(), | 1667 borderLeftIsTransparent(), |
| 1668 !horizontal || includeLogicalLeftEdge); | 1668 !horizontal || includeLogicalLeftEdge); |
| 1669 } | 1669 } |
| 1670 | 1670 |
| 1671 } // namespace blink | 1671 } // namespace blink |
| OLD | NEW |