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

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

Issue 183893019: Move HTMLContentElement & HTMLShadowElement out of shadow/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Build Fix 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
« no previous file with comments | « Source/core/dom/shadow/ElementShadow.cpp ('k') | Source/core/html/HTMLContentElement.h » ('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 20 matching lines...) Expand all
31 #include "core/css/StyleSheetList.h" 31 #include "core/css/StyleSheetList.h"
32 #include "core/css/resolver/StyleResolver.h" 32 #include "core/css/resolver/StyleResolver.h"
33 #include "core/dom/ElementTraversal.h" 33 #include "core/dom/ElementTraversal.h"
34 #include "core/dom/SiblingRuleHelper.h" 34 #include "core/dom/SiblingRuleHelper.h"
35 #include "core/dom/StyleEngine.h" 35 #include "core/dom/StyleEngine.h"
36 #include "core/dom/Text.h" 36 #include "core/dom/Text.h"
37 #include "core/dom/shadow/ElementShadow.h" 37 #include "core/dom/shadow/ElementShadow.h"
38 #include "core/dom/shadow/InsertionPoint.h" 38 #include "core/dom/shadow/InsertionPoint.h"
39 #include "core/dom/shadow/ShadowRootRareData.h" 39 #include "core/dom/shadow/ShadowRootRareData.h"
40 #include "core/editing/markup.h" 40 #include "core/editing/markup.h"
41 #include "core/html/shadow/HTMLShadowElement.h" 41 #include "core/html/HTMLShadowElement.h"
42 #include "public/platform/Platform.h" 42 #include "public/platform/Platform.h"
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);
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
475 { 475 {
476 ensureShadowRootRareData()->setChildrenAffectedByFirstChildRules(true); 476 ensureShadowRootRareData()->setChildrenAffectedByFirstChildRules(true);
477 } 477 }
478 478
479 void ShadowRoot::setChildrenAffectedByLastChildRules() 479 void ShadowRoot::setChildrenAffectedByLastChildRules()
480 { 480 {
481 ensureShadowRootRareData()->setChildrenAffectedByLastChildRules(true); 481 ensureShadowRootRareData()->setChildrenAffectedByLastChildRules(true);
482 } 482 }
483 483
484 } 484 }
OLDNEW
« no previous file with comments | « Source/core/dom/shadow/ElementShadow.cpp ('k') | Source/core/html/HTMLContentElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698