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

Side by Side Diff: Source/core/frame/LocalDOMWindow.cpp

Issue 1176713003: Make the CSS interface members static (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updating as per review comments Created 5 years, 6 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
« no previous file with comments | « Source/core/frame/LocalDOMWindow.h ('k') | Source/core/frame/RemoteDOMWindow.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) 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 1294 matching lines...) Expand 10 before | Expand all | Expand 10 after
1305 return d->requestAnimationFrame(callback); 1305 return d->requestAnimationFrame(callback);
1306 return 0; 1306 return 0;
1307 } 1307 }
1308 1308
1309 void LocalDOMWindow::cancelAnimationFrame(int id) 1309 void LocalDOMWindow::cancelAnimationFrame(int id)
1310 { 1310 {
1311 if (Document* d = document()) 1311 if (Document* d = document())
1312 d->cancelAnimationFrame(id); 1312 d->cancelAnimationFrame(id);
1313 } 1313 }
1314 1314
1315 DOMWindowCSS* LocalDOMWindow::css() const
1316 {
1317 if (!m_css)
1318 m_css = DOMWindowCSS::create();
1319 return m_css.get();
1320 }
1321
1322 bool LocalDOMWindow::addEventListener(const AtomicString& eventType, PassRefPtr< EventListener> prpListener, bool useCapture) 1315 bool LocalDOMWindow::addEventListener(const AtomicString& eventType, PassRefPtr< EventListener> prpListener, bool useCapture)
1323 { 1316 {
1324 RefPtr<EventListener> listener = prpListener; 1317 RefPtr<EventListener> listener = prpListener;
1325 if (!EventTarget::addEventListener(eventType, listener, useCapture)) 1318 if (!EventTarget::addEventListener(eventType, listener, useCapture))
1326 return false; 1319 return false;
1327 1320
1328 if (frame() && frame()->host()) 1321 if (frame() && frame()->host())
1329 frame()->host()->eventHandlerRegistry().didAddEventHandler(*this, eventT ype); 1322 frame()->host()->eventHandlerRegistry().didAddEventHandler(*this, eventT ype);
1330 1323
1331 if (Document* document = this->document()) { 1324 if (Document* document = this->document()) {
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
1508 visitor->trace(m_locationbar); 1501 visitor->trace(m_locationbar);
1509 visitor->trace(m_menubar); 1502 visitor->trace(m_menubar);
1510 visitor->trace(m_personalbar); 1503 visitor->trace(m_personalbar);
1511 visitor->trace(m_scrollbars); 1504 visitor->trace(m_scrollbars);
1512 visitor->trace(m_statusbar); 1505 visitor->trace(m_statusbar);
1513 visitor->trace(m_toolbar); 1506 visitor->trace(m_toolbar);
1514 visitor->trace(m_console); 1507 visitor->trace(m_console);
1515 visitor->trace(m_navigator); 1508 visitor->trace(m_navigator);
1516 visitor->trace(m_media); 1509 visitor->trace(m_media);
1517 visitor->trace(m_applicationCache); 1510 visitor->trace(m_applicationCache);
1518 visitor->trace(m_css);
1519 visitor->trace(m_eventQueue); 1511 visitor->trace(m_eventQueue);
1520 visitor->trace(m_postMessageTimers); 1512 visitor->trace(m_postMessageTimers);
1521 HeapSupplementable<LocalDOMWindow>::trace(visitor); 1513 HeapSupplementable<LocalDOMWindow>::trace(visitor);
1522 #endif 1514 #endif
1523 DOMWindow::trace(visitor); 1515 DOMWindow::trace(visitor);
1524 DOMWindowLifecycleNotifier::trace(visitor); 1516 DOMWindowLifecycleNotifier::trace(visitor);
1525 } 1517 }
1526 1518
1527 LocalFrame* LocalDOMWindow::frame() const 1519 LocalFrame* LocalDOMWindow::frame() const
1528 { 1520 {
1529 return m_frameObserver->frame(); 1521 return m_frameObserver->frame();
1530 } 1522 }
1531 1523
1532 } // namespace blink 1524 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/frame/LocalDOMWindow.h ('k') | Source/core/frame/RemoteDOMWindow.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698