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

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

Issue 2401343002: Tracking filter mutation via SVGElementProxy (Closed)
Patch Set: Rebase Created 4 years, 2 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) 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 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 // FIXME: We should call a specialized version of this function. 290 // FIXME: We should call a specialized version of this function.
291 layer()->updateLayerPositionsAfterLayout(); 291 layer()->updateLayerPositionsAfterLayout();
292 } 292 }
293 } 293 }
294 } else if (layer() && layer()->parent()) { 294 } else if (layer() && layer()->parent()) {
295 PaintLayer* parentLayer = layer()->parent(); 295 PaintLayer* parentLayer = layer()->parent();
296 // Either a transform wasn't specified or the object doesn't support 296 // Either a transform wasn't specified or the object doesn't support
297 // transforms, so just null out the bit. 297 // transforms, so just null out the bit.
298 setHasTransformRelatedProperty(false); 298 setHasTransformRelatedProperty(false);
299 setHasReflection(false); 299 setHasReflection(false);
300 layer()->updateFilters(oldStyle, styleRef());
300 // Calls destroyLayer() which clears m_layer. 301 // Calls destroyLayer() which clears m_layer.
301 layer()->removeOnlyThisLayerAfterStyleChange(); 302 layer()->removeOnlyThisLayerAfterStyleChange();
302 if (wasFloatingBeforeStyleChanged && isFloating()) 303 if (wasFloatingBeforeStyleChanged && isFloating())
303 setChildNeedsLayout(); 304 setChildNeedsLayout();
304 if (hadTransform) 305 if (hadTransform)
305 setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation( 306 setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation(
306 LayoutInvalidationReason::StyleChange); 307 LayoutInvalidationReason::StyleChange);
307 if (!needsLayout()) { 308 if (!needsLayout()) {
308 // FIXME: We should call a specialized version of this function. 309 // FIXME: We should call a specialized version of this function.
309 parentLayer->updateLayerPositionsAfterLayout(); 310 parentLayer->updateLayerPositionsAfterLayout();
(...skipping 1076 matching lines...) Expand 10 before | Expand all | Expand 10 after
1386 if (rootElementStyle->hasBackground()) 1387 if (rootElementStyle->hasBackground())
1387 return false; 1388 return false;
1388 1389
1389 if (node() != document().firstBodyElement()) 1390 if (node() != document().firstBodyElement())
1390 return false; 1391 return false;
1391 1392
1392 return true; 1393 return true;
1393 } 1394 }
1394 1395
1395 } // namespace blink 1396 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698