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

Side by Side Diff: Source/core/dom/shadow/ShadowRoot.cpp

Issue 1174893002: Implement ShadowRoot.delegatesFocus 1/4 (focus navigation) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix for nit review comment Created 5 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/shadow/ShadowRoot.h ('k') | Source/core/dom/shadow/ShadowRoot.idl » ('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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 * * Neither the name of Google Inc. nor the names of its 10 * * Neither the name of Google Inc. nor the names of its
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 55
56 ShadowRoot::ShadowRoot(Document& document, ShadowRootType type) 56 ShadowRoot::ShadowRoot(Document& document, ShadowRootType type)
57 : DocumentFragment(0, CreateShadowRoot) 57 : DocumentFragment(0, CreateShadowRoot)
58 , TreeScope(*this, document) 58 , TreeScope(*this, document)
59 , m_prev(nullptr) 59 , m_prev(nullptr)
60 , m_next(nullptr) 60 , m_next(nullptr)
61 , m_numberOfStyles(0) 61 , m_numberOfStyles(0)
62 , m_type(type) 62 , m_type(type)
63 , m_registeredWithParentShadowRoot(false) 63 , m_registeredWithParentShadowRoot(false)
64 , m_descendantInsertionPointsIsValid(false) 64 , m_descendantInsertionPointsIsValid(false)
65 , m_delegatesFocus(false)
65 { 66 {
66 } 67 }
67 68
68 ShadowRoot::~ShadowRoot() 69 ShadowRoot::~ShadowRoot()
69 { 70 {
70 #if !ENABLE(OILPAN) 71 #if !ENABLE(OILPAN)
71 ASSERT(!m_prev); 72 ASSERT(!m_prev);
72 ASSERT(!m_next); 73 ASSERT(!m_next);
73 74
74 if (m_shadowRootRareData && m_shadowRootRareData->styleSheets()) 75 if (m_shadowRootRareData && m_shadowRootRareData->styleSheets())
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 DEFINE_TRACE(ShadowRoot) 326 DEFINE_TRACE(ShadowRoot)
326 { 327 {
327 visitor->trace(m_prev); 328 visitor->trace(m_prev);
328 visitor->trace(m_next); 329 visitor->trace(m_next);
329 visitor->trace(m_shadowRootRareData); 330 visitor->trace(m_shadowRootRareData);
330 TreeScope::trace(visitor); 331 TreeScope::trace(visitor);
331 DocumentFragment::trace(visitor); 332 DocumentFragment::trace(visitor);
332 } 333 }
333 334
334 } 335 }
OLDNEW
« no previous file with comments | « Source/core/dom/shadow/ShadowRoot.h ('k') | Source/core/dom/shadow/ShadowRoot.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698