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

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

Issue 2490163002: Reland of "Tracking reference filter mutation via SVGElementProxy" (Closed)
Patch Set: Fix double observer unregistration; simplify scope selection; add tests Created 4 years, 1 month 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) 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) 2005 Allan Sandfeld Jensen (kde@carewolf.com) 4 * (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com)
5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com) 5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com)
6 * Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
7 * Copyright (C) 2010 Google Inc. All rights reserved. 7 * Copyright (C) 2010 Google Inc. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 // FIXME: We should call a specialized version of this function. 289 // FIXME: We should call a specialized version of this function.
290 layer()->updateLayerPositionsAfterLayout(); 290 layer()->updateLayerPositionsAfterLayout();
291 } 291 }
292 } 292 }
293 } else if (layer() && layer()->parent()) { 293 } else if (layer() && layer()->parent()) {
294 PaintLayer* parentLayer = layer()->parent(); 294 PaintLayer* parentLayer = layer()->parent();
295 // Either a transform wasn't specified or the object doesn't support 295 // Either a transform wasn't specified or the object doesn't support
296 // transforms, so just null out the bit. 296 // transforms, so just null out the bit.
297 setHasTransformRelatedProperty(false); 297 setHasTransformRelatedProperty(false);
298 setHasReflection(false); 298 setHasReflection(false);
299 layer()->updateFilters(oldStyle, styleRef());
299 // Calls destroyLayer() which clears m_layer. 300 // Calls destroyLayer() which clears m_layer.
300 layer()->removeOnlyThisLayerAfterStyleChange(); 301 layer()->removeOnlyThisLayerAfterStyleChange();
301 if (wasFloatingBeforeStyleChanged && isFloating()) 302 if (wasFloatingBeforeStyleChanged && isFloating())
302 setChildNeedsLayout(); 303 setChildNeedsLayout();
303 if (hadTransform) 304 if (hadTransform)
304 setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation( 305 setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation(
305 LayoutInvalidationReason::StyleChange); 306 LayoutInvalidationReason::StyleChange);
306 if (!needsLayout()) { 307 if (!needsLayout()) {
307 // FIXME: We should call a specialized version of this function. 308 // FIXME: We should call a specialized version of this function.
308 parentLayer->updateLayerPositionsAfterLayout(); 309 parentLayer->updateLayerPositionsAfterLayout();
(...skipping 1030 matching lines...) Expand 10 before | Expand all | Expand 10 after
1339 if (rootElementStyle->hasBackground()) 1340 if (rootElementStyle->hasBackground())
1340 return false; 1341 return false;
1341 1342
1342 if (node() != document().firstBodyElement()) 1343 if (node() != document().firstBodyElement())
1343 return false; 1344 return false;
1344 1345
1345 return true; 1346 return true;
1346 } 1347 }
1347 1348
1348 } // namespace blink 1349 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameView.cpp ('k') | third_party/WebKit/Source/core/layout/svg/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698