Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 295 virtual void detach(const AttachContext& = AttachContext()) override; | 295 virtual void detach(const AttachContext& = AttachContext()) override; |
| 296 void prepareForDestruction(); | 296 void prepareForDestruction(); |
| 297 | 297 |
| 298 // If you have a Document, use renderView() instead which is faster. | 298 // If you have a Document, use renderView() instead which is faster. |
| 299 void renderer() const = delete; | 299 void renderer() const = delete; |
| 300 | 300 |
| 301 RenderView* renderView() const { return m_renderView; } | 301 RenderView* renderView() const { return m_renderView; } |
| 302 | 302 |
| 303 DocumentLoadTiming* timing() const; | 303 DocumentLoadTiming* timing() const; |
| 304 | 304 |
| 305 void startParsing(); | 305 DocumentParser* startParsing(); |
| 306 void cancelParsing(); | 306 void cancelParsing(); |
| 307 | 307 |
| 308 // close() is the DOM API document.close() | 308 // close() is the DOM API document.close() |
| 309 void close(ExceptionState& = ASSERT_NO_EXCEPTION); | 309 void close(ExceptionState& = ASSERT_NO_EXCEPTION); |
| 310 // In some situations (see the code), we ignore document.close(). | 310 // In some situations (see the code), we ignore document.close(). |
| 311 // explicitClose() bypass these checks and actually tries to close the | 311 // explicitClose() bypass these checks and actually tries to close the |
| 312 // input stream. | 312 // input stream. |
| 313 void explicitClose(); | 313 void explicitClose(); |
| 314 // implicitClose() actually does the work of closing the input stream. | 314 // implicitClose() actually does the work of closing the input stream. |
| 315 void implicitClose(); | 315 void implicitClose(); |
| (...skipping 12 matching lines...) Expand all Loading... | |
| 328 void setURL(const KURL&); | 328 void setURL(const KURL&); |
| 329 | 329 |
| 330 // To understand how these concepts relate to one another, please see the | 330 // To understand how these concepts relate to one another, please see the |
| 331 // comments surrounding their declaration. | 331 // comments surrounding their declaration. |
| 332 const KURL& baseURL() const { return m_baseURL; } | 332 const KURL& baseURL() const { return m_baseURL; } |
| 333 | 333 |
| 334 KURL completeURL(const String&) const; | 334 KURL completeURL(const String&) const; |
| 335 | 335 |
| 336 CSSStyleSheet& elementSheet(); | 336 CSSStyleSheet& elementSheet(); |
| 337 | 337 |
| 338 DocumentParser* parser() const { return m_parser.get(); } | 338 TextPosition textPosition() const; |
|
eseidel
2014/11/12 19:02:14
What does this mean?
abarth-chromium
2014/11/12 21:13:57
It's the position (row and col) that's currently b
| |
| 339 HTMLDocumentParser* scriptableDocumentParser() const; | |
| 340 | 339 |
| 341 enum ReadyState { | 340 enum ReadyState { |
| 342 Loading, | 341 Loading, |
| 343 Interactive, | 342 Interactive, |
| 344 Complete | 343 Complete |
| 345 }; | 344 }; |
| 346 void setReadyState(ReadyState); | 345 void setReadyState(ReadyState); |
| 347 bool isLoadCompleted(); | 346 bool isLoadCompleted(); |
| 348 | 347 |
| 349 void setParsing(bool); | 348 void setParsing(bool); |
| (...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 631 | 630 |
| 632 bool needsFullRenderTreeUpdate() const; | 631 bool needsFullRenderTreeUpdate() const; |
| 633 | 632 |
| 634 bool dirtyElementsForLayerUpdate(); | 633 bool dirtyElementsForLayerUpdate(); |
| 635 void updateDistributionIfNeeded(); | 634 void updateDistributionIfNeeded(); |
| 636 void evaluateMediaQueryListIfNeeded(); | 635 void evaluateMediaQueryListIfNeeded(); |
| 637 | 636 |
| 638 void updateRenderTree(StyleRecalcChange); | 637 void updateRenderTree(StyleRecalcChange); |
| 639 void updateStyle(StyleRecalcChange); | 638 void updateStyle(StyleRecalcChange); |
| 640 | 639 |
| 640 HTMLDocumentParser* scriptableDocumentParser() const; | |
| 641 void detachParser(); | 641 void detachParser(); |
| 642 | 642 |
| 643 virtual bool isDocument() const override final { return true; } | 643 virtual bool isDocument() const override final { return true; } |
| 644 | 644 |
| 645 virtual void childrenChanged(const ChildrenChange&) override; | 645 virtual void childrenChanged(const ChildrenChange&) override; |
| 646 | 646 |
| 647 virtual String nodeName() const override final; | 647 virtual String nodeName() const override final; |
| 648 virtual NodeType nodeType() const override final; | 648 virtual NodeType nodeType() const override final; |
| 649 virtual bool childTypeAllowed(NodeType) const override final; | 649 virtual bool childTypeAllowed(NodeType) const override final; |
| 650 virtual PassRefPtr<Node> cloneNode(bool deep = true) override final; | 650 virtual PassRefPtr<Node> cloneNode(bool deep = true) override final; |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 842 Node* eventTargetNodeForDocument(Document*); | 842 Node* eventTargetNodeForDocument(Document*); |
| 843 | 843 |
| 844 } // namespace blink | 844 } // namespace blink |
| 845 | 845 |
| 846 #ifndef NDEBUG | 846 #ifndef NDEBUG |
| 847 // Outside the WebCore namespace for ease of invocation from gdb. | 847 // Outside the WebCore namespace for ease of invocation from gdb. |
| 848 void showLiveDocumentInstances(); | 848 void showLiveDocumentInstances(); |
| 849 #endif | 849 #endif |
| 850 | 850 |
| 851 #endif // Document_h | 851 #endif // Document_h |
| OLD | NEW |