OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 #include "core/dom/StyleEngine.h" | 47 #include "core/dom/StyleEngine.h" |
48 #include "core/html/HTMLAllCollection.h" | 48 #include "core/html/HTMLAllCollection.h" |
49 #include "core/html/HTMLBodyElement.h" | 49 #include "core/html/HTMLBodyElement.h" |
50 #include "core/html/HTMLCollection.h" | 50 #include "core/html/HTMLCollection.h" |
51 #include "core/html/HTMLElement.h" | 51 #include "core/html/HTMLElement.h" |
52 #include "core/html/HTMLFormElement.h" | 52 #include "core/html/HTMLFormElement.h" |
53 #include "core/html/HTMLHeadElement.h" | 53 #include "core/html/HTMLHeadElement.h" |
54 #include "core/loader/DocumentLoader.h" | 54 #include "core/loader/DocumentLoader.h" |
55 #include "core/rendering/RenderObject.h" | 55 #include "core/rendering/RenderObject.h" |
56 #include "core/rendering/RenderView.h" | 56 #include "core/rendering/RenderView.h" |
| 57 #include "modules/InitModules.h" |
57 #include "platform/weborigin/SecurityOrigin.h" | 58 #include "platform/weborigin/SecurityOrigin.h" |
58 #include "public/platform/WebURL.h" | 59 #include "public/platform/WebURL.h" |
59 #include "public/web/WebAXObject.h" | 60 #include "public/web/WebAXObject.h" |
60 #include "public/web/WebDOMEvent.h" | 61 #include "public/web/WebDOMEvent.h" |
61 #include "public/web/WebDocumentType.h" | 62 #include "public/web/WebDocumentType.h" |
62 #include "public/web/WebElement.h" | 63 #include "public/web/WebElement.h" |
63 #include "public/web/WebElementCollection.h" | 64 #include "public/web/WebElementCollection.h" |
64 #include "public/web/WebFormElement.h" | 65 #include "public/web/WebFormElement.h" |
65 #include "public/web/WebNodeList.h" | 66 #include "public/web/WebNodeList.h" |
66 #include "web/WebLocalFrameImpl.h" | 67 #include "web/WebLocalFrameImpl.h" |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 { | 235 { |
235 Element* fullScreenElement = 0; | 236 Element* fullScreenElement = 0; |
236 if (FullscreenElementStack* fullscreen = FullscreenElementStack::fromIfExist
s(*const_cast<WebDocument*>(this)->unwrap<Document>())) | 237 if (FullscreenElementStack* fullscreen = FullscreenElementStack::fromIfExist
s(*const_cast<WebDocument*>(this)->unwrap<Document>())) |
237 fullScreenElement = fullscreen->webkitCurrentFullScreenElement(); | 238 fullScreenElement = fullscreen->webkitCurrentFullScreenElement(); |
238 return WebElement(fullScreenElement); | 239 return WebElement(fullScreenElement); |
239 } | 240 } |
240 | 241 |
241 WebDOMEvent WebDocument::createEvent(const WebString& eventType) | 242 WebDOMEvent WebDocument::createEvent(const WebString& eventType) |
242 { | 243 { |
243 TrackExceptionState exceptionState; | 244 TrackExceptionState exceptionState; |
244 WebDOMEvent event(unwrap<Document>()->createEvent(eventType, exceptionState)
); | 245 WebDOMEvent event(createEventModules(eventType, exceptionState)); |
245 if (exceptionState.hadException()) | 246 if (exceptionState.hadException()) |
246 return WebDOMEvent(); | 247 return WebDOMEvent(); |
247 return event; | 248 return event; |
248 } | 249 } |
249 | 250 |
250 WebReferrerPolicy WebDocument::referrerPolicy() const | 251 WebReferrerPolicy WebDocument::referrerPolicy() const |
251 { | 252 { |
252 return static_cast<WebReferrerPolicy>(constUnwrap<Document>()->referrerPolic
y()); | 253 return static_cast<WebReferrerPolicy>(constUnwrap<Document>()->referrerPolic
y()); |
253 } | 254 } |
254 | 255 |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 m_private = elem; | 313 m_private = elem; |
313 return *this; | 314 return *this; |
314 } | 315 } |
315 | 316 |
316 WebDocument::operator PassRefPtrWillBeRawPtr<Document>() const | 317 WebDocument::operator PassRefPtrWillBeRawPtr<Document>() const |
317 { | 318 { |
318 return toDocument(m_private.get()); | 319 return toDocument(m_private.get()); |
319 } | 320 } |
320 | 321 |
321 } // namespace blink | 322 } // namespace blink |
OLD | NEW |