| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |