| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009 Google Inc. 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 #include "core/frame/LocalDOMWindow.h" | 55 #include "core/frame/LocalDOMWindow.h" |
| 56 #include "core/frame/LocalFrame.h" | 56 #include "core/frame/LocalFrame.h" |
| 57 #include "core/frame/LocalFrameClient.h" | 57 #include "core/frame/LocalFrameClient.h" |
| 58 #include "core/frame/Settings.h" | 58 #include "core/frame/Settings.h" |
| 59 #include "core/inspector/InspectorTraceEvents.h" | 59 #include "core/inspector/InspectorTraceEvents.h" |
| 60 #include "core/loader/FrameLoader.h" | 60 #include "core/loader/FrameLoader.h" |
| 61 #include "core/workers/WorkerGlobalScope.h" | 61 #include "core/workers/WorkerGlobalScope.h" |
| 62 #include "core/workers/WorkletGlobalScope.h" | 62 #include "core/workers/WorkletGlobalScope.h" |
| 63 #include "core/xml/XPathNSResolver.h" | 63 #include "core/xml/XPathNSResolver.h" |
| 64 #include "platform/instrumentation/tracing/TracedValue.h" | 64 #include "platform/instrumentation/tracing/TracedValue.h" |
| 65 #include "wtf/MathExtras.h" | 65 #include "platform/wtf/MathExtras.h" |
| 66 #include "wtf/StdLibExtras.h" | 66 #include "platform/wtf/StdLibExtras.h" |
| 67 #include "wtf/Threading.h" | 67 #include "platform/wtf/Threading.h" |
| 68 #include "wtf/text/AtomicString.h" | 68 #include "platform/wtf/text/AtomicString.h" |
| 69 #include "wtf/text/CString.h" | 69 #include "platform/wtf/text/CString.h" |
| 70 #include "wtf/text/CharacterNames.h" | 70 #include "platform/wtf/text/CharacterNames.h" |
| 71 #include "wtf/text/StringBuffer.h" | 71 #include "platform/wtf/text/StringBuffer.h" |
| 72 #include "wtf/text/StringHash.h" | 72 #include "platform/wtf/text/StringHash.h" |
| 73 #include "wtf/text/Unicode.h" | 73 #include "platform/wtf/text/Unicode.h" |
| 74 #include "wtf/text/WTFString.h" | 74 #include "platform/wtf/text/WTFString.h" |
| 75 | 75 |
| 76 namespace blink { | 76 namespace blink { |
| 77 | 77 |
| 78 NodeFilter* toNodeFilter(v8::Local<v8::Value> callback, | 78 NodeFilter* toNodeFilter(v8::Local<v8::Value> callback, |
| 79 v8::Local<v8::Object> creationContext, | 79 v8::Local<v8::Object> creationContext, |
| 80 ScriptState* scriptState) { | 80 ScriptState* scriptState) { |
| 81 if (callback->IsNull()) | 81 if (callback->IsNull()) |
| 82 return nullptr; | 82 return nullptr; |
| 83 NodeFilter* filter = NodeFilter::create(); | 83 NodeFilter* filter = NodeFilter::create(); |
| 84 | 84 |
| (...skipping 902 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 987 if (!v8Call(v8::JSON::Parse(isolate, v8String(isolate, stringifiedJSON)), | 987 if (!v8Call(v8::JSON::Parse(isolate, v8String(isolate, stringifiedJSON)), |
| 988 parsed, tryCatch)) { | 988 parsed, tryCatch)) { |
| 989 if (tryCatch.HasCaught()) | 989 if (tryCatch.HasCaught()) |
| 990 exceptionState.rethrowV8Exception(tryCatch.Exception()); | 990 exceptionState.rethrowV8Exception(tryCatch.Exception()); |
| 991 } | 991 } |
| 992 | 992 |
| 993 return parsed; | 993 return parsed; |
| 994 } | 994 } |
| 995 | 995 |
| 996 } // namespace blink | 996 } // namespace blink |
| OLD | NEW |