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

Side by Side Diff: third_party/WebKit/Source/core/dom/ElementRareData.cpp

Issue 2050463003: Check if Member owner thread matches pointer thread and current thread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 4 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutObject.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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 24 matching lines...) Expand all
35 #include "core/observer/ResizeObservation.h" 35 #include "core/observer/ResizeObservation.h"
36 #include "core/observer/ResizeObserver.h" 36 #include "core/observer/ResizeObserver.h"
37 #include "core/style/ComputedStyle.h" 37 #include "core/style/ComputedStyle.h"
38 38
39 namespace blink { 39 namespace blink {
40 40
41 struct SameSizeAsElementRareData : NodeRareData { 41 struct SameSizeAsElementRareData : NodeRareData {
42 short indices[1]; 42 short indices[1];
43 LayoutSize sizeForResizing; 43 LayoutSize sizeForResizing;
44 IntSize scrollOffset; 44 IntSize scrollOffset;
45 void* pointers[10]; 45 void* pointers[2];
46 Member<void*> persistentMember[5]; 46 Member<void*> members[13];
47 }; 47 };
48 48
49 CSSStyleDeclaration& ElementRareData::ensureInlineCSSStyleDeclaration(Element* o wnerElement) 49 CSSStyleDeclaration& ElementRareData::ensureInlineCSSStyleDeclaration(Element* o wnerElement)
50 { 50 {
51 if (!m_cssomWrapper) 51 if (!m_cssomWrapper)
52 m_cssomWrapper = new InlineCSSStyleDeclaration(ownerElement); 52 m_cssomWrapper = new InlineCSSStyleDeclaration(ownerElement);
53 return *m_cssomWrapper; 53 return *m_cssomWrapper;
54 } 54 }
55 55
56 InlineStylePropertyMap& ElementRareData::ensureInlineStylePropertyMap(Element* o wnerElement) 56 InlineStylePropertyMap& ElementRareData::ensureInlineStylePropertyMap(Element* o wnerElement)
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 visitor->traceWrappers(m_attributeMap); 104 visitor->traceWrappers(m_attributeMap);
105 visitor->traceWrappers(m_dataset); 105 visitor->traceWrappers(m_dataset);
106 visitor->traceWrappers(m_classList); 106 visitor->traceWrappers(m_classList);
107 visitor->traceWrappers(m_intersectionObserverData); 107 visitor->traceWrappers(m_intersectionObserverData);
108 NodeRareData::traceWrappersAfterDispatch(visitor); 108 NodeRareData::traceWrappersAfterDispatch(visitor);
109 } 109 }
110 110
111 static_assert(sizeof(ElementRareData) == sizeof(SameSizeAsElementRareData), "Ele mentRareData should stay small"); 111 static_assert(sizeof(ElementRareData) == sizeof(SameSizeAsElementRareData), "Ele mentRareData should stay small");
112 112
113 } // namespace blink 113 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698