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

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

Issue 1481123002: Use SVGLength's wrapped CSSPrimitiveValue for pres.attr. style (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 529 matching lines...) Expand 10 before | Expand all | Expand 10 after
540 540
541 protected: 541 protected:
542 Element(const QualifiedName& tagName, Document*, ConstructionType); 542 Element(const QualifiedName& tagName, Document*, ConstructionType);
543 543
544 const ElementData* elementData() const { return m_elementData.get(); } 544 const ElementData* elementData() const { return m_elementData.get(); }
545 UniqueElementData& ensureUniqueElementData(); 545 UniqueElementData& ensureUniqueElementData();
546 546
547 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr opertyID, CSSValueID identifier); 547 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr opertyID, CSSValueID identifier);
548 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr opertyID, double value, CSSPrimitiveValue::UnitType); 548 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr opertyID, double value, CSSPrimitiveValue::UnitType);
549 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr opertyID, const String& value); 549 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr opertyID, const String& value);
550 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr opertyID, PassRefPtrWillBeRawPtr<CSSValue>);
550 551
551 InsertionNotificationRequest insertedInto(ContainerNode*) override; 552 InsertionNotificationRequest insertedInto(ContainerNode*) override;
552 void removedFrom(ContainerNode*) override; 553 void removedFrom(ContainerNode*) override;
553 void childrenChanged(const ChildrenChange&) override; 554 void childrenChanged(const ChildrenChange&) override;
554 555
555 virtual void willRecalcStyle(StyleRecalcChange); 556 virtual void willRecalcStyle(StyleRecalcChange);
556 virtual void didRecalcStyle(StyleRecalcChange); 557 virtual void didRecalcStyle(StyleRecalcChange);
557 virtual PassRefPtr<ComputedStyle> customStyleForLayoutObject(); 558 virtual PassRefPtr<ComputedStyle> customStyleForLayoutObject();
558 559
559 virtual bool shouldRegisterAsNamedItem() const { return false; } 560 virtual bool shouldRegisterAsNamedItem() const { return false; }
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
919 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) 920 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&)
920 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ 921 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \
921 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document& document) \ 922 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document& document) \
922 { \ 923 { \
923 return adoptRefWillBeNoop(new T(tagName, document)); \ 924 return adoptRefWillBeNoop(new T(tagName, document)); \
924 } 925 }
925 926
926 } // namespace 927 } // namespace
927 928
928 #endif // Element_h 929 #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