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

Side by Side Diff: third_party/WebKit/WebCore/dom/ExceptionContext.cpp

Issue 9018: Make ExceptionContext platform-independent using magic headers (1/2) (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 1 month 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 | « third_party/WebKit/WebCore/dom/ExceptionContext.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:mergeinfo
Merged /branches/chrome_webkit_merge_branch/deps/third_party/WebKit/WebCore/bindings/js/ExceptionContext.cpp:r3734-4214
OLDNEW
1 // Copyright (c) 2008, Google Inc. 1 // Copyright (c) 2008, Google Inc.
2 // All rights reserved. 2 // All rights reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // * Redistributions of source code must retain the above copyright 8 // * 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 // * Redistributions in binary form must reproduce the above 10 // * Redistributions in binary form must reproduce the above
(...skipping 18 matching lines...) Expand all
29 29
30 #include "config.h" 30 #include "config.h"
31 #include "ExceptionContext.h" 31 #include "ExceptionContext.h"
32 32
33 #include "JSDOMBinding.h" 33 #include "JSDOMBinding.h"
34 #include "Node.h" 34 #include "Node.h"
35 35
36 namespace WebCore { 36 namespace WebCore {
37 37
38 ExceptionContext::ExceptionContext(Node* node) 38 ExceptionContext::ExceptionContext(Node* node)
39 : m_exec(execStateFromNode(node)) 39 : m_data(execStateFromNode(node))
40 { 40 {
41 } 41 }
42 42
43 bool ExceptionContext::hadException() 43 bool ExceptionContext::hadException()
44 { 44 {
45 return m_exec->hadException(); 45 return m_data->hadException();
46 }
47
48 JSException ExceptionContext::noException()
49 {
50 return 0;
51 }
52
53 JSException ExceptionContext::exception() const
54 {
55 return m_exec->exception();
56 } 46 }
57 47
58 } // namespace WebCore 48 } // namespace WebCore
OLDNEW
« no previous file with comments | « third_party/WebKit/WebCore/dom/ExceptionContext.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698