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

Side by Side Diff: Source/core/layout/svg/LayoutSVGContainer.cpp

Issue 1033943002: Rename LayoutStyle to papayawhip (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: ensureComputedStyle Created 5 years, 8 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2007, 2008 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2007, 2008 Rob Buis <buis@kde.org>
4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> 4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org>
5 * Copyright (C) 2009 Google, Inc. All rights reserved. 5 * Copyright (C) 2009 Google, Inc. All rights reserved.
6 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> 6 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org>
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 if (hadNonIsolatedDescendants) 95 if (hadNonIsolatedDescendants)
96 descendantIsolationRequirementsChanged(DescendantIsolationNeedsUpdate); 96 descendantIsolationRequirementsChanged(DescendantIsolationNeedsUpdate);
97 } 97 }
98 98
99 bool LayoutSVGContainer::selfWillPaint() 99 bool LayoutSVGContainer::selfWillPaint()
100 { 100 {
101 SVGResources* resources = SVGResourcesCache::cachedResourcesForLayoutObject( this); 101 SVGResources* resources = SVGResourcesCache::cachedResourcesForLayoutObject( this);
102 return resources && resources->filter(); 102 return resources && resources->filter();
103 } 103 }
104 104
105 void LayoutSVGContainer::styleDidChange(StyleDifference diff, const LayoutStyle* oldStyle) 105 void LayoutSVGContainer::styleDidChange(StyleDifference diff, const ComputedStyl e* oldStyle)
106 { 106 {
107 LayoutSVGModelObject::styleDidChange(diff, oldStyle); 107 LayoutSVGModelObject::styleDidChange(diff, oldStyle);
108 108
109 bool hadIsolation = oldStyle && !isSVGHiddenContainer() && SVGLayoutSupport: :willIsolateBlendingDescendantsForStyle(*oldStyle); 109 bool hadIsolation = oldStyle && !isSVGHiddenContainer() && SVGLayoutSupport: :willIsolateBlendingDescendantsForStyle(*oldStyle);
110 bool isolationChanged = hadIsolation == !SVGLayoutSupport::willIsolateBlendi ngDescendantsForObject(this); 110 bool isolationChanged = hadIsolation == !SVGLayoutSupport::willIsolateBlendi ngDescendantsForObject(this);
111 111
112 if (!parent() || !isolationChanged) 112 if (!parent() || !isolationChanged)
113 return; 113 return;
114 114
115 if (hasNonIsolatedBlendingDescendants()) 115 if (hasNonIsolatedBlendingDescendants())
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 if (objectBoundingBox().contains(localPoint)) { 185 if (objectBoundingBox().contains(localPoint)) {
186 updateHitTestResult(result, roundedLayoutPoint(localPoint)); 186 updateHitTestResult(result, roundedLayoutPoint(localPoint));
187 return true; 187 return true;
188 } 188 }
189 } 189 }
190 // 16.4: "If there are no graphics elements whose relevant graphics content is under the pointer (i.e., there is no target element), the event is not dispat ched." 190 // 16.4: "If there are no graphics elements whose relevant graphics content is under the pointer (i.e., there is no target element), the event is not dispat ched."
191 return false; 191 return false;
192 } 192 }
193 193
194 } 194 }
OLDNEW
« no previous file with comments | « Source/core/layout/svg/LayoutSVGContainer.h ('k') | Source/core/layout/svg/LayoutSVGEllipse.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698