| 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 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 300 return WebURL(); | 300 return WebURL(); |
| 301 return linkElement->href(); | 301 return linkElement->href(); |
| 302 } | 302 } |
| 303 | 303 |
| 304 bool WebDocument::manifestUseCredentials() const | 304 bool WebDocument::manifestUseCredentials() const |
| 305 { | 305 { |
| 306 const Document* document = constUnwrap<Document>(); | 306 const Document* document = constUnwrap<Document>(); |
| 307 HTMLLinkElement* linkElement = document->linkManifest(); | 307 HTMLLinkElement* linkElement = document->linkManifest(); |
| 308 if (!linkElement) | 308 if (!linkElement) |
| 309 return false; | 309 return false; |
| 310 return equalIgnoringCase(linkElement->fastGetAttribute(HTMLNames::crossorigi
nAttr), "use-credentials"); | 310 return equalIgnoringASCIICase(linkElement->fastGetAttribute(HTMLNames::cross
originAttr), "use-credentials"); |
| 311 } | 311 } |
| 312 | 312 |
| 313 WebDistillabilityFeatures WebDocument::distillabilityFeatures() | 313 WebDistillabilityFeatures WebDocument::distillabilityFeatures() |
| 314 { | 314 { |
| 315 return DocumentStatisticsCollector::collectStatistics(*unwrap<Document>()); | 315 return DocumentStatisticsCollector::collectStatistics(*unwrap<Document>()); |
| 316 } | 316 } |
| 317 | 317 |
| 318 WebDocument::WebDocument(Document* elem) | 318 WebDocument::WebDocument(Document* elem) |
| 319 : WebNode(elem) | 319 : WebNode(elem) |
| 320 { | 320 { |
| 321 } | 321 } |
| 322 | 322 |
| 323 DEFINE_WEB_NODE_TYPE_CASTS(WebDocument, constUnwrap<Node>()->isDocumentNode()); | 323 DEFINE_WEB_NODE_TYPE_CASTS(WebDocument, constUnwrap<Node>()->isDocumentNode()); |
| 324 | 324 |
| 325 WebDocument& WebDocument::operator=(Document*elem) | 325 WebDocument& WebDocument::operator=(Document*elem) |
| 326 { | 326 { |
| 327 m_private = elem; | 327 m_private = elem; |
| 328 return *this; | 328 return *this; |
| 329 } | 329 } |
| 330 | 330 |
| 331 WebDocument::operator Document*() const | 331 WebDocument::operator Document*() const |
| 332 { | 332 { |
| 333 return toDocument(m_private.get()); | 333 return toDocument(m_private.get()); |
| 334 } | 334 } |
| 335 | 335 |
| 336 } // namespace blink | 336 } // namespace blink |
| OLD | NEW |