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

Side by Side Diff: sky/engine/core/css/resolver/MediaQueryResult.h

Issue 686783002: Remove almost all 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/invalidation/StyleInvalidator.h ('k') | sky/engine/core/dom/Document.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 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. 3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved.
4 * Copyright (C) 2013 Google Inc. All rights reserved. 4 * Copyright (C) 2013 Google 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 15 matching lines...) Expand all
26 #include "core/css/MediaQueryExp.h" 26 #include "core/css/MediaQueryExp.h"
27 #include "wtf/Noncopyable.h" 27 #include "wtf/Noncopyable.h"
28 #include "wtf/RefCounted.h" 28 #include "wtf/RefCounted.h"
29 29
30 namespace blink { 30 namespace blink {
31 31
32 class MediaQueryResult : public RefCounted<MediaQueryResult> { 32 class MediaQueryResult : public RefCounted<MediaQueryResult> {
33 WTF_MAKE_NONCOPYABLE(MediaQueryResult); WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMO VED; 33 WTF_MAKE_NONCOPYABLE(MediaQueryResult); WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMO VED;
34 public: 34 public:
35 MediaQueryResult(const MediaQueryExp& expr, bool result) 35 MediaQueryResult(const MediaQueryExp& expr, bool result)
36 #if ENABLE(OILPAN)
37 : m_expression(&expr)
38 #else
39 : m_expression(expr) 36 : m_expression(expr)
40 #endif
41 , m_result(result) 37 , m_result(result)
42 { 38 {
43 } 39 }
44 40
45 void trace(Visitor* visitor) { visitor->trace(m_expression); } 41 void trace(Visitor* visitor) { visitor->trace(m_expression); }
46 42
47 const MediaQueryExp* expression() const 43 const MediaQueryExp* expression() const
48 { 44 {
49 #if ENABLE(OILPAN)
50 return m_expression;
51 #else
52 return &m_expression; 45 return &m_expression;
53 #endif
54 } 46 }
55 47
56 bool result() const { return m_result; } 48 bool result() const { return m_result; }
57 49
58 private: 50 private:
59 #if ENABLE(OILPAN)
60 Member<const MediaQueryExp> m_expression;
61 #else
62 MediaQueryExp m_expression; 51 MediaQueryExp m_expression;
63 #endif
64 bool m_result; 52 bool m_result;
65 }; 53 };
66 54
67 } 55 }
68 56
69 #endif 57 #endif
OLDNEW
« no previous file with comments | « sky/engine/core/css/invalidation/StyleInvalidator.h ('k') | sky/engine/core/dom/Document.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698