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

Side by Side Diff: third_party/WebKit/Source/core/dom/Document.cpp

Issue 2573043002: Update stale links to dvcs.w3.org (Closed)
Patch Set: https Created 4 years 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Document.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All
7 * rights reserved. 7 * rights reserved.
8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved.
9 * (http://www.torchmobile.com/) 9 * (http://www.torchmobile.com/)
10 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. 10 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved.
(...skipping 1501 matching lines...) Expand 10 before | Expand all | Expand 10 after
1512 void Document::setDir(const AtomicString& value) { 1512 void Document::setDir(const AtomicString& value) {
1513 Element* rootElement = documentElement(); 1513 Element* rootElement = documentElement();
1514 if (isHTMLHtmlElement(rootElement)) 1514 if (isHTMLHtmlElement(rootElement))
1515 toHTMLHtmlElement(rootElement)->setDir(value); 1515 toHTMLHtmlElement(rootElement)->setDir(value);
1516 } 1516 }
1517 1517
1518 PageVisibilityState Document::pageVisibilityState() const { 1518 PageVisibilityState Document::pageVisibilityState() const {
1519 // The visibility of the document is inherited from the visibility of the 1519 // The visibility of the document is inherited from the visibility of the
1520 // page. If there is no page associated with the document, we will assume 1520 // page. If there is no page associated with the document, we will assume
1521 // that the page is hidden, as specified by the spec: 1521 // that the page is hidden, as specified by the spec:
1522 // http://dvcs.w3.org/hg/webperf/raw-file/tip/specs/PageVisibility/Overview.ht ml#dom-document-hidden 1522 // https://w3c.github.io/page-visibility/#hidden-attribute
1523 if (!m_frame || !m_frame->page()) 1523 if (!m_frame || !m_frame->page())
1524 return PageVisibilityStateHidden; 1524 return PageVisibilityStateHidden;
1525 // While visibilitychange is being dispatched during unloading it is 1525 // While visibilitychange is being dispatched during unloading it is
1526 // expected that the visibility is hidden regardless of the page's 1526 // expected that the visibility is hidden regardless of the page's
1527 // visibility. 1527 // visibility.
1528 if (m_loadEventProgress >= UnloadVisibilityChangeInProgress) 1528 if (m_loadEventProgress >= UnloadVisibilityChangeInProgress)
1529 return PageVisibilityStateHidden; 1529 return PageVisibilityStateHidden;
1530 return m_frame->page()->visibilityState(); 1530 return m_frame->page()->visibilityState();
1531 } 1531 }
1532 1532
(...skipping 5039 matching lines...) Expand 10 before | Expand all | Expand 10 after
6572 } 6572 }
6573 6573
6574 void showLiveDocumentInstances() { 6574 void showLiveDocumentInstances() {
6575 WeakDocumentSet& set = liveDocumentSet(); 6575 WeakDocumentSet& set = liveDocumentSet();
6576 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); 6576 fprintf(stderr, "There are %u documents currently alive:\n", set.size());
6577 for (Document* document : set) 6577 for (Document* document : set)
6578 fprintf(stderr, "- Document %p URL: %s\n", document, 6578 fprintf(stderr, "- Document %p URL: %s\n", document,
6579 document->url().getString().utf8().data()); 6579 document->url().getString().utf8().data());
6580 } 6580 }
6581 #endif 6581 #endif
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Document.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698