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

Side by Side Diff: Source/core/page/DOMWindow.cpp

Issue 13646013: Enable support for CSS Conditional Rules (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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/page/DOMWindow.h ('k') | Source/core/page/DOMWindow.idl » ('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) 2006, 2007, 2008, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 1535 matching lines...) Expand 10 before | Expand all | Expand 10 after
1546 return d->requestAnimationFrame(callback); 1546 return d->requestAnimationFrame(callback);
1547 return 0; 1547 return 0;
1548 } 1548 }
1549 1549
1550 void DOMWindow::cancelAnimationFrame(int id) 1550 void DOMWindow::cancelAnimationFrame(int id)
1551 { 1551 {
1552 if (Document* d = document()) 1552 if (Document* d = document())
1553 d->cancelAnimationFrame(id); 1553 d->cancelAnimationFrame(id);
1554 } 1554 }
1555 1555
1556 #if ENABLE(CSS3_CONDITIONAL_RULES)
1557 DOMWindowCSS* DOMWindow::css() 1556 DOMWindowCSS* DOMWindow::css()
1558 { 1557 {
1559 if (!m_css) 1558 if (!m_css)
1560 m_css = DOMWindowCSS::create(); 1559 m_css = DOMWindowCSS::create();
1561 return m_css.get(); 1560 return m_css.get();
1562 } 1561 }
1563 #endif
1564 1562
1565 static void didAddStorageEventListener(DOMWindow* window) 1563 static void didAddStorageEventListener(DOMWindow* window)
1566 { 1564 {
1567 // Creating these WebCore::Storage objects informs the system that we'd like to receive 1565 // Creating these WebCore::Storage objects informs the system that we'd like to receive
1568 // notifications about storage events that might be triggered in other proce sses. Rather 1566 // notifications about storage events that might be triggered in other proce sses. Rather
1569 // than subscribe to these notifications explicitly, we subscribe to them im plicitly to 1567 // than subscribe to these notifications explicitly, we subscribe to them im plicitly to
1570 // simplify the work done by the system. 1568 // simplify the work done by the system.
1571 window->localStorage(IGNORE_EXCEPTION); 1569 window->localStorage(IGNORE_EXCEPTION);
1572 window->sessionStorage(IGNORE_EXCEPTION); 1570 window->sessionStorage(IGNORE_EXCEPTION);
1573 } 1571 }
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after
1940 WindowFeatures windowFeatures(dialogFeaturesString, screenAvailableRect(m_fr ame->view())); 1938 WindowFeatures windowFeatures(dialogFeaturesString, screenAvailableRect(m_fr ame->view()));
1941 Frame* dialogFrame = createWindow(urlString, emptyAtom, windowFeatures, 1939 Frame* dialogFrame = createWindow(urlString, emptyAtom, windowFeatures,
1942 activeWindow, firstFrame, m_frame, function, functionContext); 1940 activeWindow, firstFrame, m_frame, function, functionContext);
1943 if (!dialogFrame) 1941 if (!dialogFrame)
1944 return; 1942 return;
1945 UserGestureIndicatorDisabler disabler; 1943 UserGestureIndicatorDisabler disabler;
1946 dialogFrame->page()->chrome()->runModal(); 1944 dialogFrame->page()->chrome()->runModal();
1947 } 1945 }
1948 1946
1949 } // namespace WebCore 1947 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/page/DOMWindow.h ('k') | Source/core/page/DOMWindow.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698