OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights
reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights
reserved. |
3 * | 3 * |
4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. | 4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. |
5 * | 5 * |
6 * Other contributors: | 6 * Other contributors: |
7 * Robert O'Callahan <roc+@cs.cmu.edu> | 7 * Robert O'Callahan <roc+@cs.cmu.edu> |
8 * David Baron <dbaron@fas.harvard.edu> | 8 * David Baron <dbaron@fas.harvard.edu> |
9 * Christian Biesinger <cbiesinger@web.de> | 9 * Christian Biesinger <cbiesinger@web.de> |
10 * Randall Jesup <rjesup@wgate.com> | 10 * Randall Jesup <rjesup@wgate.com> |
(...skipping 3872 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3883 // If the filter fails to build, remove it from the layer. It will still att
empt to | 3883 // If the filter fails to build, remove it from the layer. It will still att
empt to |
3884 // go through regular processing (e.g. compositing), but never apply anythin
g. | 3884 // go through regular processing (e.g. compositing), but never apply anythin
g. |
3885 if (!filterInfo->renderer()->build(renderer(), computeFilterOperations(rende
rer()->style()))) | 3885 if (!filterInfo->renderer()->build(renderer(), computeFilterOperations(rende
rer()->style()))) |
3886 filterInfo->setRenderer(nullptr); | 3886 filterInfo->setRenderer(nullptr); |
3887 } | 3887 } |
3888 | 3888 |
3889 void RenderLayer::filterNeedsRepaint() | 3889 void RenderLayer::filterNeedsRepaint() |
3890 { | 3890 { |
3891 { | 3891 { |
3892 DeprecatedScheduleStyleRecalcDuringLayout marker(renderer()->document().
lifecycle()); | 3892 DeprecatedScheduleStyleRecalcDuringLayout marker(renderer()->document().
lifecycle()); |
3893 // It's possible for scheduleLayerUpdate to schedule a style recalc, whi
ch | 3893 // It's possible for scheduleSVGFilterLayerUpdateHack to schedule a styl
e recalc, which |
3894 // is a problem because this function can be called while performing lay
out. | 3894 // is a problem because this function can be called while performing lay
out. |
3895 // Presumably this represents an illegal data flow of layout or composit
ing | 3895 // Presumably this represents an illegal data flow of layout or composit
ing |
3896 // information into the style system. | 3896 // information into the style system. |
3897 toElement(renderer()->node())->scheduleLayerUpdate(); | 3897 toElement(renderer()->node())->scheduleSVGFilterLayerUpdateHack(); |
3898 } | 3898 } |
3899 | 3899 |
3900 if (renderer()->view()) { | 3900 if (renderer()->view()) { |
3901 if (RuntimeEnabledFeatures::repaintAfterLayoutEnabled() && renderer()->f
rameView()->isInPerformLayout()) | 3901 if (RuntimeEnabledFeatures::repaintAfterLayoutEnabled() && renderer()->f
rameView()->isInPerformLayout()) |
3902 renderer()->setShouldDoFullPaintInvalidationAfterLayout(true); | 3902 renderer()->setShouldDoFullPaintInvalidationAfterLayout(true); |
3903 else | 3903 else |
3904 renderer()->repaint(); | 3904 renderer()->repaint(); |
3905 } | 3905 } |
3906 } | 3906 } |
3907 | 3907 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3962 } | 3962 } |
3963 } | 3963 } |
3964 | 3964 |
3965 void showLayerTree(const WebCore::RenderObject* renderer) | 3965 void showLayerTree(const WebCore::RenderObject* renderer) |
3966 { | 3966 { |
3967 if (!renderer) | 3967 if (!renderer) |
3968 return; | 3968 return; |
3969 showLayerTree(renderer->enclosingLayer()); | 3969 showLayerTree(renderer->enclosingLayer()); |
3970 } | 3970 } |
3971 #endif | 3971 #endif |
OLD | NEW |