| 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 | 3 * Copyright (C) 2004, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All rights |
| 4 * reserved. | 4 * reserved. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 | 96 |
| 97 CSSRule* ownerRule() const override { return owner_rule_; } | 97 CSSRule* ownerRule() const override { return owner_rule_; } |
| 98 KURL BaseURL() const override; | 98 KURL BaseURL() const override; |
| 99 bool IsLoading() const override; | 99 bool IsLoading() const override; |
| 100 | 100 |
| 101 void ClearOwnerRule() { owner_rule_ = nullptr; } | 101 void ClearOwnerRule() { owner_rule_ = nullptr; } |
| 102 Document* OwnerDocument() const; | 102 Document* OwnerDocument() const; |
| 103 const MediaQuerySet* MediaQueries() const { return media_queries_; } | 103 const MediaQuerySet* MediaQueries() const { return media_queries_; } |
| 104 void SetMediaQueries(MediaQuerySet*); | 104 void SetMediaQueries(MediaQuerySet*); |
| 105 bool MatchesMediaQueries(const MediaQueryEvaluator&); | 105 bool MatchesMediaQueries(const MediaQueryEvaluator&); |
| 106 bool HasMediaQueryResults() const { |
| 107 return !viewport_dependent_media_query_results_.IsEmpty() || |
| 108 !device_dependent_media_query_results_.IsEmpty(); |
| 109 } |
| 106 const MediaQueryResultList& ViewportDependentMediaQueryResults() const { | 110 const MediaQueryResultList& ViewportDependentMediaQueryResults() const { |
| 107 return viewport_dependent_media_query_results_; | 111 return viewport_dependent_media_query_results_; |
| 108 } | 112 } |
| 109 const MediaQueryResultList& DeviceDependentMediaQueryResults() const { | 113 const MediaQueryResultList& DeviceDependentMediaQueryResults() const { |
| 110 return device_dependent_media_query_results_; | 114 return device_dependent_media_query_results_; |
| 111 } | 115 } |
| 112 void SetTitle(const String& title) { title_ = title; } | 116 void SetTitle(const String& title) { title_ = title; } |
| 113 // Set by LinkStyle iff CORS-enabled fetch of stylesheet succeeded from this | 117 // Set by LinkStyle iff CORS-enabled fetch of stylesheet succeeded from this |
| 114 // origin. | 118 // origin. |
| 115 void SetAllowRuleAccessFromOrigin(PassRefPtr<SecurityOrigin> allowed_origin); | 119 void SetAllowRuleAccessFromOrigin(PassRefPtr<SecurityOrigin> allowed_origin); |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 | 202 |
| 199 DEFINE_TYPE_CASTS(CSSStyleSheet, | 203 DEFINE_TYPE_CASTS(CSSStyleSheet, |
| 200 StyleSheet, | 204 StyleSheet, |
| 201 sheet, | 205 sheet, |
| 202 sheet->IsCSSStyleSheet(), | 206 sheet->IsCSSStyleSheet(), |
| 203 sheet.IsCSSStyleSheet()); | 207 sheet.IsCSSStyleSheet()); |
| 204 | 208 |
| 205 } // namespace blink | 209 } // namespace blink |
| 206 | 210 |
| 207 #endif | 211 #endif |
| OLD | NEW |