| OLD | NEW |
| 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 24 matching lines...) Expand all Loading... |
| 35 MediaQueryResult(const MediaQueryExp& expr, bool result) | 35 MediaQueryResult(const MediaQueryExp& expr, bool result) |
| 36 #if ENABLE(OILPAN) | 36 #if ENABLE(OILPAN) |
| 37 : m_expression(&expr) | 37 : m_expression(&expr) |
| 38 #else | 38 #else |
| 39 : m_expression(expr) | 39 : m_expression(expr) |
| 40 #endif | 40 #endif |
| 41 , m_result(result) | 41 , m_result(result) |
| 42 { | 42 { |
| 43 } | 43 } |
| 44 | 44 |
| 45 void trace(Visitor* visitor) { visitor->trace(m_expression); } | 45 DEFINE_INLINE_TRACE() { visitor->trace(m_expression); } |
| 46 | 46 |
| 47 const MediaQueryExp* expression() const | 47 const MediaQueryExp* expression() const |
| 48 { | 48 { |
| 49 #if ENABLE(OILPAN) | 49 #if ENABLE(OILPAN) |
| 50 return m_expression; | 50 return m_expression; |
| 51 #else | 51 #else |
| 52 return &m_expression; | 52 return &m_expression; |
| 53 #endif | 53 #endif |
| 54 } | 54 } |
| 55 | 55 |
| 56 bool result() const { return m_result; } | 56 bool result() const { return m_result; } |
| 57 | 57 |
| 58 private: | 58 private: |
| 59 #if ENABLE(OILPAN) | 59 #if ENABLE(OILPAN) |
| 60 Member<const MediaQueryExp> m_expression; | 60 Member<const MediaQueryExp> m_expression; |
| 61 #else | 61 #else |
| 62 MediaQueryExp m_expression; | 62 MediaQueryExp m_expression; |
| 63 #endif | 63 #endif |
| 64 bool m_result; | 64 bool m_result; |
| 65 }; | 65 }; |
| 66 | 66 |
| 67 } | 67 } |
| 68 | 68 |
| 69 #endif | 69 #endif |
| OLD | NEW |