Changeset 149560 in webkit
- Timestamp:
- May 4, 2013 9:29:05 AM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r149559 r149560 1 2013-05-04 Andreas Kling <akling@apple.com> 2 3 Remove ShadowRoot's previous/next ShadowRoot pointers. 4 <http://webkit.org/b/115588> 5 6 Reviewed by Anders Carlsson. 7 8 ShadowRoot no longer inherits from DoublyLinkedListNode<ShadowRoot> because that code wasn't 9 doing anything anymore. Shrinks ShadowRoot by two pointers. 10 11 * dom/ElementShadow.h: 12 * dom/ShadowRoot.cpp: 13 (SameSizeAsShadowRoot): 14 (WebCore::ShadowRoot::ShadowRoot): 15 (WebCore::ShadowRoot::~ShadowRoot): 16 * dom/ShadowRoot.h: 17 1 18 2013-05-04 Andreas Kling <akling@apple.com> 2 19 -
trunk/Source/WebCore/dom/ElementShadow.h
r149549 r149560 31 31 #include "ExceptionCode.h" 32 32 #include "ShadowRoot.h" 33 #include <wtf/DoublyLinkedList.h>34 33 #include <wtf/Noncopyable.h> 35 34 #include <wtf/PassOwnPtr.h> -
trunk/Source/WebCore/dom/ShadowRoot.cpp
r149549 r149560 39 39 namespace WebCore { 40 40 41 struct SameSizeAsShadowRoot : public DocumentFragment, public TreeScope , public DoublyLinkedListNode<ShadowRoot>{42 void* pointers[ 3];41 struct SameSizeAsShadowRoot : public DocumentFragment, public TreeScope { 42 void* pointers[1]; 43 43 unsigned countersAndFlags[1]; 44 44 }; … … 55 55 : DocumentFragment(0, CreateShadowRoot) 56 56 , TreeScope(this, document) 57 , m_prev(0)58 , m_next(0)59 57 , m_numberOfStyles(0) 60 58 , m_applyAuthorStyles(false) … … 68 66 ShadowRoot::~ShadowRoot() 69 67 { 70 ASSERT(!m_prev);71 ASSERT(!m_next);72 73 68 // We cannot let ContainerNode destructor call willBeDeletedFrom() 74 69 // for this ShadowRoot instance because TreeScope destructor -
trunk/Source/WebCore/dom/ShadowRoot.h
r149549 r149560 34 34 #include "ExceptionCode.h" 35 35 #include "TreeScope.h" 36 #include <wtf/DoublyLinkedList.h>37 36 38 37 namespace WebCore { … … 103 102 bool isOrphan() const { return !host(); } 104 103 105 ShadowRoot* m_prev;106 ShadowRoot* m_next;107 104 OwnPtr<ScopeContentDistribution> m_scopeDistribution; 108 105 unsigned m_numberOfStyles : 28;
Note: See TracChangeset
for help on using the changeset viewer.