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

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

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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Element.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) 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 * Copyright (C) 2003-2011, 2013, 2014 Apple Inc. All rights reserved. 6 * Copyright (C) 2003-2011, 2013, 2014 Apple Inc. All rights reserved.
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 569 matching lines...) Expand 10 before | Expand all | Expand 10 after
580 580
581 protected: 581 protected:
582 Element(const QualifiedName& tagName, Document*, ConstructionType); 582 Element(const QualifiedName& tagName, Document*, ConstructionType);
583 583
584 const ElementData* elementData() const { return m_elementData.get(); } 584 const ElementData* elementData() const { return m_elementData.get(); }
585 UniqueElementData& ensureUniqueElementData(); 585 UniqueElementData& ensureUniqueElementData();
586 586
587 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr opertyID, CSSValueID identifier); 587 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr opertyID, CSSValueID identifier);
588 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr opertyID, double value, CSSPrimitiveValue::UnitType); 588 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr opertyID, double value, CSSPrimitiveValue::UnitType);
589 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr opertyID, const String& value); 589 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr opertyID, const String& value);
590 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr opertyID, CSSValue*); 590 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr opertyID, const CSSValue*);
591 591
592 InsertionNotificationRequest insertedInto(ContainerNode*) override; 592 InsertionNotificationRequest insertedInto(ContainerNode*) override;
593 void removedFrom(ContainerNode*) override; 593 void removedFrom(ContainerNode*) override;
594 void childrenChanged(const ChildrenChange&) override; 594 void childrenChanged(const ChildrenChange&) override;
595 595
596 virtual void willRecalcStyle(StyleRecalcChange); 596 virtual void willRecalcStyle(StyleRecalcChange);
597 virtual void didRecalcStyle(StyleRecalcChange); 597 virtual void didRecalcStyle(StyleRecalcChange);
598 virtual PassRefPtr<ComputedStyle> customStyleForLayoutObject(); 598 virtual PassRefPtr<ComputedStyle> customStyleForLayoutObject();
599 599
600 virtual bool shouldRegisterAsNamedItem() const { return false; } 600 virtual bool shouldRegisterAsNamedItem() const { return false; }
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
968 static T* create(const QualifiedName&, Document&) 968 static T* create(const QualifiedName&, Document&)
969 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ 969 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \
970 T* T::create(const QualifiedName& tagName, Document& document) \ 970 T* T::create(const QualifiedName& tagName, Document& document) \
971 { \ 971 { \
972 return new T(tagName, document); \ 972 return new T(tagName, document); \
973 } 973 }
974 974
975 } // namespace blink 975 } // namespace blink
976 976
977 #endif // Element_h 977 #endif // Element_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698