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

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

Issue 74513003: Moved text decoding to the parser thread (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@parserthread_step25
Patch Set: DocumentEncodingData is now constructed from a decoder Created 7 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
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 824 matching lines...) Expand 10 before | Expand all | Expand 10 after
835 835
836 virtual void tasksWereSuspended() OVERRIDE; 836 virtual void tasksWereSuspended() OVERRIDE;
837 virtual void tasksWereResumed() OVERRIDE; 837 virtual void tasksWereResumed() OVERRIDE;
838 virtual void suspendScheduledTasks() OVERRIDE; 838 virtual void suspendScheduledTasks() OVERRIDE;
839 virtual void resumeScheduledTasks() OVERRIDE; 839 virtual void resumeScheduledTasks() OVERRIDE;
840 virtual bool tasksNeedSuspension() OVERRIDE; 840 virtual bool tasksNeedSuspension() OVERRIDE;
841 841
842 void finishedParsing(); 842 void finishedParsing();
843 843
844 void setEncodingData(const DocumentEncodingData& newData); 844 void setEncodingData(const DocumentEncodingData& newData);
845 const WTF::TextEncoding& encoding() const { return m_encodingData.encoding; } 845 const WTF::TextEncoding& encoding() const { return m_encodingData.encoding() ; }
846 846
847 bool encodingWasDetectedHeuristically() const { return m_encodingData.wasDet ectedHeuristically; } 847 bool encodingWasDetectedHeuristically() const { return m_encodingData.wasDet ectedHeuristically(); }
848 bool sawDecodingError() const { return m_encodingData.sawDecodingError; } 848 bool sawDecodingError() const { return m_encodingData.sawDecodingError(); }
849 849
850 void setAnnotatedRegionsDirty(bool f) { m_annotatedRegionsDirty = f; } 850 void setAnnotatedRegionsDirty(bool f) { m_annotatedRegionsDirty = f; }
851 bool annotatedRegionsDirty() const { return m_annotatedRegionsDirty; } 851 bool annotatedRegionsDirty() const { return m_annotatedRegionsDirty; }
852 bool hasAnnotatedRegions () const { return m_hasAnnotatedRegions; } 852 bool hasAnnotatedRegions () const { return m_hasAnnotatedRegions; }
853 void setHasAnnotatedRegions(bool f) { m_hasAnnotatedRegions = f; } 853 void setHasAnnotatedRegions(bool f) { m_hasAnnotatedRegions = f; }
854 const Vector<AnnotatedRegionValue>& annotatedRegions() const; 854 const Vector<AnnotatedRegionValue>& annotatedRegions() const;
855 void setAnnotatedRegions(const Vector<AnnotatedRegionValue>&); 855 void setAnnotatedRegions(const Vector<AnnotatedRegionValue>&);
856 856
857 virtual void removeAllEventListeners(); 857 virtual void removeAllEventListeners();
858 858
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after
1356 inline bool Node::isDocumentNode() const 1356 inline bool Node::isDocumentNode() const
1357 { 1357 {
1358 return this == documentInternal(); 1358 return this == documentInternal();
1359 } 1359 }
1360 1360
1361 Node* eventTargetNodeForDocument(Document*); 1361 Node* eventTargetNodeForDocument(Document*);
1362 1362
1363 } // namespace WebCore 1363 } // namespace WebCore
1364 1364
1365 #endif // Document_h 1365 #endif // Document_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698