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

Side by Side Diff: sky/engine/core/css/MediaList.h

Issue 723253004: Remove tons of OILPAN. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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/FontLoader.cpp ('k') | sky/engine/core/css/MediaList.cpp » ('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, 2008, 2009, 2010, 2012 Apple Inc. All rights reserv ed. 3 * Copyright (C) 2004, 2006, 2008, 2009, 2010, 2012 Apple Inc. All rights reserv ed.
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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 bool remove(const String&); 54 bool remove(const String&);
55 55
56 void addMediaQuery(PassOwnPtr<MediaQuery>); 56 void addMediaQuery(PassOwnPtr<MediaQuery>);
57 57
58 const Vector<OwnPtr<MediaQuery> >& queryVector() const { return m_queries; } 58 const Vector<OwnPtr<MediaQuery> >& queryVector() const { return m_queries; }
59 59
60 String mediaText() const; 60 String mediaText() const;
61 61
62 PassRefPtr<MediaQuerySet> copy() const { return adoptRef(new MediaQuerySet(* this)); } 62 PassRefPtr<MediaQuerySet> copy() const { return adoptRef(new MediaQuerySet(* this)); }
63 63
64 void trace(Visitor*);
65
66 private: 64 private:
67 MediaQuerySet(); 65 MediaQuerySet();
68 MediaQuerySet(const MediaQuerySet&); 66 MediaQuerySet(const MediaQuerySet&);
69 67
70 Vector<OwnPtr<MediaQuery> > m_queries; 68 Vector<OwnPtr<MediaQuery> > m_queries;
71 }; 69 };
72 70
73 class MediaList : public RefCounted<MediaList>, public ScriptWrappable { 71 class MediaList : public RefCounted<MediaList>, public ScriptWrappable {
74 DEFINE_WRAPPERTYPEINFO(); 72 DEFINE_WRAPPERTYPEINFO();
75 public: 73 public:
(...skipping 22 matching lines...) Expand all
98 96
99 #if !ENABLE(OILPAN) 97 #if !ENABLE(OILPAN)
100 void clearParentStyleSheet() { ASSERT(m_parentStyleSheet); m_parentStyleShee t = nullptr; } 98 void clearParentStyleSheet() { ASSERT(m_parentStyleSheet); m_parentStyleShee t = nullptr; }
101 void clearParentRule() { ASSERT(m_parentRule); m_parentRule = nullptr; } 99 void clearParentRule() { ASSERT(m_parentRule); m_parentRule = nullptr; }
102 #endif 100 #endif
103 101
104 const MediaQuerySet* queries() const { return m_mediaQueries.get(); } 102 const MediaQuerySet* queries() const { return m_mediaQueries.get(); }
105 103
106 void reattach(MediaQuerySet*); 104 void reattach(MediaQuerySet*);
107 105
108 void trace(Visitor*);
109
110 private: 106 private:
111 MediaList(MediaQuerySet*, CSSStyleSheet* parentSheet); 107 MediaList(MediaQuerySet*, CSSStyleSheet* parentSheet);
112 MediaList(MediaQuerySet*, CSSRule* parentRule); 108 MediaList(MediaQuerySet*, CSSRule* parentRule);
113 109
114 RefPtr<MediaQuerySet> m_mediaQueries; 110 RefPtr<MediaQuerySet> m_mediaQueries;
115 // Cleared in ~CSSStyleSheet destructor when oilpan is not enabled. 111 // Cleared in ~CSSStyleSheet destructor when oilpan is not enabled.
116 RawPtr<CSSStyleSheet> m_parentStyleSheet; 112 RawPtr<CSSStyleSheet> m_parentStyleSheet;
117 // Cleared in the ~CSSMediaRule destructors when oilpan is not enabled. 113 // Cleared in the ~CSSMediaRule destructors when oilpan is not enabled.
118 RawPtr<CSSRule> m_parentRule; 114 RawPtr<CSSRule> m_parentRule;
119 }; 115 };
120 116
121 // Adds message to inspector console whenever dpi or dpcm values are used for "s creen" media. 117 // Adds message to inspector console whenever dpi or dpcm values are used for "s creen" media.
122 void reportMediaQueryWarningIfNeeded(Document*, const MediaQuerySet*); 118 void reportMediaQueryWarningIfNeeded(Document*, const MediaQuerySet*);
123 119
124 } // namespace blink 120 } // namespace blink
125 121
126 #endif 122 #endif
OLDNEW
« no previous file with comments | « sky/engine/core/css/FontLoader.cpp ('k') | sky/engine/core/css/MediaList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698