| OLD | NEW |
| 1 /* | 1 /* |
| 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) | 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) |
| 3 * Copyright (C) 2004, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All rights
reserved. | 3 * Copyright (C) 2004, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All rights
reserved. |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 | 36 |
| 37 class CSSStyleSheet final : public RefCounted<CSSStyleSheet> { | 37 class CSSStyleSheet final : public RefCounted<CSSStyleSheet> { |
| 38 public: | 38 public: |
| 39 static PassRefPtr<CSSStyleSheet> create(Node*, const KURL&); | 39 static PassRefPtr<CSSStyleSheet> create(Node*, const KURL&); |
| 40 static PassRefPtr<CSSStyleSheet> create(PassRefPtr<StyleSheetContents>, Node
* ownerNode); | 40 static PassRefPtr<CSSStyleSheet> create(PassRefPtr<StyleSheetContents>, Node
* ownerNode); |
| 41 | 41 |
| 42 ~CSSStyleSheet(); | 42 ~CSSStyleSheet(); |
| 43 | 43 |
| 44 Node* ownerNode() const { return m_ownerNode; } | 44 Node* ownerNode() const { return m_ownerNode; } |
| 45 | 45 |
| 46 unsigned length() const; | |
| 47 | |
| 48 void clearOwnerNode(); | 46 void clearOwnerNode(); |
| 49 | 47 |
| 50 Document* ownerDocument() const; | 48 Document* ownerDocument() const; |
| 51 MediaQuerySet* mediaQueries() const { return m_mediaQueries.get(); } | 49 MediaQuerySet* mediaQueries() const { return m_mediaQueries.get(); } |
| 52 void setMediaQueries(PassRefPtr<MediaQuerySet>); | 50 void setMediaQueries(PassRefPtr<MediaQuerySet>); |
| 53 | 51 |
| 54 StyleSheetContents* contents() const { return m_contents.get(); } | 52 StyleSheetContents* contents() const { return m_contents.get(); } |
| 55 | 53 |
| 56 private: | 54 private: |
| 57 CSSStyleSheet(PassRefPtr<StyleSheetContents>, Node* ownerNode); | 55 CSSStyleSheet(PassRefPtr<StyleSheetContents>, Node* ownerNode); |
| 58 | 56 |
| 59 RefPtr<StyleSheetContents> m_contents; | 57 RefPtr<StyleSheetContents> m_contents; |
| 60 RefPtr<MediaQuerySet> m_mediaQueries; | 58 RefPtr<MediaQuerySet> m_mediaQueries; |
| 61 | 59 |
| 62 Node* m_ownerNode; | 60 Node* m_ownerNode; |
| 63 }; | 61 }; |
| 64 | 62 |
| 65 } // namespace blink | 63 } // namespace blink |
| 66 | 64 |
| 67 #endif // SKY_ENGINE_CORE_CSS_CSSSTYLESHEET_H_ | 65 #endif // SKY_ENGINE_CORE_CSS_CSSSTYLESHEET_H_ |
| OLD | NEW |