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

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

Issue 2749803003: Initialize document m_URL, m_baseURL to blankURL. (Closed)
Patch Set: Rebased. Created 3 years, 9 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
« no previous file with comments | « third_party/WebKit/LayoutTests/platform/win/external/wpt/dom/interfaces-expected.txt ('k') | no next file » | 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, 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 1426 matching lines...) Expand 10 before | Expand all | Expand 10 after
1437 Member<DocumentParser> m_parser; 1437 Member<DocumentParser> m_parser;
1438 Member<ContextFeatures> m_contextFeatures; 1438 Member<ContextFeatures> m_contextFeatures;
1439 1439
1440 // This HashMap is used to temporaily store the ComputedStyle generated in the 1440 // This HashMap is used to temporaily store the ComputedStyle generated in the
1441 // Style Resolution phase which is used in the Layout Tree construction phase. 1441 // Style Resolution phase which is used in the Layout Tree construction phase.
1442 HeapHashMap<Member<const Node>, RefPtr<ComputedStyle>> m_nonAttachedStyle; 1442 HeapHashMap<Member<const Node>, RefPtr<ComputedStyle>> m_nonAttachedStyle;
1443 1443
1444 bool m_wellFormed; 1444 bool m_wellFormed;
1445 1445
1446 // Document URLs. 1446 // Document URLs.
1447 KURL m_url; // Document.URL: The URL from which this document was retrieved. 1447 KURL m_url = blankURL(); // Document.URL: The URL from which this document
1448 KURL m_baseURL; // Node.baseURI: The URL to use when resolving relative URLs. 1448 // was retrieved.
1449 KURL m_baseURL =
1450 blankURL(); // Node.baseURI: The URL to use when resolving relative URLs.
1449 KURL m_baseURLOverride; // An alternative base URL that takes precedence over 1451 KURL m_baseURLOverride; // An alternative base URL that takes precedence over
1450 // m_baseURL (but not m_baseElementURL). 1452 // m_baseURL (but not m_baseElementURL).
1451 KURL m_baseElementURL; // The URL set by the <base> element. 1453 KURL m_baseElementURL; // The URL set by the <base> element.
1452 KURL m_cookieURL; // The URL to use for cookie access. 1454 KURL m_cookieURL; // The URL to use for cookie access.
1453 std::unique_ptr<OriginAccessEntry> m_accessEntryFromURL; 1455 std::unique_ptr<OriginAccessEntry> m_accessEntryFromURL;
1454 1456
1455 AtomicString m_baseTarget; 1457 AtomicString m_baseTarget;
1456 1458
1457 // Mime-type of the document in case it was cloned or created by XHR. 1459 // Mime-type of the document in case it was cloned or created by XHR.
1458 AtomicString m_mimeType; 1460 AtomicString m_mimeType;
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
1711 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1713 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1712 1714
1713 } // namespace blink 1715 } // namespace blink
1714 1716
1715 #ifndef NDEBUG 1717 #ifndef NDEBUG
1716 // Outside the WebCore namespace for ease of invocation from gdb. 1718 // Outside the WebCore namespace for ease of invocation from gdb.
1717 CORE_EXPORT void showLiveDocumentInstances(); 1719 CORE_EXPORT void showLiveDocumentInstances();
1718 #endif 1720 #endif
1719 1721
1720 #endif // Document_h 1722 #endif // Document_h
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/platform/win/external/wpt/dom/interfaces-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698