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

Side by Side Diff: sky/engine/core/dom/Document.h

Issue 722743002: Remove dynamic cast from DocumentPaser interface (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 | sky/engine/core/dom/Document.cpp » ('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, 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 534 matching lines...) Expand 10 before | Expand all | Expand 10 after
545 HTMLImportsController& ensureImportsController(); 545 HTMLImportsController& ensureImportsController();
546 HTMLImportLoader* importLoader() const; 546 HTMLImportLoader* importLoader() const;
547 HTMLImport* import() const; 547 HTMLImport* import() const;
548 548
549 bool haveImportsLoaded() const; 549 bool haveImportsLoaded() const;
550 void didLoadAllImports(); 550 void didLoadAllImports();
551 551
552 void adjustFloatQuadsForScroll(Vector<FloatQuad>&); 552 void adjustFloatQuadsForScroll(Vector<FloatQuad>&);
553 void adjustFloatRectForScroll(FloatRect&); 553 void adjustFloatRectForScroll(FloatRect&);
554 554
555 bool hasActiveParser();
556 unsigned activeParserCount() { return m_activeParserCount; } 555 unsigned activeParserCount() { return m_activeParserCount; }
557 void incrementActiveParserCount() { ++m_activeParserCount; } 556 void incrementActiveParserCount() { ++m_activeParserCount; }
558 void decrementActiveParserCount(); 557 void decrementActiveParserCount();
559 558
560 ElementDataCache* elementDataCache() { return m_elementDataCache.get(); } 559 ElementDataCache* elementDataCache() { return m_elementDataCache.get(); }
561 560
562 void didLoadAllScriptBlockingResources(); 561 void didLoadAllScriptBlockingResources();
563 void didRemoveAllPendingStylesheet(); 562 void didRemoveAllPendingStylesheet();
564 void clearStyleResolver(); 563 void clearStyleResolver();
565 564
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
630 629
631 bool needsFullRenderTreeUpdate() const; 630 bool needsFullRenderTreeUpdate() const;
632 631
633 bool dirtyElementsForLayerUpdate(); 632 bool dirtyElementsForLayerUpdate();
634 void updateDistributionIfNeeded(); 633 void updateDistributionIfNeeded();
635 void evaluateMediaQueryListIfNeeded(); 634 void evaluateMediaQueryListIfNeeded();
636 635
637 void updateRenderTree(StyleRecalcChange); 636 void updateRenderTree(StyleRecalcChange);
638 void updateStyle(StyleRecalcChange); 637 void updateStyle(StyleRecalcChange);
639 638
640 HTMLDocumentParser* scriptableDocumentParser() const;
641 void detachParser(); 639 void detachParser();
642 640
643 virtual bool isDocument() const override final { return true; } 641 virtual bool isDocument() const override final { return true; }
644 642
645 virtual void childrenChanged(const ChildrenChange&) override; 643 virtual void childrenChanged(const ChildrenChange&) override;
646 644
647 virtual String nodeName() const override final; 645 virtual String nodeName() const override final;
648 virtual NodeType nodeType() const override final; 646 virtual NodeType nodeType() const override final;
649 virtual bool childTypeAllowed(NodeType) const override final; 647 virtual bool childTypeAllowed(NodeType) const override final;
650 virtual PassRefPtr<Node> cloneNode(bool deep = true) override final; 648 virtual PassRefPtr<Node> cloneNode(bool deep = true) override final;
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
842 Node* eventTargetNodeForDocument(Document*); 840 Node* eventTargetNodeForDocument(Document*);
843 841
844 } // namespace blink 842 } // namespace blink
845 843
846 #ifndef NDEBUG 844 #ifndef NDEBUG
847 // Outside the WebCore namespace for ease of invocation from gdb. 845 // Outside the WebCore namespace for ease of invocation from gdb.
848 void showLiveDocumentInstances(); 846 void showLiveDocumentInstances();
849 #endif 847 #endif
850 848
851 #endif // Document_h 849 #endif // Document_h
OLDNEW
« no previous file with comments | « no previous file | sky/engine/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698