| 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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 WebElement WebDocument::fullScreenElement() const | 237 WebElement WebDocument::fullScreenElement() const |
| 238 { | 238 { |
| 239 Element* fullScreenElement = 0; | 239 Element* fullScreenElement = 0; |
| 240 if (Fullscreen* fullscreen = Fullscreen::fromIfExists(*const_cast<WebDocumen
t*>(this)->unwrap<Document>())) | 240 if (Fullscreen* fullscreen = Fullscreen::fromIfExists(*const_cast<WebDocumen
t*>(this)->unwrap<Document>())) |
| 241 fullScreenElement = fullscreen->webkitCurrentFullScreenElement(); | 241 fullScreenElement = fullscreen->webkitCurrentFullScreenElement(); |
| 242 return WebElement(fullScreenElement); | 242 return WebElement(fullScreenElement); |
| 243 } | 243 } |
| 244 | 244 |
| 245 WebReferrerPolicy WebDocument::referrerPolicy() const | 245 WebReferrerPolicy WebDocument::referrerPolicy() const |
| 246 { | 246 { |
| 247 return static_cast<WebReferrerPolicy>(constUnwrap<Document>()->referrerPolic
y()); | 247 return static_cast<WebReferrerPolicy>(constUnwrap<Document>()->getReferrerPo
licy()); |
| 248 } | 248 } |
| 249 | 249 |
| 250 WebString WebDocument::outgoingReferrer() | 250 WebString WebDocument::outgoingReferrer() |
| 251 { | 251 { |
| 252 return WebString(unwrap<Document>()->outgoingReferrer()); | 252 return WebString(unwrap<Document>()->outgoingReferrer()); |
| 253 } | 253 } |
| 254 | 254 |
| 255 WebAXObject WebDocument::accessibilityObject() const | 255 WebAXObject WebDocument::accessibilityObject() const |
| 256 { | 256 { |
| 257 const Document* document = constUnwrap<Document>(); | 257 const Document* document = constUnwrap<Document>(); |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 340 m_private = elem; | 340 m_private = elem; |
| 341 return *this; | 341 return *this; |
| 342 } | 342 } |
| 343 | 343 |
| 344 WebDocument::operator PassRefPtrWillBeRawPtr<Document>() const | 344 WebDocument::operator PassRefPtrWillBeRawPtr<Document>() const |
| 345 { | 345 { |
| 346 return toDocument(m_private.get()); | 346 return toDocument(m_private.get()); |
| 347 } | 347 } |
| 348 | 348 |
| 349 } // namespace blink | 349 } // namespace blink |
| OLD | NEW |