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

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

Issue 196023003: Remove unused ShadowRootUsageOriginType enum (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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 | « no previous file | no next file » | 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 namespace WebCore { 44 namespace WebCore {
45 45
46 struct SameSizeAsShadowRoot : public DocumentFragment, public TreeScope, public DoublyLinkedListNode<ShadowRoot> { 46 struct SameSizeAsShadowRoot : public DocumentFragment, public TreeScope, public DoublyLinkedListNode<ShadowRoot> {
47 void* pointers[3]; 47 void* pointers[3];
48 unsigned countersAndFlags[1]; 48 unsigned countersAndFlags[1];
49 }; 49 };
50 50
51 COMPILE_ASSERT(sizeof(ShadowRoot) == sizeof(SameSizeAsShadowRoot), shadowroot_sh ould_stay_small); 51 COMPILE_ASSERT(sizeof(ShadowRoot) == sizeof(SameSizeAsShadowRoot), shadowroot_sh ould_stay_small);
52 52
53 enum ShadowRootUsageOriginType {
54 ShadowRootUsageOriginWeb = 0,
55 ShadowRootUsageOriginNotWeb,
56 ShadowRootUsageOriginMax
57 };
58
59 ShadowRoot::ShadowRoot(Document& document, ShadowRootType type) 53 ShadowRoot::ShadowRoot(Document& document, ShadowRootType type)
60 : DocumentFragment(0, CreateShadowRoot) 54 : DocumentFragment(0, CreateShadowRoot)
61 , TreeScope(*this, document) 55 , TreeScope(*this, document)
62 , m_prev(0) 56 , m_prev(0)
63 , m_next(0) 57 , m_next(0)
64 , m_numberOfStyles(0) 58 , m_numberOfStyles(0)
65 , m_applyAuthorStyles(false) 59 , m_applyAuthorStyles(false)
66 , m_resetStyleInheritance(false) 60 , m_resetStyleInheritance(false)
67 , m_type(type) 61 , m_type(type)
68 , m_registeredWithParentShadowRoot(false) 62 , m_registeredWithParentShadowRoot(false)
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 { 464 {
471 ensureShadowRootRareData()->setChildrenAffectedByFirstChildRules(true); 465 ensureShadowRootRareData()->setChildrenAffectedByFirstChildRules(true);
472 } 466 }
473 467
474 void ShadowRoot::setChildrenAffectedByLastChildRules() 468 void ShadowRoot::setChildrenAffectedByLastChildRules()
475 { 469 {
476 ensureShadowRootRareData()->setChildrenAffectedByLastChildRules(true); 470 ensureShadowRootRareData()->setChildrenAffectedByLastChildRules(true);
477 } 471 }
478 472
479 } 473 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698