Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Side by Side Diff: Source/core/rendering/RenderLayerFilterInfo.cpp

Issue 478433002: Avoid RenderObject::paintInvalidationForWholeRenderer() if possible (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: TestExpectations Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/rendering/RenderLayer.cpp ('k') | Source/core/rendering/RenderListMarker.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Adobe Systems Incorporated. All rights reserved. 2 * Copyright (C) 2012 Adobe Systems Incorporated. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above 8 * 1. Redistributions of source code must retain the above
9 * copyright notice, this list of conditions and the following 9 * copyright notice, this list of conditions and the following
10 * disclaimer. 10 * disclaimer.
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 } 102 }
103 103
104 void RenderLayerFilterInfo::notifyFinished(Resource*) 104 void RenderLayerFilterInfo::notifyFinished(Resource*)
105 { 105 {
106 RenderObject* renderer = m_layer->renderer(); 106 RenderObject* renderer = m_layer->renderer();
107 // FIXME: This caller of scheduleSVGFilterLayerUpdateHack() is not correct. It's using the layer update 107 // FIXME: This caller of scheduleSVGFilterLayerUpdateHack() is not correct. It's using the layer update
108 // system to trigger a RenderLayer to go through the filter updating logic, but that might not 108 // system to trigger a RenderLayer to go through the filter updating logic, but that might not
109 // even happen if this element is style sharing and RenderObject::setStyle() returns early. 109 // even happen if this element is style sharing and RenderObject::setStyle() returns early.
110 // Filters need to find a better way to hook into the system. 110 // Filters need to find a better way to hook into the system.
111 toElement(renderer->node())->scheduleSVGFilterLayerUpdateHack(); 111 toElement(renderer->node())->scheduleSVGFilterLayerUpdateHack();
112 renderer->paintInvalidationForWholeRenderer(); 112 renderer->setShouldDoFullPaintInvalidation(true);
113 } 113 }
114 114
115 void RenderLayerFilterInfo::updateReferenceFilterClients(const FilterOperations& operations) 115 void RenderLayerFilterInfo::updateReferenceFilterClients(const FilterOperations& operations)
116 { 116 {
117 removeReferenceFilterClients(); 117 removeReferenceFilterClients();
118 for (size_t i = 0; i < operations.size(); ++i) { 118 for (size_t i = 0; i < operations.size(); ++i) {
119 RefPtr<FilterOperation> filterOperation = operations.operations().at(i); 119 RefPtr<FilterOperation> filterOperation = operations.operations().at(i);
120 if (filterOperation->type() != FilterOperation::REFERENCE) 120 if (filterOperation->type() != FilterOperation::REFERENCE)
121 continue; 121 continue;
122 ReferenceFilterOperation* referenceFilterOperation = toReferenceFilterOp eration(filterOperation.get()); 122 ReferenceFilterOperation* referenceFilterOperation = toReferenceFilterOp eration(filterOperation.get());
(...skipping 29 matching lines...) Expand all
152 if (filter->renderer()) 152 if (filter->renderer())
153 toRenderSVGResourceContainer(filter->renderer())->removeClientRender Layer(m_layer); 153 toRenderSVGResourceContainer(filter->renderer())->removeClientRender Layer(m_layer);
154 else 154 else
155 toSVGFilterElement(filter)->removeClient(m_layer->renderer()->node() ); 155 toSVGFilterElement(filter)->removeClient(m_layer->renderer()->node() );
156 } 156 }
157 m_internalSVGReferences.clear(); 157 m_internalSVGReferences.clear();
158 } 158 }
159 159
160 } // namespace blink 160 } // namespace blink
161 161
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderLayer.cpp ('k') | Source/core/rendering/RenderListMarker.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698