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

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

Issue 1553473002: Fix SVG {text, foreignObject} transform for css animation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
« no previous file with comments | « third_party/WebKit/LayoutTests/svg/repaint/transform-text-element-expected.txt ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006 Apple Computer, Inc. 2 * Copyright (C) 2006 Apple Computer, Inc.
3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> 3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org>
4 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 4 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 } 61 }
62 62
63 void LayoutSVGBlock::willBeDestroyed() 63 void LayoutSVGBlock::willBeDestroyed()
64 { 64 {
65 SVGResourcesCache::clientDestroyed(this); 65 SVGResourcesCache::clientDestroyed(this);
66 LayoutBlockFlow::willBeDestroyed(); 66 LayoutBlockFlow::willBeDestroyed();
67 } 67 }
68 68
69 void LayoutSVGBlock::styleDidChange(StyleDifference diff, const ComputedStyle* o ldStyle) 69 void LayoutSVGBlock::styleDidChange(StyleDifference diff, const ComputedStyle* o ldStyle)
70 { 70 {
71 if (diff.needsFullLayout()) 71 if (diff.needsFullLayout()) {
72 setNeedsBoundariesUpdate(); 72 setNeedsBoundariesUpdate();
73 if (style()->hasTransform())
74 setNeedsTransformUpdate();
75 }
73 76
74 if (isBlendingAllowed()) { 77 if (isBlendingAllowed()) {
75 bool hasBlendModeChanged = (oldStyle && oldStyle->hasBlendMode()) == !st yle()->hasBlendMode(); 78 bool hasBlendModeChanged = (oldStyle && oldStyle->hasBlendMode()) == !st yle()->hasBlendMode();
76 if (parent() && hasBlendModeChanged) 79 if (parent() && hasBlendModeChanged)
77 parent()->descendantIsolationRequirementsChanged(style()->hasBlendMo de() ? DescendantIsolationRequired : DescendantIsolationNeedsUpdate); 80 parent()->descendantIsolationRequirementsChanged(style()->hasBlendMo de() ? DescendantIsolationRequired : DescendantIsolationNeedsUpdate);
78 } 81 }
79 82
80 LayoutBlock::styleDidChange(diff, oldStyle); 83 LayoutBlock::styleDidChange(diff, oldStyle);
81 SVGResourcesCache::clientStyleChanged(this, diff, styleRef()); 84 SVGResourcesCache::clientStyleChanged(this, diff, styleRef());
82 } 85 }
(...skipping 29 matching lines...) Expand all
112 void LayoutSVGBlock::invalidateTreeIfNeeded(PaintInvalidationState& paintInvalid ationState) 115 void LayoutSVGBlock::invalidateTreeIfNeeded(PaintInvalidationState& paintInvalid ationState)
113 { 116 {
114 if (!shouldCheckForPaintInvalidation(paintInvalidationState)) 117 if (!shouldCheckForPaintInvalidation(paintInvalidationState))
115 return; 118 return;
116 119
117 ForceHorriblySlowRectMapping slowRectMapping(&paintInvalidationState); 120 ForceHorriblySlowRectMapping slowRectMapping(&paintInvalidationState);
118 LayoutBlockFlow::invalidateTreeIfNeeded(paintInvalidationState); 121 LayoutBlockFlow::invalidateTreeIfNeeded(paintInvalidationState);
119 } 122 }
120 123
121 } 124 }
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/svg/repaint/transform-text-element-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698