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

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 test expectations 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
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 1284 matching lines...) Expand 10 before | Expand all | Expand 10 after
1295 return d->requestAnimationFrame(callback); 1295 return d->requestAnimationFrame(callback);
1296 return 0; 1296 return 0;
1297 } 1297 }
1298 1298
1299 void LocalDOMWindow::cancelAnimationFrame(int id) 1299 void LocalDOMWindow::cancelAnimationFrame(int id)
1300 { 1300 {
1301 if (Document* d = document()) 1301 if (Document* d = document())
1302 d->cancelAnimationFrame(id); 1302 d->cancelAnimationFrame(id);
1303 } 1303 }
1304 1304
1305 DOMWindowCSS* LocalDOMWindow::css() const
1306 {
1307 if (!m_css)
1308 m_css = DOMWindowCSS::create();
1309 return m_css.get();
1310 }
1311
1312 bool LocalDOMWindow::addEventListener(const AtomicString& eventType, PassRefPtr< EventListener> prpListener, bool useCapture) 1305 bool LocalDOMWindow::addEventListener(const AtomicString& eventType, PassRefPtr< EventListener> prpListener, bool useCapture)
1313 { 1306 {
1314 RefPtr<EventListener> listener = prpListener; 1307 RefPtr<EventListener> listener = prpListener;
1315 if (!EventTarget::addEventListener(eventType, listener, useCapture)) 1308 if (!EventTarget::addEventListener(eventType, listener, useCapture))
1316 return false; 1309 return false;
1317 1310
1318 if (frame() && frame()->host()) 1311 if (frame() && frame()->host())
1319 frame()->host()->eventHandlerRegistry().didAddEventHandler(*this, eventT ype); 1312 frame()->host()->eventHandlerRegistry().didAddEventHandler(*this, eventT ype);
1320 1313
1321 if (Document* document = this->document()) { 1314 if (Document* document = this->document()) {
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
1513 DOMWindow::trace(visitor); 1506 DOMWindow::trace(visitor);
1514 DOMWindowLifecycleNotifier::trace(visitor); 1507 DOMWindowLifecycleNotifier::trace(visitor);
1515 } 1508 }
1516 1509
1517 LocalFrame* LocalDOMWindow::frame() const 1510 LocalFrame* LocalDOMWindow::frame() const
1518 { 1511 {
1519 return m_frameObserver->frame(); 1512 return m_frameObserver->frame();
1520 } 1513 }
1521 1514
1522 } // namespace blink 1515 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698