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

Side by Side Diff: sky/engine/core/css/CSSStyleSheet.cpp

Issue 809513003: Remove dead methods from CSSStyleSheet and StyleSheetContents. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « sky/engine/core/css/CSSStyleSheet.h ('k') | sky/engine/core/css/CSSTestHelper.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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, 2012 Apple Inc. All rights reserved. 3 * Copyright (C) 2004, 2006, 2007, 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 } 70 }
71 71
72 void CSSStyleSheet::setMediaQueries(PassRefPtr<MediaQuerySet> mediaQueries) 72 void CSSStyleSheet::setMediaQueries(PassRefPtr<MediaQuerySet> mediaQueries)
73 { 73 {
74 m_mediaQueries = mediaQueries; 74 m_mediaQueries = mediaQueries;
75 75
76 // Add warning message to inspector whenever dpi/dpcm values are used for "s creen" media. 76 // Add warning message to inspector whenever dpi/dpcm values are used for "s creen" media.
77 reportMediaQueryWarningIfNeeded(ownerDocument(), m_mediaQueries.get()); 77 reportMediaQueryWarningIfNeeded(ownerDocument(), m_mediaQueries.get());
78 } 78 }
79 79
80 unsigned CSSStyleSheet::length() const
81 {
82 return m_contents->ruleCount();
83 }
84
85 void CSSStyleSheet::clearOwnerNode() 80 void CSSStyleSheet::clearOwnerNode()
86 { 81 {
87 if (Document* owner = ownerDocument()) 82 if (Document* owner = ownerDocument())
88 owner->modifiedStyleSheet(this); 83 owner->modifiedStyleSheet(this);
89 if (m_ownerNode) 84 if (m_ownerNode)
90 m_contents->unregisterClient(this); 85 m_contents->unregisterClient(this);
91 m_ownerNode = nullptr; 86 m_ownerNode = nullptr;
92 } 87 }
93 88
94 Document* CSSStyleSheet::ownerDocument() const 89 Document* CSSStyleSheet::ownerDocument() const
95 { 90 {
96 return ownerNode() ? &ownerNode()->document() : 0; 91 return ownerNode() ? &ownerNode()->document() : 0;
97 } 92 }
98 93
99 } // namespace blink 94 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/css/CSSStyleSheet.h ('k') | sky/engine/core/css/CSSTestHelper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698