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

Side by Side Diff: third_party/WebKit/Source/core/dom/Element.cpp

Issue 2037323002: Make SVGLength store a const CSSValue (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@_make_parser_addProperty_take_const
Patch Set: Rebase Created 4 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Peter Kelly (pmk@post.com) 4 * (C) 2001 Peter Kelly (pmk@post.com)
5 * (C) 2001 Dirk Mueller (mueller@kde.org) 5 * (C) 2001 Dirk Mueller (mueller@kde.org)
6 * (C) 2007 David Smith (catfish.man@gmail.com) 6 * (C) 2007 David Smith (catfish.man@gmail.com)
7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc. All rights reserved. 7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc. All rights reserved.
8 * (C) 2007 Eric Seidel (eric@webkit.org) 8 * (C) 2007 Eric Seidel (eric@webkit.org)
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 3618 matching lines...) Expand 10 before | Expand all | Expand 10 after
3629 DCHECK(isStyledElement()); 3629 DCHECK(isStyledElement());
3630 style->setProperty(propertyID, CSSPrimitiveValue::create(value, unit)); 3630 style->setProperty(propertyID, CSSPrimitiveValue::create(value, unit));
3631 } 3631 }
3632 3632
3633 void Element::addPropertyToPresentationAttributeStyle(MutableStylePropertySet* s tyle, CSSPropertyID propertyID, const String& value) 3633 void Element::addPropertyToPresentationAttributeStyle(MutableStylePropertySet* s tyle, CSSPropertyID propertyID, const String& value)
3634 { 3634 {
3635 DCHECK(isStyledElement()); 3635 DCHECK(isStyledElement());
3636 style->setProperty(propertyID, value, false); 3636 style->setProperty(propertyID, value, false);
3637 } 3637 }
3638 3638
3639 void Element::addPropertyToPresentationAttributeStyle(MutableStylePropertySet* style, CSSPropertyID propertyID, CSSValue* value) 3639 void Element::addPropertyToPresentationAttributeStyle(MutableStylePropertySet* s tyle, CSSPropertyID propertyID, const CSSValue* value)
3640 { 3640 {
3641 DCHECK(isStyledElement()); 3641 DCHECK(isStyledElement());
3642 style->setProperty(propertyID, value); 3642 style->setProperty(propertyID, value);
3643 } 3643 }
3644 3644
3645 bool Element::supportsStyleSharing() const 3645 bool Element::supportsStyleSharing() const
3646 { 3646 {
3647 if (!isStyledElement() || !parentOrShadowHostElement()) 3647 if (!isStyledElement() || !parentOrShadowHostElement())
3648 return false; 3648 return false;
3649 // If the element has inline style it is probably unique. 3649 // If the element has inline style it is probably unique.
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
3743 3743
3744 DEFINE_TRACE_WRAPPERS(Element) 3744 DEFINE_TRACE_WRAPPERS(Element)
3745 { 3745 {
3746 if (hasRareData()) { 3746 if (hasRareData()) {
3747 visitor->traceWrappers(elementRareData()); 3747 visitor->traceWrappers(elementRareData());
3748 } 3748 }
3749 ContainerNode::traceWrappers(visitor); 3749 ContainerNode::traceWrappers(visitor);
3750 } 3750 }
3751 3751
3752 } // namespace blink 3752 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Element.h ('k') | third_party/WebKit/Source/core/svg/SVGLength.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698