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

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

Issue 2362223002: Stop clamping tabIndex to short range (Closed)
Patch Set: Fix tabindex-clamp.html Created 4 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
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 21 matching lines...) Expand all
32 32
33 #include "core/css/cssom/InlineStylePropertyMap.h" 33 #include "core/css/cssom/InlineStylePropertyMap.h"
34 #include "core/dom/CompositorProxiedPropertySet.h" 34 #include "core/dom/CompositorProxiedPropertySet.h"
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];
43 LayoutSize sizeForResizing; 42 LayoutSize sizeForResizing;
44 IntSize scrollOffset; 43 IntSize scrollOffset;
45 void* pointers[2]; 44 void* pointers[2];
46 Member<void*> members[13]; 45 Member<void*> members[13];
47 }; 46 };
48 47
49 CSSStyleDeclaration& ElementRareData::ensureInlineCSSStyleDeclaration( 48 CSSStyleDeclaration& ElementRareData::ensureInlineCSSStyleDeclaration(
50 Element* ownerElement) { 49 Element* ownerElement) {
51 if (!m_cssomWrapper) 50 if (!m_cssomWrapper)
52 m_cssomWrapper = new InlineCSSStyleDeclaration(ownerElement); 51 m_cssomWrapper = new InlineCSSStyleDeclaration(ownerElement);
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 visitor->traceWrappersWithManualWriteBarrier(m_dataset); 102 visitor->traceWrappersWithManualWriteBarrier(m_dataset);
104 visitor->traceWrappersWithManualWriteBarrier(m_classList); 103 visitor->traceWrappersWithManualWriteBarrier(m_classList);
105 visitor->traceWrappersWithManualWriteBarrier(m_intersectionObserverData); 104 visitor->traceWrappersWithManualWriteBarrier(m_intersectionObserverData);
106 NodeRareData::traceWrappersAfterDispatch(visitor); 105 NodeRareData::traceWrappersAfterDispatch(visitor);
107 } 106 }
108 107
109 static_assert(sizeof(ElementRareData) == sizeof(SameSizeAsElementRareData), 108 static_assert(sizeof(ElementRareData) == sizeof(SameSizeAsElementRareData),
110 "ElementRareData should stay small"); 109 "ElementRareData should stay small");
111 110
112 } // namespace blink 111 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/ElementRareData.h ('k') | third_party/WebKit/Source/core/dom/Node.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698