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

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

Issue 1876843002: Introduce few const getters for dom classes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 r ights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
9 * Copyright (C) 2011 Google Inc. All rights reserved. 9 * Copyright (C) 2011 Google Inc. All rights reserved.
10 * 10 *
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 void setViewportDescription(const ViewportDescription&); 269 void setViewportDescription(const ViewportDescription&);
270 const ViewportDescription& viewportDescription() const { return m_viewportDe scription; } 270 const ViewportDescription& viewportDescription() const { return m_viewportDe scription; }
271 Length viewportDefaultMinWidth() const { return m_viewportDefaultMinWidth; } 271 Length viewportDefaultMinWidth() const { return m_viewportDefaultMinWidth; }
272 272
273 String outgoingReferrer() const override; 273 String outgoingReferrer() const override;
274 274
275 void setDoctype(DocumentType*); 275 void setDoctype(DocumentType*);
276 DocumentType* doctype() const { return m_docType.get(); } 276 DocumentType* doctype() const { return m_docType.get(); }
277 277
278 DOMImplementation& implementation(); 278 DOMImplementation& implementation();
279 DOMImplementation* maybeImplementation() const;
279 280
280 Element* documentElement() const 281 Element* documentElement() const
281 { 282 {
282 return m_documentElement.get(); 283 return m_documentElement.get();
283 } 284 }
284 285
285 // Returns whether the Document has an AppCache manifest. 286 // Returns whether the Document has an AppCache manifest.
286 bool hasAppCacheManifest() const; 287 bool hasAppCacheManifest() const;
287 288
288 Location* location() const; 289 Location* location() const;
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 bool isViewSource() const { return m_isViewSource; } 377 bool isViewSource() const { return m_isViewSource; }
377 void setIsViewSource(bool); 378 void setIsViewSource(bool);
378 379
379 bool sawElementsInKnownNamespaces() const { return m_sawElementsInKnownNames paces; } 380 bool sawElementsInKnownNamespaces() const { return m_sawElementsInKnownNames paces; }
380 381
381 bool isRenderingReady() const { return haveImportsLoaded() && haveStylesheet sLoaded(); } 382 bool isRenderingReady() const { return haveImportsLoaded() && haveStylesheet sLoaded(); }
382 bool isScriptExecutionReady() const { return isRenderingReady(); } 383 bool isScriptExecutionReady() const { return isRenderingReady(); }
383 384
384 // This is a DOM function. 385 // This is a DOM function.
385 StyleSheetList* styleSheets(); 386 StyleSheetList* styleSheets();
387 StyleSheetList* maybeStyleSheets() const;
386 388
387 StyleEngine& styleEngine() { DCHECK(m_styleEngine.get()); return *m_styleEng ine.get(); } 389 StyleEngine& styleEngine() { DCHECK(m_styleEngine.get()); return *m_styleEng ine.get(); }
388 390
389 bool gotoAnchorNeededAfterStylesheetsLoad() { return m_gotoAnchorNeededAfter StylesheetsLoad; } 391 bool gotoAnchorNeededAfterStylesheetsLoad() { return m_gotoAnchorNeededAfter StylesheetsLoad; }
390 void setGotoAnchorNeededAfterStylesheetsLoad(bool b) { m_gotoAnchorNeededAft erStylesheetsLoad = b; } 392 void setGotoAnchorNeededAfterStylesheetsLoad(bool b) { m_gotoAnchorNeededAft erStylesheetsLoad = b; }
391 393
392 void scheduleUseShadowTreeUpdate(SVGUseElement&); 394 void scheduleUseShadowTreeUpdate(SVGUseElement&);
393 void unscheduleUseShadowTreeUpdate(SVGUseElement&); 395 void unscheduleUseShadowTreeUpdate(SVGUseElement&);
394 396
395 // FIXME: SVG filters should change to store the filter on the ComputedStyle 397 // FIXME: SVG filters should change to store the filter on the ComputedStyle
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
529 KURL completeURLWithOverride(const String&, const KURL& baseURLOverride) con st; 531 KURL completeURLWithOverride(const String&, const KURL& baseURLOverride) con st;
530 // Determines which base URL should be used given specified override. 532 // Determines which base URL should be used given specified override.
531 // If override is empty or is about:blank url and parent document exists 533 // If override is empty or is about:blank url and parent document exists
532 // base URL of parent will be returned, passed base URL override otherwise. 534 // base URL of parent will be returned, passed base URL override otherwise.
533 const KURL& baseURLForOverride(const KURL& baseURLOverride) const; 535 const KURL& baseURLForOverride(const KURL& baseURLOverride) const;
534 536
535 String userAgent() const final; 537 String userAgent() const final;
536 void disableEval(const String& errorMessage) final; 538 void disableEval(const String& errorMessage) final;
537 539
538 CSSStyleSheet& elementSheet(); 540 CSSStyleSheet& elementSheet();
541 CSSStyleSheet* maybeElementSheet() const { return m_elemSheet; }
539 542
540 virtual DocumentParser* createParser(); 543 virtual DocumentParser* createParser();
541 DocumentParser* parser() const { return m_parser.get(); } 544 DocumentParser* parser() const { return m_parser.get(); }
542 ScriptableDocumentParser* scriptableDocumentParser() const; 545 ScriptableDocumentParser* scriptableDocumentParser() const;
543 546
544 bool printing() const { return m_printing; } 547 bool printing() const { return m_printing; }
545 void setPrinting(bool isPrinting) { m_printing = isPrinting; } 548 void setPrinting(bool isPrinting) { m_printing = isPrinting; }
546 bool wasPrinting() const { return m_wasPrinting; } 549 bool wasPrinting() const { return m_wasPrinting; }
547 550
548 bool paginatedForScreen() const { return m_paginatedForScreen; } 551 bool paginatedForScreen() const { return m_paginatedForScreen; }
(...skipping 903 matching lines...) Expand 10 before | Expand all | Expand 10 after
1452 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1455 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1453 1456
1454 } // namespace blink 1457 } // namespace blink
1455 1458
1456 #ifndef NDEBUG 1459 #ifndef NDEBUG
1457 // Outside the WebCore namespace for ease of invocation from gdb. 1460 // Outside the WebCore namespace for ease of invocation from gdb.
1458 CORE_EXPORT void showLiveDocumentInstances(); 1461 CORE_EXPORT void showLiveDocumentInstances();
1459 #endif 1462 #endif
1460 1463
1461 #endif // Document_h 1464 #endif // Document_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/DatasetDOMStringMap.h ('k') | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698