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

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

Issue 669153002: Relocate markForLayoutAndParentResourceInvalidation (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Dependency reduction/possibly clearer API. Created 6 years, 2 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/SVGEllipseElement.cpp » ('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 942 matching lines...) Expand 10 before | Expand all | Expand 10 after
953 953
954 return svgRareData()->overrideComputedStyle(this, parentStyle); 954 return svgRareData()->overrideComputedStyle(this, parentStyle);
955 } 955 }
956 956
957 bool SVGElement::hasFocusEventListeners() const 957 bool SVGElement::hasFocusEventListeners() const
958 { 958 {
959 return hasEventListeners(EventTypeNames::focusin) || hasEventListeners(Event TypeNames::focusout) 959 return hasEventListeners(EventTypeNames::focusin) || hasEventListeners(Event TypeNames::focusout)
960 || hasEventListeners(EventTypeNames::focus) || hasEventListeners(EventTy peNames::blur); 960 || hasEventListeners(EventTypeNames::focus) || hasEventListeners(EventTy peNames::blur);
961 } 961 }
962 962
963 void SVGElement::markForLayoutAndParentResourceInvalidation(RenderObject* render er)
964 {
965 ASSERT(renderer);
966 // FIXME: Hoist setNeedsLayoutAndFullPaintInvalidation out of thw below.
fs 2014/10/22 15:08:56 Oops, had intended to remove this... Will do that
967 RenderSVGResourceContainer::markForLayoutAndParentResourceInvalidation(rende rer, true);
968 }
969
963 void SVGElement::invalidateInstances() 970 void SVGElement::invalidateInstances()
964 { 971 {
965 if (!inDocument()) 972 if (!inDocument())
966 return; 973 return;
967 974
968 if (instanceUpdatesBlocked()) 975 if (instanceUpdatesBlocked())
969 return; 976 return;
970 977
971 const WillBeHeapHashSet<RawPtrWillBeWeakMember<SVGElement> >& set = instance sForElement(); 978 const WillBeHeapHashSet<RawPtrWillBeWeakMember<SVGElement> >& set = instance sForElement();
972 if (set.isEmpty()) 979 if (set.isEmpty())
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
1185 Element::trace(visitor); 1192 Element::trace(visitor);
1186 } 1193 }
1187 1194
1188 const AtomicString& SVGElement::eventParameterName() 1195 const AtomicString& SVGElement::eventParameterName()
1189 { 1196 {
1190 DEFINE_STATIC_LOCAL(const AtomicString, evtString, ("evt", AtomicString::Con structFromLiteral)); 1197 DEFINE_STATIC_LOCAL(const AtomicString, evtString, ("evt", AtomicString::Con structFromLiteral));
1191 return evtString; 1198 return evtString;
1192 } 1199 }
1193 1200
1194 } // namespace blink 1201 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/svg/SVGElement.h ('k') | Source/core/svg/SVGEllipseElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698