Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(113)

Side by Side Diff: third_party/WebKit/Source/web/WebDocument.cpp

Issue 1972503002: Add flag "distillability-dev" for distillability development Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix tests Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 316
317 bool WebDocument::manifestUseCredentials() const 317 bool WebDocument::manifestUseCredentials() const
318 { 318 {
319 const Document* document = constUnwrap<Document>(); 319 const Document* document = constUnwrap<Document>();
320 HTMLLinkElement* linkElement = document->linkManifest(); 320 HTMLLinkElement* linkElement = document->linkManifest();
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(bool dumpInfo)
327 { 327 {
328 return DocumentStatisticsCollector::collectStatistics(*unwrap<Document>()); 328 return DocumentStatisticsCollector::collectStatistics(*unwrap<Document>(), d umpInfo);
329 } 329 }
330 330
331 WebDocument::WebDocument(Document* elem) 331 WebDocument::WebDocument(Document* elem)
332 : WebNode(elem) 332 : WebNode(elem)
333 { 333 {
334 } 334 }
335 335
336 DEFINE_WEB_NODE_TYPE_CASTS(WebDocument, constUnwrap<Node>()->isDocumentNode()); 336 DEFINE_WEB_NODE_TYPE_CASTS(WebDocument, constUnwrap<Node>()->isDocumentNode());
337 337
338 WebDocument& WebDocument::operator=(Document*elem) 338 WebDocument& WebDocument::operator=(Document*elem)
339 { 339 {
340 m_private = elem; 340 m_private = elem;
341 return *this; 341 return *this;
342 } 342 }
343 343
344 WebDocument::operator Document*() const 344 WebDocument::operator 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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698