| 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 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 438 | 438 |
| 439 KURL openSearchDescriptionURL(); | 439 KURL openSearchDescriptionURL(); |
| 440 | 440 |
| 441 Document& topDocument() const; | 441 Document& topDocument() const; |
| 442 WeakPtr<Document> contextDocument(); | 442 WeakPtr<Document> contextDocument(); |
| 443 | 443 |
| 444 HTMLScriptElement* currentScript() const { return !m_currentScriptStack.isEm
pty() ? m_currentScriptStack.last().get() : 0; } | 444 HTMLScriptElement* currentScript() const { return !m_currentScriptStack.isEm
pty() ? m_currentScriptStack.last().get() : 0; } |
| 445 void pushCurrentScript(PassRefPtr<HTMLScriptElement>); | 445 void pushCurrentScript(PassRefPtr<HTMLScriptElement>); |
| 446 void popCurrentScript(); | 446 void popCurrentScript(); |
| 447 | 447 |
| 448 enum PendingSheetLayout { NoLayoutWithPendingSheets, DidLayoutWithPendingShe
ets, IgnoreLayoutWithPendingSheets }; | |
| 449 | |
| 450 bool didLayoutWithPendingStylesheets() const { return m_pendingSheetLayout =
= DidLayoutWithPendingSheets; } | |
| 451 bool ignoreLayoutWithPendingStylesheets() const { return m_pendingSheetLayou
t == IgnoreLayoutWithPendingSheets; } | |
| 452 | |
| 453 // Extension for manipulating canvas drawing contexts for use in CSS | 448 // Extension for manipulating canvas drawing contexts for use in CSS |
| 454 void getCSSCanvasContext(const String& type, const String& name, int width,
int height, RefPtr<CanvasRenderingContext2D>&, RefPtr<WebGLRenderingContext>&); | 449 void getCSSCanvasContext(const String& type, const String& name, int width,
int height, RefPtr<CanvasRenderingContext2D>&, RefPtr<WebGLRenderingContext>&); |
| 455 HTMLCanvasElement& getCSSCanvasElement(const String& name); | 450 HTMLCanvasElement& getCSSCanvasElement(const String& name); |
| 456 | 451 |
| 457 void finishedParsing(); | 452 void finishedParsing(); |
| 458 | 453 |
| 459 const WTF::TextEncoding& encoding() const { return WTF::UTF8Encoding(); } | 454 const WTF::TextEncoding& encoding() const { return WTF::UTF8Encoding(); } |
| 460 | 455 |
| 461 virtual void removeAllEventListeners() override final; | 456 virtual void removeAllEventListeners() override final; |
| 462 | 457 |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 655 | 650 |
| 656 typedef HashSet<OwnPtr<EventFactoryBase> > EventFactorySet; | 651 typedef HashSet<OwnPtr<EventFactoryBase> > EventFactorySet; |
| 657 static EventFactorySet& eventFactories(); | 652 static EventFactorySet& eventFactories(); |
| 658 | 653 |
| 659 DocumentLifecycle m_lifecycle; | 654 DocumentLifecycle m_lifecycle; |
| 660 | 655 |
| 661 AbstractModule* m_module; | 656 AbstractModule* m_module; |
| 662 | 657 |
| 663 bool m_evaluateMediaQueriesOnStyleRecalc; | 658 bool m_evaluateMediaQueriesOnStyleRecalc; |
| 664 | 659 |
| 665 // If we do ignore the pending stylesheet count, then we need to add a boole
an | |
| 666 // to track that this happened so that we can do a full repaint when the sty
lesheets | |
| 667 // do eventually load. | |
| 668 PendingSheetLayout m_pendingSheetLayout; | |
| 669 | |
| 670 LocalFrame* m_frame; | 660 LocalFrame* m_frame; |
| 671 RawPtr<LocalDOMWindow> m_domWindow; | 661 RawPtr<LocalDOMWindow> m_domWindow; |
| 672 // FIXME: oilpan: when we get rid of the transition types change the | 662 // FIXME: oilpan: when we get rid of the transition types change the |
| 673 // HTMLImportsController to not be a DocumentSupplement since it is | 663 // HTMLImportsController to not be a DocumentSupplement since it is |
| 674 // redundant with oilpan. | 664 // redundant with oilpan. |
| 675 RawPtr<HTMLImportsController> m_importsController; | 665 RawPtr<HTMLImportsController> m_importsController; |
| 676 | 666 |
| 677 RefPtr<ResourceFetcher> m_fetcher; | 667 RefPtr<ResourceFetcher> m_fetcher; |
| 678 RefPtr<DocumentParser> m_parser; | 668 RefPtr<DocumentParser> m_parser; |
| 679 unsigned m_activeParserCount; | 669 unsigned m_activeParserCount; |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 806 Node* eventTargetNodeForDocument(Document*); | 796 Node* eventTargetNodeForDocument(Document*); |
| 807 | 797 |
| 808 } // namespace blink | 798 } // namespace blink |
| 809 | 799 |
| 810 #ifndef NDEBUG | 800 #ifndef NDEBUG |
| 811 // Outside the WebCore namespace for ease of invocation from gdb. | 801 // Outside the WebCore namespace for ease of invocation from gdb. |
| 812 void showLiveDocumentInstances(); | 802 void showLiveDocumentInstances(); |
| 813 #endif | 803 #endif |
| 814 | 804 |
| 815 #endif // SKY_ENGINE_CORE_DOM_DOCUMENT_H_ | 805 #endif // SKY_ENGINE_CORE_DOM_DOCUMENT_H_ |
| OLD | NEW |