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

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

Issue 2831753002: Node.prototype.baseURI should not be nullable (Closed)
Patch Set: Created 3 years, 8 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) 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, 2010, 2012 Apple Inc. All 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 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) 2010 Nokia Corporation and/or its subsidiary(-ies) 10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
(...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after
602 // Return the document URL, or an empty URL if it's unavailable. 602 // Return the document URL, or an empty URL if it's unavailable.
603 // This is not an implementation of web-exposed Document.prototype.URL. 603 // This is not an implementation of web-exposed Document.prototype.URL.
604 const KURL& Url() const { return url_; } 604 const KURL& Url() const { return url_; }
605 void SetURL(const KURL&); 605 void SetURL(const KURL&);
606 606
607 // Bind the url to document.url, if unavailable bind to about:blank. 607 // Bind the url to document.url, if unavailable bind to about:blank.
608 KURL urlForBinding(); 608 KURL urlForBinding();
609 609
610 // To understand how these concepts relate to one another, please see the 610 // To understand how these concepts relate to one another, please see the
611 // comments surrounding their declaration. 611 // comments surrounding their declaration.
612 const KURL& BaseURL() const { return base_url_; } 612 const KURL& BaseURL() const;
613 void SetBaseURLOverride(const KURL&); 613 void SetBaseURLOverride(const KURL&);
614 const KURL& BaseURLOverride() const { return base_url_override_; } 614 const KURL& BaseURLOverride() const { return base_url_override_; }
615 KURL ValidBaseElementURL() const; 615 KURL ValidBaseElementURL() const;
616 const AtomicString& BaseTarget() const { return base_target_; } 616 const AtomicString& BaseTarget() const { return base_target_; }
617 void ProcessBaseElement(); 617 void ProcessBaseElement();
618 618
619 // Creates URL based on passed relative url and this documents base URL. 619 // Creates URL based on passed relative url and this documents base URL.
620 // Depending on base URL value it is possible that parent document 620 // Depending on base URL value it is possible that parent document
621 // base URL will be used instead. Uses completeURLWithOverride internally. 621 // base URL will be used instead. Uses completeURLWithOverride internally.
622 KURL CompleteURL(const String&) const; 622 KURL CompleteURL(const String&) const;
(...skipping 1109 matching lines...) Expand 10 before | Expand all | Expand 10 after
1732 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1732 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1733 1733
1734 } // namespace blink 1734 } // namespace blink
1735 1735
1736 #ifndef NDEBUG 1736 #ifndef NDEBUG
1737 // Outside the WebCore namespace for ease of invocation from gdb. 1737 // Outside the WebCore namespace for ease of invocation from gdb.
1738 CORE_EXPORT void showLiveDocumentInstances(); 1738 CORE_EXPORT void showLiveDocumentInstances();
1739 #endif 1739 #endif
1740 1740
1741 #endif // Document_h 1741 #endif // Document_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698