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

Side by Side Diff: third_party/WebKit/Source/core/css/CSSImportRule.cpp

Issue 2000643002: Revert of bindings: Supports [SameObject] extended attribute. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 * (C) 1999-2003 Lars Knoll (knoll@kde.org) 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org)
3 * (C) 2002-2003 Dirk Mueller (mueller@kde.org) 3 * (C) 2002-2003 Dirk Mueller (mueller@kde.org)
4 * Copyright (C) 2002, 2005, 2006, 2008, 2009, 2010, 2012 Apple Inc. All rights reserved. 4 * Copyright (C) 2002, 2005, 2006, 2008, 2009, 2010, 2012 Apple Inc. All rights 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 result.append(mediaText); 65 result.append(mediaText);
66 } 66 }
67 } 67 }
68 result.append(';'); 68 result.append(';');
69 69
70 return result.toString(); 70 return result.toString();
71 } 71 }
72 72
73 CSSStyleSheet* CSSImportRule::styleSheet() const 73 CSSStyleSheet* CSSImportRule::styleSheet() const
74 { 74 {
75 // TODO(yukishiino): CSSImportRule.styleSheet attribute is not nullable,
76 // thus this function must not return nullptr.
77 if (!m_importRule->styleSheet()) 75 if (!m_importRule->styleSheet())
78 return nullptr; 76 return nullptr;
79 77
80 if (!m_styleSheetCSSOMWrapper) 78 if (!m_styleSheetCSSOMWrapper)
81 m_styleSheetCSSOMWrapper = CSSStyleSheet::create(m_importRule->styleShee t(), const_cast<CSSImportRule*>(this)); 79 m_styleSheetCSSOMWrapper = CSSStyleSheet::create(m_importRule->styleShee t(), const_cast<CSSImportRule*>(this));
82 return m_styleSheetCSSOMWrapper.get(); 80 return m_styleSheetCSSOMWrapper.get();
83 } 81 }
84 82
85 void CSSImportRule::reattach(StyleRuleBase*) 83 void CSSImportRule::reattach(StyleRuleBase*)
86 { 84 {
87 // FIXME: Implement when enabling caching for stylesheets with import rules. 85 // FIXME: Implement when enabling caching for stylesheets with import rules.
88 ASSERT_NOT_REACHED(); 86 ASSERT_NOT_REACHED();
89 } 87 }
90 88
91 DEFINE_TRACE(CSSImportRule) 89 DEFINE_TRACE(CSSImportRule)
92 { 90 {
93 visitor->trace(m_importRule); 91 visitor->trace(m_importRule);
94 visitor->trace(m_mediaCSSOMWrapper); 92 visitor->trace(m_mediaCSSOMWrapper);
95 visitor->trace(m_styleSheetCSSOMWrapper); 93 visitor->trace(m_styleSheetCSSOMWrapper);
96 CSSRule::trace(visitor); 94 CSSRule::trace(visitor);
97 } 95 }
98 96
99 } // namespace blink 97 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698