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

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

Issue 15821009: Move property setting/removing/addParsedProperty/addParsedProperties functions to MutableStylePrope… (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 7 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
« no previous file with comments | « Source/core/svg/SVGElement.h ('k') | Source/core/svg/SVGElementRareData.h » ('j') | 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) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde .org> 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde .org>
3 * Copyright (C) 2004, 2005, 2006, 2008 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2008 Rob Buis <buis@kde.org>
4 * Copyright (C) 2008 Apple Inc. All rights reserved. 4 * Copyright (C) 2008 Apple Inc. All rights reserved.
5 * Copyright (C) 2008 Alp Toker <alp@atoker.com> 5 * Copyright (C) 2008 Alp Toker <alp@atoker.com>
6 * Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au> 6 * Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au>
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 579 matching lines...) Expand 10 before | Expand all | Expand 10 after
590 590
591 RenderStyle* style = 0; 591 RenderStyle* style = 0;
592 if (Element* parent = parentOrShadowHostElement()) { 592 if (Element* parent = parentOrShadowHostElement()) {
593 if (RenderObject* renderer = parent->renderer()) 593 if (RenderObject* renderer = parent->renderer())
594 style = renderer->style(); 594 style = renderer->style();
595 } 595 }
596 596
597 return document()->styleResolver()->styleForElement(correspondingElement(), style, DisallowStyleSharing); 597 return document()->styleResolver()->styleForElement(correspondingElement(), style, DisallowStyleSharing);
598 } 598 }
599 599
600 StylePropertySet* SVGElement::animatedSMILStyleProperties() const 600 MutableStylePropertySet* SVGElement::animatedSMILStyleProperties() const
601 { 601 {
602 if (hasSVGRareData()) 602 if (hasSVGRareData())
603 return svgRareData()->animatedSMILStyleProperties(); 603 return svgRareData()->animatedSMILStyleProperties();
604 return 0; 604 return 0;
605 } 605 }
606 606
607 StylePropertySet* SVGElement::ensureAnimatedSMILStyleProperties() 607 MutableStylePropertySet* SVGElement::ensureAnimatedSMILStyleProperties()
608 { 608 {
609 return ensureSVGRareData()->ensureAnimatedSMILStyleProperties(); 609 return ensureSVGRareData()->ensureAnimatedSMILStyleProperties();
610 } 610 }
611 611
612 void SVGElement::setUseOverrideComputedStyle(bool value) 612 void SVGElement::setUseOverrideComputedStyle(bool value)
613 { 613 {
614 if (hasSVGRareData()) 614 if (hasSVGRareData())
615 svgRareData()->setUseOverrideComputedStyle(value); 615 svgRareData()->setUseOverrideComputedStyle(value);
616 } 616 }
617 617
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
731 } 731 }
732 732
733 if (name == classAttr) 733 if (name == classAttr)
734 return isSVGStyledElement(); 734 return isSVGStyledElement();
735 735
736 return animatableAttributes.contains(name); 736 return animatableAttributes.contains(name);
737 } 737 }
738 #endif 738 #endif
739 739
740 } 740 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGElement.h ('k') | Source/core/svg/SVGElementRareData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698