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

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

Issue 129123002: Revert of "Revert of Moved text decoding to the parser thread" (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 6 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
« no previous file with comments | « Source/core/dom/DecodedDataDocumentParser.cpp ('k') | Source/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 474 matching lines...) Expand 10 before | Expand all | Expand 10 after
485 virtual void detach(const AttachContext& = AttachContext()) OVERRIDE; 485 virtual void detach(const AttachContext& = AttachContext()) OVERRIDE;
486 void prepareForDestruction(); 486 void prepareForDestruction();
487 487
488 RenderView* renderView() const { return m_renderView; } 488 RenderView* renderView() const { return m_renderView; }
489 489
490 AXObjectCache* existingAXObjectCache() const; 490 AXObjectCache* existingAXObjectCache() const;
491 AXObjectCache* axObjectCache() const; 491 AXObjectCache* axObjectCache() const;
492 void clearAXObjectCache(); 492 void clearAXObjectCache();
493 493
494 // to get visually ordered hebrew and arabic pages right 494 // to get visually ordered hebrew and arabic pages right
495 void setVisuallyOrdered();
496 bool visuallyOrdered() const { return m_visuallyOrdered; } 495 bool visuallyOrdered() const { return m_visuallyOrdered; }
497 496
498 DocumentLoader* loader() const; 497 DocumentLoader* loader() const;
499 498
500 void open(Document* ownerDocument = 0); 499 void open(Document* ownerDocument = 0);
501 PassRefPtr<DocumentParser> implicitOpen(); 500 PassRefPtr<DocumentParser> implicitOpen();
502 501
503 // close() is the DOM API document.close() 502 // close() is the DOM API document.close()
504 void close(); 503 void close();
505 // In some situations (see the code), we ignore document.close(). 504 // In some situations (see the code), we ignore document.close().
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
836 835
837 virtual void tasksWereSuspended() OVERRIDE FINAL; 836 virtual void tasksWereSuspended() OVERRIDE FINAL;
838 virtual void tasksWereResumed() OVERRIDE FINAL; 837 virtual void tasksWereResumed() OVERRIDE FINAL;
839 virtual void suspendScheduledTasks() OVERRIDE FINAL; 838 virtual void suspendScheduledTasks() OVERRIDE FINAL;
840 virtual void resumeScheduledTasks() OVERRIDE FINAL; 839 virtual void resumeScheduledTasks() OVERRIDE FINAL;
841 virtual bool tasksNeedSuspension() OVERRIDE FINAL; 840 virtual bool tasksNeedSuspension() OVERRIDE FINAL;
842 841
843 void finishedParsing(); 842 void finishedParsing();
844 843
845 void setEncodingData(const DocumentEncodingData& newData); 844 void setEncodingData(const DocumentEncodingData& newData);
846 const WTF::TextEncoding& encoding() const { return m_encodingData.encoding; } 845 const WTF::TextEncoding& encoding() const { return m_encodingData.encoding() ; }
847 846
848 bool encodingWasDetectedHeuristically() const { return m_encodingData.wasDet ectedHeuristically; } 847 bool encodingWasDetectedHeuristically() const { return m_encodingData.wasDet ectedHeuristically(); }
849 bool sawDecodingError() const { return m_encodingData.sawDecodingError; } 848 bool sawDecodingError() const { return m_encodingData.sawDecodingError(); }
850 849
851 void setAnnotatedRegionsDirty(bool f) { m_annotatedRegionsDirty = f; } 850 void setAnnotatedRegionsDirty(bool f) { m_annotatedRegionsDirty = f; }
852 bool annotatedRegionsDirty() const { return m_annotatedRegionsDirty; } 851 bool annotatedRegionsDirty() const { return m_annotatedRegionsDirty; }
853 bool hasAnnotatedRegions () const { return m_hasAnnotatedRegions; } 852 bool hasAnnotatedRegions () const { return m_hasAnnotatedRegions; }
854 void setHasAnnotatedRegions(bool f) { m_hasAnnotatedRegions = f; } 853 void setHasAnnotatedRegions(bool f) { m_hasAnnotatedRegions = f; }
855 const Vector<AnnotatedRegionValue>& annotatedRegions() const; 854 const Vector<AnnotatedRegionValue>& annotatedRegions() const;
856 void setAnnotatedRegions(const Vector<AnnotatedRegionValue>&); 855 void setAnnotatedRegions(const Vector<AnnotatedRegionValue>&);
857 856
858 virtual void removeAllEventListeners() OVERRIDE FINAL; 857 virtual void removeAllEventListeners() OVERRIDE FINAL;
859 858
(...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after
1346 inline bool Node::isDocumentNode() const 1345 inline bool Node::isDocumentNode() const
1347 { 1346 {
1348 return this == document(); 1347 return this == document();
1349 } 1348 }
1350 1349
1351 Node* eventTargetNodeForDocument(Document*); 1350 Node* eventTargetNodeForDocument(Document*);
1352 1351
1353 } // namespace WebCore 1352 } // namespace WebCore
1354 1353
1355 #endif // Document_h 1354 #endif // Document_h
OLDNEW
« no previous file with comments | « Source/core/dom/DecodedDataDocumentParser.cpp ('k') | Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698