| 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) 2000 Dirk Mueller (mueller@kde.org) | 4 * (C) 2000 Dirk Mueller (mueller@kde.org) |
| 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) | 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) |
| 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv
ed. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv
ed. |
| 7 * Copyright (C) 2009 Google Inc. All rights reserved. | 7 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
| 9 * | 9 * |
| 10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
| (...skipping 1850 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1861 // If transform changed, and the layer does not paint into its own separate
backing, then we need to repaint. | 1861 // If transform changed, and the layer does not paint into its own separate
backing, then we need to repaint. |
| 1862 if (contextSensitiveProperties & ContextSensitivePropertyTransform && !diff.
needsLayout()) { | 1862 if (contextSensitiveProperties & ContextSensitivePropertyTransform && !diff.
needsLayout()) { |
| 1863 // Text nodes share style with their parents but transforms don't apply
to them, | 1863 // Text nodes share style with their parents but transforms don't apply
to them, |
| 1864 // hence the !isText() check. | 1864 // hence the !isText() check. |
| 1865 if (!isText() && (!hasLayer() || !toRenderLayerModelObject(this)->layer(
)->hasDirectReasonsForCompositing())) | 1865 if (!isText() && (!hasLayer() || !toRenderLayerModelObject(this)->layer(
)->hasDirectReasonsForCompositing())) |
| 1866 diff.setNeedsRepaintLayer(); | 1866 diff.setNeedsRepaintLayer(); |
| 1867 else | 1867 else |
| 1868 diff.setNeedsRecompositeLayer(); | 1868 diff.setNeedsRecompositeLayer(); |
| 1869 } | 1869 } |
| 1870 | 1870 |
| 1871 // If opacity or zIndex changed, and the layer does not paint into its own s
eparate backing, then we need to repaint (also | 1871 // If opacity or filters changed, and the layer does not paint into its own
separate backing, then we need to repaint (also |
| 1872 // ignoring text nodes) | 1872 // ignoring text nodes) |
| 1873 if ((contextSensitiveProperties & (ContextSensitivePropertyOpacity | Context
SensitivePropertyZIndex)) && !diff.needsLayout()) { | 1873 if (contextSensitiveProperties & ContextSensitivePropertyOpacity && !diff.ne
edsLayout()) { |
| 1874 if (!isText() && (!hasLayer() || !toRenderLayerModelObject(this)->layer(
)->hasDirectReasonsForCompositing())) | 1874 if (!isText() && (!hasLayer() || !toRenderLayerModelObject(this)->layer(
)->hasDirectReasonsForCompositing())) |
| 1875 diff.setNeedsRepaintLayer(); | 1875 diff.setNeedsRepaintLayer(); |
| 1876 else | 1876 else |
| 1877 diff.setNeedsRecompositeLayer(); | 1877 diff.setNeedsRecompositeLayer(); |
| 1878 } | 1878 } |
| 1879 | 1879 |
| 1880 // If filter changed, and the layer does not paint into its own separate bac
king or it paints with filters, then we need to repaint. | |
| 1881 if ((contextSensitiveProperties & ContextSensitivePropertyFilter) && hasLaye
r() && !diff.needsLayout()) { | 1880 if ((contextSensitiveProperties & ContextSensitivePropertyFilter) && hasLaye
r() && !diff.needsLayout()) { |
| 1882 RenderLayer* layer = toRenderLayerModelObject(this)->layer(); | 1881 RenderLayer* layer = toRenderLayerModelObject(this)->layer(); |
| 1883 if (!layer->hasDirectReasonsForCompositing() || layer->paintsWithFilters
()) | 1882 if (!layer->hasDirectReasonsForCompositing() || layer->paintsWithFilters
()) |
| 1884 diff.setNeedsRepaintLayer(); | 1883 diff.setNeedsRepaintLayer(); |
| 1885 else | 1884 else |
| 1886 diff.setNeedsRecompositeLayer(); | 1885 diff.setNeedsRecompositeLayer(); |
| 1887 } | 1886 } |
| 1888 | 1887 |
| 1889 if ((contextSensitiveProperties & ContextSensitivePropertyTextOrColor) && !d
iff.needsRepaint() && !diff.needsLayout() | 1888 if ((contextSensitiveProperties & ContextSensitivePropertyTextOrColor) && !d
iff.needsRepaint() && !diff.needsLayout() |
| 1890 && hasImmediateNonWhitespaceTextChildOrPropertiesDependentOnColor()) | 1889 && hasImmediateNonWhitespaceTextChildOrPropertiesDependentOnColor()) |
| (...skipping 1509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3400 { | 3399 { |
| 3401 if (object1) { | 3400 if (object1) { |
| 3402 const WebCore::RenderObject* root = object1; | 3401 const WebCore::RenderObject* root = object1; |
| 3403 while (root->parent()) | 3402 while (root->parent()) |
| 3404 root = root->parent(); | 3403 root = root->parent(); |
| 3405 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); | 3404 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); |
| 3406 } | 3405 } |
| 3407 } | 3406 } |
| 3408 | 3407 |
| 3409 #endif | 3408 #endif |
| OLD | NEW |