OLD | NEW |
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 23 matching lines...) Expand all Loading... |
34 #include "core/dom/CompositorProxiedPropertySet.h" | 34 #include "core/dom/CompositorProxiedPropertySet.h" |
35 #include "core/dom/ResizeObservation.h" | 35 #include "core/dom/ResizeObservation.h" |
36 #include "core/dom/ResizeObserver.h" | 36 #include "core/dom/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 LayoutSize size_for_resizing; | 42 LayoutSize size_for_resizing; |
43 IntSize scroll_offset; | 43 IntSize scroll_offset; |
| 44 AtomicString nonce; |
44 void* pointers[2]; | 45 void* pointers[2]; |
45 Member<void*> members[14]; | 46 Member<void*> members[14]; |
46 }; | 47 }; |
47 | 48 |
48 CSSStyleDeclaration& ElementRareData::EnsureInlineCSSStyleDeclaration( | 49 CSSStyleDeclaration& ElementRareData::EnsureInlineCSSStyleDeclaration( |
49 Element* owner_element) { | 50 Element* owner_element) { |
50 if (!cssom_wrapper_) | 51 if (!cssom_wrapper_) |
51 cssom_wrapper_ = new InlineCSSStyleDeclaration(owner_element); | 52 cssom_wrapper_ = new InlineCSSStyleDeclaration(owner_element); |
52 return *cssom_wrapper_; | 53 return *cssom_wrapper_; |
53 } | 54 } |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 visitor->TraceWrappersWithManualWriteBarrier(class_list_); | 105 visitor->TraceWrappersWithManualWriteBarrier(class_list_); |
105 visitor->TraceWrappersWithManualWriteBarrier(accessible_node_); | 106 visitor->TraceWrappersWithManualWriteBarrier(accessible_node_); |
106 visitor->TraceWrappersWithManualWriteBarrier(intersection_observer_data_); | 107 visitor->TraceWrappersWithManualWriteBarrier(intersection_observer_data_); |
107 NodeRareData::TraceWrappersAfterDispatch(visitor); | 108 NodeRareData::TraceWrappersAfterDispatch(visitor); |
108 } | 109 } |
109 | 110 |
110 static_assert(sizeof(ElementRareData) == sizeof(SameSizeAsElementRareData), | 111 static_assert(sizeof(ElementRareData) == sizeof(SameSizeAsElementRareData), |
111 "ElementRareData should stay small"); | 112 "ElementRareData should stay small"); |
112 | 113 |
113 } // namespace blink | 114 } // namespace blink |
OLD | NEW |