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

Side by Side Diff: Source/core/svg/SVGFontFaceElement.cpp

Issue 365673002: Pass a struct to ContainerNode::childrenChanged() instead of separate arguments (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove dead code Created 6 years, 5 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) 2007 Eric Seidel <eric@webkit.org> 2 * Copyright (C) 2007 Eric Seidel <eric@webkit.org>
3 * Copyright (C) 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org> 3 * Copyright (C) 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org>
4 * Copyright (C) 2008 Apple Inc. All rights reserved. 4 * Copyright (C) 2008 Apple Inc. 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 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 if (document().isActive() && document().styleEngine()->fontSelector()) { 336 if (document().isActive() && document().styleEngine()->fontSelector()) {
337 document().styleEngine()->fontSelector()->fontFaceCache()->remove(m_ fontFaceRule.get()); 337 document().styleEngine()->fontSelector()->fontFaceCache()->remove(m_ fontFaceRule.get());
338 document().accessSVGExtensions().registerPendingSVGFontFaceElementsF orRemoval(this); 338 document().accessSVGExtensions().registerPendingSVGFontFaceElementsF orRemoval(this);
339 } 339 }
340 m_fontFaceRule->mutableProperties().clear(); 340 m_fontFaceRule->mutableProperties().clear();
341 document().styleResolverChanged(); 341 document().styleResolverChanged();
342 } else 342 } else
343 ASSERT(!m_fontElement); 343 ASSERT(!m_fontElement);
344 } 344 }
345 345
346 void SVGFontFaceElement::childrenChanged(bool changedByParser, Node* beforeChang e, Node* afterChange, int childCountDelta) 346 void SVGFontFaceElement::childrenChanged(const ChildrenChange& change)
347 { 347 {
348 SVGElement::childrenChanged(changedByParser, beforeChange, afterChange, chil dCountDelta); 348 SVGElement::childrenChanged(change);
349 rebuildFontFace(); 349 rebuildFontFace();
350 } 350 }
351 351
352 void SVGFontFaceElement::trace(Visitor* visitor) 352 void SVGFontFaceElement::trace(Visitor* visitor)
353 { 353 {
354 visitor->trace(m_fontFaceRule); 354 visitor->trace(m_fontFaceRule);
355 visitor->trace(m_fontElement); 355 visitor->trace(m_fontElement);
356 SVGElement::trace(visitor); 356 SVGElement::trace(visitor);
357 } 357 }
358 358
359 } // namespace WebCore 359 } // namespace WebCore
360 360
361 #endif // ENABLE(SVG_FONTS) 361 #endif // ENABLE(SVG_FONTS)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698