OLD | NEW |
1 /* | 1 /* |
2 * CSS Media Query Evaluator | 2 * CSS Media Query Evaluator |
3 * | 3 * |
4 * Copyright (C) 2006 Kimmo Kinnunen <kimmo.t.kinnunen@nokia.com>. | 4 * Copyright (C) 2006 Kimmo Kinnunen <kimmo.t.kinnunen@nokia.com>. |
5 * | 5 * |
6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
8 * are met: | 8 * are met: |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
525 return false; | 525 return false; |
526 | 526 |
527 if (!gFunctionMap) | 527 if (!gFunctionMap) |
528 createFunctionMap(); | 528 createFunctionMap(); |
529 | 529 |
530 // call the media feature evaluation function. Assume no prefix | 530 // call the media feature evaluation function. Assume no prefix |
531 // and let trampoline functions override the prefix if prefix is | 531 // and let trampoline functions override the prefix if prefix is |
532 // used | 532 // used |
533 EvalFunc func = gFunctionMap->get(expr->mediaFeature().impl()); | 533 EvalFunc func = gFunctionMap->get(expr->mediaFeature().impl()); |
534 if (func) | 534 if (func) |
535 return func(expr->value(), m_style, m_frame, NoPrefix); | 535 return func(expr->value(), m_style.get(), m_frame, NoPrefix); |
536 | 536 |
537 return false; | 537 return false; |
538 } | 538 } |
539 | 539 |
540 } // namespace | 540 } // namespace |
OLD | NEW |