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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLSlotElement.cpp

Issue 1848753002: Consider slots' tabindex in focus navigation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Override tabIndex() in HTMLSlotElement Created 4 years, 8 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2015 Google Inc. All rights reserved. 2 * Copyright (C) 2015 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 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 Microtask::enqueueMicrotask(WTF::bind(&HTMLSlotElement::dispatchSlotChan geEvent, PassRefPtrWillBeRawPtr<HTMLSlotElement>(this))); 272 Microtask::enqueueMicrotask(WTF::bind(&HTMLSlotElement::dispatchSlotChan geEvent, PassRefPtrWillBeRawPtr<HTMLSlotElement>(this)));
273 } 273 }
274 } 274 }
275 275
276 void HTMLSlotElement::clearDistribution() 276 void HTMLSlotElement::clearDistribution()
277 { 277 {
278 willUpdateDistribution(); 278 willUpdateDistribution();
279 didUpdateDistribution(); 279 didUpdateDistribution();
280 } 280 }
281 281
282 short HTMLSlotElement::tabIndex() const
283 {
284 return Element::tabIndex();
285 }
286
hayato 2016/04/01 05:56:57 Two empty lines -> One empty line.
yuzuchan 2016/04/01 06:06:56 Done.
287
282 DEFINE_TRACE(HTMLSlotElement) 288 DEFINE_TRACE(HTMLSlotElement)
283 { 289 {
284 #if ENABLE(OILPAN) 290 #if ENABLE(OILPAN)
285 visitor->trace(m_assignedNodes); 291 visitor->trace(m_assignedNodes);
286 visitor->trace(m_distributedNodes); 292 visitor->trace(m_distributedNodes);
287 visitor->trace(m_distributedIndices); 293 visitor->trace(m_distributedIndices);
288 visitor->trace(m_oldDistributedNodes); 294 visitor->trace(m_oldDistributedNodes);
289 #endif 295 #endif
290 HTMLElement::trace(visitor); 296 HTMLElement::trace(visitor);
291 } 297 }
292 298
293 } // namespace blink 299 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698