| OLD | NEW |
| 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 25 matching lines...) Expand all Loading... |
| 36 class ShadowInclusionSelector; | 36 class ShadowInclusionSelector; |
| 37 | 37 |
| 38 class ShadowRoot : public TreeScope { | 38 class ShadowRoot : public TreeScope { |
| 39 public: | 39 public: |
| 40 static PassRefPtr<ShadowRoot> create(Document*); | 40 static PassRefPtr<ShadowRoot> create(Document*); |
| 41 | 41 |
| 42 void recalcShadowTreeStyle(StyleChange); | 42 void recalcShadowTreeStyle(StyleChange); |
| 43 | 43 |
| 44 ShadowContentElement* includerFor(Node*) const; | 44 ShadowContentElement* includerFor(Node*) const; |
| 45 void hostChildrenChanged(); | 45 void hostChildrenChanged(); |
| 46 bool isInclusionSelectorActive() const; |
| 46 | 47 |
| 47 virtual void attach(); | 48 virtual void attach(); |
| 48 | 49 |
| 49 virtual bool applyAuthorSheets() const; | 50 virtual bool applyAuthorSheets() const; |
| 50 void setApplyAuthorSheets(bool); | 51 void setApplyAuthorSheets(bool); |
| 51 | 52 |
| 52 ShadowInclusionSelector* inclusions() const; | 53 ShadowInclusionSelector* inclusions() const; |
| 53 ShadowInclusionSelector* ensureInclusions(); | 54 ShadowInclusionSelector* ensureInclusions(); |
| 54 | 55 |
| 55 private: | 56 private: |
| (...skipping 18 matching lines...) Expand all Loading... |
| 74 | 75 |
| 75 inline ShadowRoot* toShadowRoot(Node* node) | 76 inline ShadowRoot* toShadowRoot(Node* node) |
| 76 { | 77 { |
| 77 ASSERT(!node || node->nodeType() == Node::SHADOW_ROOT_NODE); | 78 ASSERT(!node || node->nodeType() == Node::SHADOW_ROOT_NODE); |
| 78 return static_cast<ShadowRoot*>(node); | 79 return static_cast<ShadowRoot*>(node); |
| 79 } | 80 } |
| 80 | 81 |
| 81 } // namespace | 82 } // namespace |
| 82 | 83 |
| 83 #endif | 84 #endif |
| OLD | NEW |