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

Side by Side Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceContainer.cpp

Issue 1987943002: [wip] unprefix filter Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix animation blur filter test, move it into LayoutTests/animations. Created 4 years, 7 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 2 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 244
245 // If the client has a layer (is a non-SVGElement) we need to signal 245 // If the client has a layer (is a non-SVGElement) we need to signal
246 // invalidation in the same way as is done in markAllResourceClientsForI nvalidation above. 246 // invalidation in the same way as is done in markAllResourceClientsForI nvalidation above.
247 if (layoutObject->hasLayer() && resourceType() == FilterResourceType) { 247 if (layoutObject->hasLayer() && resourceType() == FilterResourceType) {
248 if (style.hasFilter()) 248 if (style.hasFilter())
249 toLayoutBoxModelObject(layoutObject)->layer()->filterNeedsPaintI nvalidation(); 249 toLayoutBoxModelObject(layoutObject)->layer()->filterNeedsPaintI nvalidation();
250 // If this is the SVG root, we could have both 'filter' and 250 // If this is the SVG root, we could have both 'filter' and
251 // '-webkit-filter' applied, so we need to do the invalidation 251 // '-webkit-filter' applied, so we need to do the invalidation
252 // below as well, unless we can optimistically determine that 252 // below as well, unless we can optimistically determine that
253 // 'filter' does not apply to the element in question. 253 // 'filter' does not apply to the element in question.
254 if (!layoutObject->isSVGRoot() || !style.svgStyle().hasFilter()) 254 // FIXME: resolve what TODO about the above comment, investigate
255 // who added it and why.
Noel Gordon 2016/05/23 03:28:24 Deal with this FIXME. Two layout tests fail if I
256 if (!layoutObject->isSVGRoot() || !style.hasFilter())
255 continue; 257 continue;
256 } 258 }
257 259
258 StyleDifference diff; 260 StyleDifference diff;
259 diff.setNeedsFullLayout(); 261 diff.setNeedsFullLayout();
260 SVGResourcesCache::clientStyleChanged(layoutObject, diff, style); 262 SVGResourcesCache::clientStyleChanged(layoutObject, diff, style);
261 layoutObject->setNeedsLayoutAndFullPaintInvalidation(LayoutInvalidationR eason::SvgResourceInvalidated); 263 layoutObject->setNeedsLayoutAndFullPaintInvalidation(LayoutInvalidationR eason::SvgResourceInvalidated);
262 } 264 }
263 } 265 }
264 266
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 // This will process the rest of the ancestors. 323 // This will process the rest of the ancestors.
322 toLayoutSVGResourceContainer(current)->removeAllClientsFromCache(); 324 toLayoutSVGResourceContainer(current)->removeAllClientsFromCache();
323 break; 325 break;
324 } 326 }
325 327
326 current = current->parent(); 328 current = current->parent();
327 } 329 }
328 } 330 }
329 331
330 } // namespace blink 332 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/UseCounter.cpp ('k') | third_party/WebKit/Source/core/layout/svg/SVGLayoutSupport.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698