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 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
321 if (!linkElement) | 321 if (!linkElement) |
322 return false; | 322 return false; |
323 return equalIgnoringCase(linkElement->fastGetAttribute(HTMLNames::crossorigi nAttr), "use-credentials"); | 323 return equalIgnoringCase(linkElement->fastGetAttribute(HTMLNames::crossorigi nAttr), "use-credentials"); |
324 } | 324 } |
325 | 325 |
326 WebDistillabilityFeatures WebDocument::distillabilityFeatures() | 326 WebDistillabilityFeatures WebDocument::distillabilityFeatures() |
327 { | 327 { |
328 return DocumentStatisticsCollector::collectStatistics(*unwrap<Document>()); | 328 return DocumentStatisticsCollector::collectStatistics(*unwrap<Document>()); |
329 } | 329 } |
330 | 330 |
331 bool WebDocument::attemptedToDetermineEncodingFromContentSniffing() const | |
332 { | |
333 const Document* document = constUnwrap<Document>(); | |
334 return document->attemptedToDetermineEncodingFromContentSniffing(); | |
335 } | |
336 | |
337 bool WebDocument::encodingWasDetectedFromContentSniffing() const | |
338 { | |
339 const Document* document = constUnwrap<Document>(); | |
340 return document->encodingWasDetectedFromContentSniffing(); | |
341 } | |
331 WebDocument::WebDocument(const PassRefPtrWillBeRawPtr<Document>& elem) | 342 WebDocument::WebDocument(const PassRefPtrWillBeRawPtr<Document>& elem) |
tkent
2015/12/01 01:18:02
nit: add a blank line between functions.
Jinsuk Kim
2015/12/01 02:13:52
Done.
| |
332 : WebNode(elem) | 343 : WebNode(elem) |
333 { | 344 { |
334 } | 345 } |
335 | 346 |
336 DEFINE_WEB_NODE_TYPE_CASTS(WebDocument, constUnwrap<Node>()->isDocumentNode()); | 347 DEFINE_WEB_NODE_TYPE_CASTS(WebDocument, constUnwrap<Node>()->isDocumentNode()); |
337 | 348 |
338 WebDocument& WebDocument::operator=(const PassRefPtrWillBeRawPtr<Document>& elem ) | 349 WebDocument& WebDocument::operator=(const PassRefPtrWillBeRawPtr<Document>& elem ) |
339 { | 350 { |
340 m_private = elem; | 351 m_private = elem; |
341 return *this; | 352 return *this; |
342 } | 353 } |
343 | 354 |
344 WebDocument::operator PassRefPtrWillBeRawPtr<Document>() const | 355 WebDocument::operator PassRefPtrWillBeRawPtr<Document>() const |
345 { | 356 { |
346 return toDocument(m_private.get()); | 357 return toDocument(m_private.get()); |
347 } | 358 } |
348 | 359 |
349 } // namespace blink | 360 } // namespace blink |
OLD | NEW |