| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 #include "core/dom/DocumentType.h" | 42 #include "core/dom/DocumentType.h" |
| 43 #include "core/dom/Element.h" | 43 #include "core/dom/Element.h" |
| 44 #include "core/dom/Fullscreen.h" | 44 #include "core/dom/Fullscreen.h" |
| 45 #include "core/dom/StyleEngine.h" | 45 #include "core/dom/StyleEngine.h" |
| 46 #include "core/html/HTMLAllCollection.h" | 46 #include "core/html/HTMLAllCollection.h" |
| 47 #include "core/html/HTMLBodyElement.h" | 47 #include "core/html/HTMLBodyElement.h" |
| 48 #include "core/html/HTMLCollection.h" | 48 #include "core/html/HTMLCollection.h" |
| 49 #include "core/html/HTMLElement.h" | 49 #include "core/html/HTMLElement.h" |
| 50 #include "core/html/HTMLFormElement.h" | 50 #include "core/html/HTMLFormElement.h" |
| 51 #include "core/html/HTMLHeadElement.h" | 51 #include "core/html/HTMLHeadElement.h" |
| 52 #include "core/html/HTMLLinkElement.h" |
| 52 #include "core/loader/DocumentLoader.h" | 53 #include "core/loader/DocumentLoader.h" |
| 53 #include "core/rendering/RenderObject.h" | 54 #include "core/rendering/RenderObject.h" |
| 54 #include "core/rendering/RenderView.h" | 55 #include "core/rendering/RenderView.h" |
| 55 #include "platform/weborigin/SecurityOrigin.h" | 56 #include "platform/weborigin/SecurityOrigin.h" |
| 56 #include "public/platform/WebURL.h" | 57 #include "public/platform/WebURL.h" |
| 57 #include "public/web/WebAXObject.h" | 58 #include "public/web/WebAXObject.h" |
| 58 #include "public/web/WebDOMEvent.h" | 59 #include "public/web/WebDOMEvent.h" |
| 59 #include "public/web/WebDocumentType.h" | 60 #include "public/web/WebDocumentType.h" |
| 60 #include "public/web/WebElement.h" | 61 #include "public/web/WebElement.h" |
| 61 #include "public/web/WebElementCollection.h" | 62 #include "public/web/WebElementCollection.h" |
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 329 Document* document = unwrap<Document>(); | 330 Document* document = unwrap<Document>(); |
| 330 Dictionary dictionary(options, isolate); | 331 Dictionary dictionary(options, isolate); |
| 331 TrackExceptionState exceptionState; | 332 TrackExceptionState exceptionState; |
| 332 ScriptValue constructor = document->registerElement(ScriptState::current(iso
late), name, dictionary, exceptionState, CustomElement::EmbedderNames); | 333 ScriptValue constructor = document->registerElement(ScriptState::current(iso
late), name, dictionary, exceptionState, CustomElement::EmbedderNames); |
| 333 ec = exceptionState.code(); | 334 ec = exceptionState.code(); |
| 334 if (exceptionState.hadException()) | 335 if (exceptionState.hadException()) |
| 335 return v8::Handle<v8::Value>(); | 336 return v8::Handle<v8::Value>(); |
| 336 return constructor.v8Value(); | 337 return constructor.v8Value(); |
| 337 } | 338 } |
| 338 | 339 |
| 340 WebURL WebDocument::manifestURL() const |
| 341 { |
| 342 const Document* document = constUnwrap<Document>(); |
| 343 HTMLLinkElement* linkElement = document->linkManifest(); |
| 344 if (!linkElement) |
| 345 return WebURL(); |
| 346 return linkElement->href(); |
| 347 } |
| 348 |
| 339 WebDocument::WebDocument(const PassRefPtrWillBeRawPtr<Document>& elem) | 349 WebDocument::WebDocument(const PassRefPtrWillBeRawPtr<Document>& elem) |
| 340 : WebNode(elem) | 350 : WebNode(elem) |
| 341 { | 351 { |
| 342 } | 352 } |
| 343 | 353 |
| 344 WebDocument& WebDocument::operator=(const PassRefPtrWillBeRawPtr<Document>& elem
) | 354 WebDocument& WebDocument::operator=(const PassRefPtrWillBeRawPtr<Document>& elem
) |
| 345 { | 355 { |
| 346 m_private = elem; | 356 m_private = elem; |
| 347 return *this; | 357 return *this; |
| 348 } | 358 } |
| 349 | 359 |
| 350 WebDocument::operator PassRefPtrWillBeRawPtr<Document>() const | 360 WebDocument::operator PassRefPtrWillBeRawPtr<Document>() const |
| 351 { | 361 { |
| 352 return toDocument(m_private.get()); | 362 return toDocument(m_private.get()); |
| 353 } | 363 } |
| 354 | 364 |
| 355 } // namespace blink | 365 } // namespace blink |
| OLD | NEW |