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

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

Issue 448063004: Make Element::synchronizeAllAttributes() private (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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 | « no previous file | no next file » | 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 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 294
295 // Only called by the parser immediately after element construction. 295 // Only called by the parser immediately after element construction.
296 void parserSetAttributes(const Vector<Attribute>&); 296 void parserSetAttributes(const Vector<Attribute>&);
297 297
298 // Remove attributes that might introduce scripting from the vector leaving the element unchanged. 298 // Remove attributes that might introduce scripting from the vector leaving the element unchanged.
299 void stripScriptingAttributes(Vector<Attribute>&) const; 299 void stripScriptingAttributes(Vector<Attribute>&) const;
300 300
301 const ElementData* elementData() const { return m_elementData.get(); } 301 const ElementData* elementData() const { return m_elementData.get(); }
302 UniqueElementData& ensureUniqueElementData(); 302 UniqueElementData& ensureUniqueElementData();
303 303
304 void synchronizeAllAttributes() const;
305
306 // Clones attributes only. 304 // Clones attributes only.
307 void cloneAttributesFromElement(const Element&); 305 void cloneAttributesFromElement(const Element&);
308 306
309 // Clones all attribute-derived data, including subclass specifics (through copyNonAttributeProperties.) 307 // Clones all attribute-derived data, including subclass specifics (through copyNonAttributeProperties.)
310 void cloneDataFromElement(const Element&); 308 void cloneDataFromElement(const Element&);
311 309
312 bool hasEquivalentAttributes(const Element* other) const; 310 bool hasEquivalentAttributes(const Element* other) const;
313 311
314 virtual void copyNonAttributePropertiesFromElement(const Element&) { } 312 virtual void copyNonAttributePropertiesFromElement(const Element&) { }
315 313
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
583 // FIXME: Remove the need for Attr to call willModifyAttribute/didModifyAttr ibute. 581 // FIXME: Remove the need for Attr to call willModifyAttribute/didModifyAttr ibute.
584 friend class Attr; 582 friend class Attr;
585 583
586 enum SynchronizationOfLazyAttribute { NotInSynchronizationOfLazyAttribute = 0, InSynchronizationOfLazyAttribute }; 584 enum SynchronizationOfLazyAttribute { NotInSynchronizationOfLazyAttribute = 0, InSynchronizationOfLazyAttribute };
587 585
588 void didAddAttribute(const QualifiedName&, const AtomicString&); 586 void didAddAttribute(const QualifiedName&, const AtomicString&);
589 void willModifyAttribute(const QualifiedName&, const AtomicString& oldValue, const AtomicString& newValue); 587 void willModifyAttribute(const QualifiedName&, const AtomicString& oldValue, const AtomicString& newValue);
590 void didModifyAttribute(const QualifiedName&, const AtomicString&); 588 void didModifyAttribute(const QualifiedName&, const AtomicString&);
591 void didRemoveAttribute(const QualifiedName&); 589 void didRemoveAttribute(const QualifiedName&);
592 590
591 void synchronizeAllAttributes() const;
593 void synchronizeAttribute(const QualifiedName&) const; 592 void synchronizeAttribute(const QualifiedName&) const;
594 593
595 void updateId(const AtomicString& oldId, const AtomicString& newId); 594 void updateId(const AtomicString& oldId, const AtomicString& newId);
596 void updateId(TreeScope&, const AtomicString& oldId, const AtomicString& new Id); 595 void updateId(TreeScope&, const AtomicString& oldId, const AtomicString& new Id);
597 void updateName(const AtomicString& oldName, const AtomicString& newName); 596 void updateName(const AtomicString& oldName, const AtomicString& newName);
598 597
599 virtual NodeType nodeType() const OVERRIDE FINAL; 598 virtual NodeType nodeType() const OVERRIDE FINAL;
600 virtual bool childTypeAllowed(NodeType) const OVERRIDE FINAL; 599 virtual bool childTypeAllowed(NodeType) const OVERRIDE FINAL;
601 600
602 void setAttributeInternal(size_t index, const QualifiedName&, const AtomicSt ring& value, SynchronizationOfLazyAttribute); 601 void setAttributeInternal(size_t index, const QualifiedName&, const AtomicSt ring& value, SynchronizationOfLazyAttribute);
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
859 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) 858 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&)
860 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ 859 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \
861 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document& document) \ 860 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document& document) \
862 { \ 861 { \
863 return adoptRefWillBeNoop(new T(tagName, document)); \ 862 return adoptRefWillBeNoop(new T(tagName, document)); \
864 } 863 }
865 864
866 } // namespace 865 } // namespace
867 866
868 #endif 867 #endif
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698