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

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

Issue 22417002: Rename ASSERT_NO_EXCEPTION_STATE and IGNORE_EXCEPTION_STATE (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 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/DOMSelection.cpp ('k') | Source/core/page/DragController.cpp » ('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 1371 matching lines...) Expand 10 before | Expand all | Expand 10 after
1382 m_css = DOMWindowCSS::create(); 1382 m_css = DOMWindowCSS::create();
1383 return m_css.get(); 1383 return m_css.get();
1384 } 1384 }
1385 1385
1386 static void didAddStorageEventListener(DOMWindow* window) 1386 static void didAddStorageEventListener(DOMWindow* window)
1387 { 1387 {
1388 // Creating these WebCore::Storage objects informs the system that we'd like to receive 1388 // Creating these WebCore::Storage objects informs the system that we'd like to receive
1389 // notifications about storage events that might be triggered in other proce sses. Rather 1389 // notifications about storage events that might be triggered in other proce sses. Rather
1390 // than subscribe to these notifications explicitly, we subscribe to them im plicitly to 1390 // than subscribe to these notifications explicitly, we subscribe to them im plicitly to
1391 // simplify the work done by the system. 1391 // simplify the work done by the system.
1392 window->localStorage(IGNORE_EXCEPTION_STATE); 1392 window->localStorage(IGNORE_EXCEPTION);
1393 window->sessionStorage(IGNORE_EXCEPTION_STATE); 1393 window->sessionStorage(IGNORE_EXCEPTION);
1394 } 1394 }
1395 1395
1396 bool DOMWindow::addEventListener(const AtomicString& eventType, PassRefPtr<Event Listener> listener, bool useCapture) 1396 bool DOMWindow::addEventListener(const AtomicString& eventType, PassRefPtr<Event Listener> listener, bool useCapture)
1397 { 1397 {
1398 if (!EventTarget::addEventListener(eventType, listener, useCapture)) 1398 if (!EventTarget::addEventListener(eventType, listener, useCapture))
1399 return false; 1399 return false;
1400 1400
1401 if (Document* document = this->document()) { 1401 if (Document* document = this->document()) {
1402 document->addListenerTypeIfNeeded(eventType); 1402 document->addListenerTypeIfNeeded(eventType);
1403 if (eventType == eventNames().mousewheelEvent) 1403 if (eventType == eventNames().mousewheelEvent)
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
1725 1725
1726 Frame* child = frame->tree()->scopedChild(index); 1726 Frame* child = frame->tree()->scopedChild(index);
1727 if (child) 1727 if (child)
1728 return child->domWindow(); 1728 return child->domWindow();
1729 1729
1730 return 0; 1730 return 0;
1731 } 1731 }
1732 1732
1733 1733
1734 } // namespace WebCore 1734 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/page/DOMSelection.cpp ('k') | Source/core/page/DragController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698