OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009 Apple Inc. All rights reserved. |
3 * Copyright (C) 2011 Google Inc. All rights reserved. | 3 * Copyright (C) 2011 Google Inc. All rights reserved. |
4 * Copyright (C) 2009 Joseph Pecoraro | 4 * Copyright (C) 2009 Joseph Pecoraro |
5 * | 5 * |
6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
8 * are met: | 8 * are met: |
9 * | 9 * |
10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 quad->setP1(FloatPoint(quadArray->get(0), quadArray->get(1))); | 123 quad->setP1(FloatPoint(quadArray->get(0), quadArray->get(1))); |
124 quad->setP2(FloatPoint(quadArray->get(2), quadArray->get(3))); | 124 quad->setP2(FloatPoint(quadArray->get(2), quadArray->get(3))); |
125 quad->setP3(FloatPoint(quadArray->get(4), quadArray->get(5))); | 125 quad->setP3(FloatPoint(quadArray->get(4), quadArray->get(5))); |
126 quad->setP4(FloatPoint(quadArray->get(6), quadArray->get(7))); | 126 quad->setP4(FloatPoint(quadArray->get(6), quadArray->get(7))); |
127 return true; | 127 return true; |
128 } | 128 } |
129 | 129 |
130 v8::Local<v8::Value> nodeV8Value(v8::Local<v8::Context> context, Node* node) | 130 v8::Local<v8::Value> nodeV8Value(v8::Local<v8::Context> context, Node* node) |
131 { | 131 { |
132 v8::Isolate* isolate = context->GetIsolate(); | 132 v8::Isolate* isolate = context->GetIsolate(); |
133 ExceptionState exceptionState(ExceptionState::ExecutionContext, "nodeV8Value
", "InjectedScriptHost", context->Global(), isolate); | 133 if (!node || !BindingSecurity::shouldAllowAccessTo(currentDOMWindow(isolate)
, node, BindingSecurity::ErrorReportOption::DoNotReport)) |
134 if (!node || !BindingSecurity::shouldAllowAccessTo(currentDOMWindow(isolate)
, node, exceptionState)) | |
135 return v8::Null(isolate); | 134 return v8::Null(isolate); |
136 return toV8(node, context->Global(), isolate); | 135 return toV8(node, context->Global(), isolate); |
137 } | 136 } |
138 | 137 |
139 } // namespace | 138 } // namespace |
140 | 139 |
141 class InspectorRevalidateDOMTask final : public GarbageCollectedFinalized<Inspec
torRevalidateDOMTask> { | 140 class InspectorRevalidateDOMTask final : public GarbageCollectedFinalized<Inspec
torRevalidateDOMTask> { |
142 public: | 141 public: |
143 explicit InspectorRevalidateDOMTask(InspectorDOMAgent*); | 142 explicit InspectorRevalidateDOMTask(InspectorDOMAgent*); |
144 void scheduleStyleAttrRevalidationFor(Element*); | 143 void scheduleStyleAttrRevalidationFor(Element*); |
(...skipping 1933 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2078 visitor->trace(m_idToNodesMap); | 2077 visitor->trace(m_idToNodesMap); |
2079 visitor->trace(m_document); | 2078 visitor->trace(m_document); |
2080 visitor->trace(m_revalidateTask); | 2079 visitor->trace(m_revalidateTask); |
2081 visitor->trace(m_searchResults); | 2080 visitor->trace(m_searchResults); |
2082 visitor->trace(m_history); | 2081 visitor->trace(m_history); |
2083 visitor->trace(m_domEditor); | 2082 visitor->trace(m_domEditor); |
2084 InspectorBaseAgent::trace(visitor); | 2083 InspectorBaseAgent::trace(visitor); |
2085 } | 2084 } |
2086 | 2085 |
2087 } // namespace blink | 2086 } // namespace blink |
OLD | NEW |