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

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

Issue 2484153003: Use an SVGElementProxy in ReferenceClipPathOperation (Closed)
Patch Set: Rebase; fix comments; findElement 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 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 layer()->updateFilters(oldStyle, styleRef());
300 layer()->updateClipPath(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 1018 matching lines...) Expand 10 before | Expand all | Expand 10 after
1328 if (rootElementStyle->hasBackground()) 1329 if (rootElementStyle->hasBackground())
1329 return false; 1330 return false;
1330 1331
1331 if (node() != document().firstBodyElement()) 1332 if (node() != document().firstBodyElement())
1332 return false; 1333 return false;
1333 1334
1334 return true; 1335 return true;
1335 } 1336 }
1336 1337
1337 } // namespace blink 1338 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698