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

Side by Side Diff: Source/core/css/MediaList.h

Issue 13973026: remove memoryinstrumentation Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove the rest part of MemoryInstrumentation Created 7 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/css/InspectorCSSOMWrappers.cpp ('k') | Source/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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 60
61 const Vector<OwnPtr<MediaQuery> >& queryVector() const { return m_queries; } 61 const Vector<OwnPtr<MediaQuery> >& queryVector() const { return m_queries; }
62 62
63 int lastLine() const { return m_lastLine; } 63 int lastLine() const { return m_lastLine; }
64 void setLastLine(int lastLine) { m_lastLine = lastLine; } 64 void setLastLine(int lastLine) { m_lastLine = lastLine; }
65 65
66 String mediaText() const; 66 String mediaText() const;
67 67
68 PassRefPtr<MediaQuerySet> copy() const { return adoptRef(new MediaQuerySet(* this)); } 68 PassRefPtr<MediaQuerySet> copy() const { return adoptRef(new MediaQuerySet(* this)); }
69 69
70 void reportMemoryUsage(MemoryObjectInfo*) const;
71
72 private: 70 private:
73 MediaQuerySet(); 71 MediaQuerySet();
74 MediaQuerySet(const String& mediaQuery, bool fallbackToDescription); 72 MediaQuerySet(const String& mediaQuery, bool fallbackToDescription);
75 MediaQuerySet(const MediaQuerySet&); 73 MediaQuerySet(const MediaQuerySet&);
76 74
77 unsigned m_fallbackToDescriptor : 1; // true if failed media query parsing s hould fallback to media description parsing. 75 unsigned m_fallbackToDescriptor : 1; // true if failed media query parsing s hould fallback to media description parsing.
78 signed m_lastLine : 31; 76 signed m_lastLine : 31;
79 Vector<OwnPtr<MediaQuery> > m_queries; 77 Vector<OwnPtr<MediaQuery> > m_queries;
80 }; 78 };
81 79
(...skipping 20 matching lines...) Expand all
102 100
103 // Not part of CSSOM. 101 // Not part of CSSOM.
104 CSSRule* parentRule() const { return m_parentRule; } 102 CSSRule* parentRule() const { return m_parentRule; }
105 CSSStyleSheet* parentStyleSheet() const { return m_parentStyleSheet; } 103 CSSStyleSheet* parentStyleSheet() const { return m_parentStyleSheet; }
106 void clearParentStyleSheet() { ASSERT(m_parentStyleSheet); m_parentStyleShee t = 0; } 104 void clearParentStyleSheet() { ASSERT(m_parentStyleSheet); m_parentStyleShee t = 0; }
107 void clearParentRule() { ASSERT(m_parentRule); m_parentRule = 0; } 105 void clearParentRule() { ASSERT(m_parentRule); m_parentRule = 0; }
108 const MediaQuerySet* queries() const { return m_mediaQueries.get(); } 106 const MediaQuerySet* queries() const { return m_mediaQueries.get(); }
109 107
110 void reattach(MediaQuerySet*); 108 void reattach(MediaQuerySet*);
111 109
112 void reportMemoryUsage(MemoryObjectInfo*) const;
113
114 private: 110 private:
115 MediaList(); 111 MediaList();
116 MediaList(MediaQuerySet*, CSSStyleSheet* parentSheet); 112 MediaList(MediaQuerySet*, CSSStyleSheet* parentSheet);
117 MediaList(MediaQuerySet*, CSSRule* parentRule); 113 MediaList(MediaQuerySet*, CSSRule* parentRule);
118 114
119 RefPtr<MediaQuerySet> m_mediaQueries; 115 RefPtr<MediaQuerySet> m_mediaQueries;
120 CSSStyleSheet* m_parentStyleSheet; 116 CSSStyleSheet* m_parentStyleSheet;
121 CSSRule* m_parentRule; 117 CSSRule* m_parentRule;
122 }; 118 };
123 119
124 #if ENABLE(RESOLUTION_MEDIA_QUERY) 120 #if ENABLE(RESOLUTION_MEDIA_QUERY)
125 // Adds message to inspector console whenever dpi or dpcm values are used for "s creen" media. 121 // Adds message to inspector console whenever dpi or dpcm values are used for "s creen" media.
126 void reportMediaQueryWarningIfNeeded(Document*, const MediaQuerySet*); 122 void reportMediaQueryWarningIfNeeded(Document*, const MediaQuerySet*);
127 #endif 123 #endif
128 124
129 } // namespace 125 } // namespace
130 126
131 #endif 127 #endif
OLDNEW
« no previous file with comments | « Source/core/css/InspectorCSSOMWrappers.cpp ('k') | Source/core/css/MediaList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698