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

Side by Side Diff: sky/engine/core/dom/Element.h

Issue 732203004: Clean up child checks in ContainerNode. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Add back secondary hierarchy checks. Created 6 years, 1 month 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 | « sky/engine/core/dom/DocumentFragment.cpp ('k') | sky/engine/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 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 enum SynchronizationOfLazyAttribute { NotInSynchronizationOfLazyAttribute = 0, InSynchronizationOfLazyAttribute }; 351 enum SynchronizationOfLazyAttribute { NotInSynchronizationOfLazyAttribute = 0, InSynchronizationOfLazyAttribute };
352 352
353 void willModifyAttribute(const QualifiedName&, const AtomicString& oldValue, const AtomicString& newValue); 353 void willModifyAttribute(const QualifiedName&, const AtomicString& oldValue, const AtomicString& newValue);
354 354
355 void synchronizeAllAttributes() const; 355 void synchronizeAllAttributes() const;
356 356
357 void updateId(const AtomicString& oldId, const AtomicString& newId); 357 void updateId(const AtomicString& oldId, const AtomicString& newId);
358 void updateId(TreeScope&, const AtomicString& oldId, const AtomicString& new Id); 358 void updateId(TreeScope&, const AtomicString& oldId, const AtomicString& new Id);
359 359
360 virtual NodeType nodeType() const override final; 360 virtual NodeType nodeType() const override final;
361 virtual bool childTypeAllowed(NodeType) const override final;
362 361
363 void setAttributeInternal(size_t index, const QualifiedName&, const AtomicSt ring& value, SynchronizationOfLazyAttribute); 362 void setAttributeInternal(size_t index, const QualifiedName&, const AtomicSt ring& value, SynchronizationOfLazyAttribute);
364 void appendAttributeInternal(const QualifiedName&, const AtomicString& value , SynchronizationOfLazyAttribute); 363 void appendAttributeInternal(const QualifiedName&, const AtomicString& value , SynchronizationOfLazyAttribute);
365 void removeAttributeInternal(size_t index, SynchronizationOfLazyAttribute); 364 void removeAttributeInternal(size_t index, SynchronizationOfLazyAttribute);
366 void attributeChangedFromParserOrByCloning(const QualifiedName&, const Atomi cString&, AttributeModificationReason); 365 void attributeChangedFromParserOrByCloning(const QualifiedName&, const Atomi cString&, AttributeModificationReason);
367 366
368 #ifndef NDEBUG 367 #ifndef NDEBUG
369 virtual void formatForDebugger(char* buffer, unsigned length) const override ; 368 virtual void formatForDebugger(char* buffer, unsigned length) const override ;
370 #endif 369 #endif
371 370
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
587 static PassRefPtr<T> create(const QualifiedName&, Document&) 586 static PassRefPtr<T> create(const QualifiedName&, Document&)
588 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ 587 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \
589 PassRefPtr<T> T::create(const QualifiedName& tagName, Document& document) \ 588 PassRefPtr<T> T::create(const QualifiedName& tagName, Document& document) \
590 { \ 589 { \
591 return adoptRef(new T(tagName, document)); \ 590 return adoptRef(new T(tagName, document)); \
592 } 591 }
593 592
594 } // namespace 593 } // namespace
595 594
596 #endif // Element_h 595 #endif // Element_h
OLDNEW
« no previous file with comments | « sky/engine/core/dom/DocumentFragment.cpp ('k') | sky/engine/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698