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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 | 68 |
69 using namespace WebCore; | 69 using namespace WebCore; |
70 | 70 |
71 namespace blink { | 71 namespace blink { |
72 | 72 |
73 WebURL WebDocument::url() const | 73 WebURL WebDocument::url() const |
74 { | 74 { |
75 return constUnwrap<Document>()->url(); | 75 return constUnwrap<Document>()->url(); |
76 } | 76 } |
77 | 77 |
| 78 WebURL WebDocument::inheritedURL() const |
| 79 { |
| 80 return constUnwrap<Document>()->inheritedURL(); |
| 81 } |
| 82 |
78 WebSecurityOrigin WebDocument::securityOrigin() const | 83 WebSecurityOrigin WebDocument::securityOrigin() const |
79 { | 84 { |
80 if (!constUnwrap<Document>()) | 85 if (!constUnwrap<Document>()) |
81 return WebSecurityOrigin(); | 86 return WebSecurityOrigin(); |
82 return WebSecurityOrigin(constUnwrap<Document>()->securityOrigin()); | 87 return WebSecurityOrigin(constUnwrap<Document>()->securityOrigin()); |
83 } | 88 } |
84 | 89 |
85 WebString WebDocument::encoding() const | 90 WebString WebDocument::encoding() const |
86 { | 91 { |
87 return constUnwrap<Document>()->encodingName(); | 92 return constUnwrap<Document>()->encodingName(); |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 m_private = elem; | 316 m_private = elem; |
312 return *this; | 317 return *this; |
313 } | 318 } |
314 | 319 |
315 WebDocument::operator PassRefPtr<Document>() const | 320 WebDocument::operator PassRefPtr<Document>() const |
316 { | 321 { |
317 return toDocument(m_private.get()); | 322 return toDocument(m_private.get()); |
318 } | 323 } |
319 | 324 |
320 } // namespace blink | 325 } // namespace blink |
OLD | NEW |