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

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

Issue 2629603003: Added constness to the hashmap on Document. (Closed)
Patch Set: Created 3 years, 11 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 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 Element* createElementNS(const AtomicString& namespaceURI, 338 Element* createElementNS(const AtomicString& namespaceURI,
339 const AtomicString& qualifiedName, 339 const AtomicString& qualifiedName,
340 ExceptionState&); 340 ExceptionState&);
341 Element* createElement(const QualifiedName&, CreateElementFlags); 341 Element* createElement(const QualifiedName&, CreateElementFlags);
342 342
343 Element* elementFromPoint(int x, int y) const; 343 Element* elementFromPoint(int x, int y) const;
344 HeapVector<Member<Element>> elementsFromPoint(int x, int y) const; 344 HeapVector<Member<Element>> elementsFromPoint(int x, int y) const;
345 Range* caretRangeFromPoint(int x, int y); 345 Range* caretRangeFromPoint(int x, int y);
346 Element* scrollingElement(); 346 Element* scrollingElement();
347 347
348 void addStyleReattachData(Node&, StyleReattachData&); 348 void addStyleReattachData(const Node&, StyleReattachData&);
349 StyleReattachData getStyleReattachData(Node&); 349 StyleReattachData getStyleReattachData(const Node&) const;
350 350
351 String readyState() const; 351 String readyState() const;
352 352
353 AtomicString characterSet() const { return Document::encodingName(); } 353 AtomicString characterSet() const { return Document::encodingName(); }
354 354
355 AtomicString encodingName() const; 355 AtomicString encodingName() const;
356 356
357 void setContent(const String&); 357 void setContent(const String&);
358 358
359 String suggestedMIMEType() const; 359 String suggestedMIMEType() const;
(...skipping 1079 matching lines...) Expand 10 before | Expand all | Expand 10 after
1439 Member<LocalDOMWindow> m_domWindow; 1439 Member<LocalDOMWindow> m_domWindow;
1440 TraceWrapperMember<HTMLImportsController> m_importsController; 1440 TraceWrapperMember<HTMLImportsController> m_importsController;
1441 1441
1442 Member<ResourceFetcher> m_fetcher; 1442 Member<ResourceFetcher> m_fetcher;
1443 Member<DocumentParser> m_parser; 1443 Member<DocumentParser> m_parser;
1444 Member<ContextFeatures> m_contextFeatures; 1444 Member<ContextFeatures> m_contextFeatures;
1445 1445
1446 // This HashMap is used to stash information (ComputedStyle, nextTextSibling) 1446 // This HashMap is used to stash information (ComputedStyle, nextTextSibling)
1447 // generated in the Style Resolution phase that is required in the 1447 // generated in the Style Resolution phase that is required in the
1448 // Layout Tree construction phase. 1448 // Layout Tree construction phase.
1449 HeapHashMap<Member<Node>, StyleReattachData> m_styleReattachDataMap; 1449 HeapHashMap<Member<const Node>, StyleReattachData> m_styleReattachDataMap;
1450 1450
1451 bool m_wellFormed; 1451 bool m_wellFormed;
1452 1452
1453 // Document URLs. 1453 // Document URLs.
1454 KURL m_url; // Document.URL: The URL from which this document was retrieved. 1454 KURL m_url; // Document.URL: The URL from which this document was retrieved.
1455 KURL m_baseURL; // Node.baseURI: The URL to use when resolving relative URLs. 1455 KURL m_baseURL; // Node.baseURI: The URL to use when resolving relative URLs.
1456 KURL m_baseURLOverride; // An alternative base URL that takes precedence over 1456 KURL m_baseURLOverride; // An alternative base URL that takes precedence over
1457 // m_baseURL (but not m_baseElementURL). 1457 // m_baseURL (but not m_baseElementURL).
1458 KURL m_baseElementURL; // The URL set by the <base> element. 1458 KURL m_baseElementURL; // The URL set by the <base> element.
1459 KURL m_cookieURL; // The URL to use for cookie access. 1459 KURL m_cookieURL; // The URL to use for cookie access.
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
1718 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1718 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1719 1719
1720 } // namespace blink 1720 } // namespace blink
1721 1721
1722 #ifndef NDEBUG 1722 #ifndef NDEBUG
1723 // Outside the WebCore namespace for ease of invocation from gdb. 1723 // Outside the WebCore namespace for ease of invocation from gdb.
1724 CORE_EXPORT void showLiveDocumentInstances(); 1724 CORE_EXPORT void showLiveDocumentInstances();
1725 #endif 1725 #endif
1726 1726
1727 #endif // Document_h 1727 #endif // Document_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | third_party/WebKit/Source/core/dom/Document.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698