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

Side by Side Diff: third_party/WebKit/Source/core/dom/shadow/ElementShadow.h

Issue 2390543002: Reflow comments in core/dom/. (Closed)
Patch Set: Reformat comments in core/dom/. Created 4 years, 2 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) 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 * * Neither the name of Google Inc. nor the names of its 10 * * Neither the name of Google Inc. nor the names of its
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 42
43 public: 43 public:
44 static ElementShadow* create(); 44 static ElementShadow* create();
45 ~ElementShadow(); 45 ~ElementShadow();
46 46
47 Element& host() const { 47 Element& host() const {
48 DCHECK(m_shadowRoot); 48 DCHECK(m_shadowRoot);
49 return m_shadowRoot->host(); 49 return m_shadowRoot->host();
50 } 50 }
51 51
52 // TODO(hayato): Remove youngestShadowRoot() and oldestShadowRoot() from Eleme ntShadow 52 // TODO(hayato): Remove youngestShadowRoot() and oldestShadowRoot() from
53 // ElementShadow
53 ShadowRoot& youngestShadowRoot() const; 54 ShadowRoot& youngestShadowRoot() const;
54 ShadowRoot& oldestShadowRoot() const { 55 ShadowRoot& oldestShadowRoot() const {
55 DCHECK(m_shadowRoot); 56 DCHECK(m_shadowRoot);
56 return *m_shadowRoot; 57 return *m_shadowRoot;
57 } 58 }
58 59
59 ElementShadow* containingShadow() const; 60 ElementShadow* containingShadow() const;
60 61
61 ShadowRoot& addShadowRoot(Element& shadowHost, ShadowRootType); 62 ShadowRoot& addShadowRoot(Element& shadowHost, ShadowRootType);
62 63
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 113
113 inline void ElementShadow::distributeIfNeeded() { 114 inline void ElementShadow::distributeIfNeeded() {
114 if (m_needsDistributionRecalc) 115 if (m_needsDistributionRecalc)
115 distribute(); 116 distribute();
116 m_needsDistributionRecalc = false; 117 m_needsDistributionRecalc = false;
117 } 118 }
118 119
119 } // namespace blink 120 } // namespace blink
120 121
121 #endif 122 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698