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 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 | 259 |
260 // Special support for editing | 260 // Special support for editing |
261 PassRefPtr<Text> createEditingTextNode(const String&); | 261 PassRefPtr<Text> createEditingTextNode(const String&); |
262 | 262 |
263 void setupFontBuilder(RenderStyle* documentStyle); | 263 void setupFontBuilder(RenderStyle* documentStyle); |
264 | 264 |
265 bool needsRenderTreeUpdate() const; | 265 bool needsRenderTreeUpdate() const; |
266 void updateRenderTreeIfNeeded() { updateRenderTree(NoChange); } | 266 void updateRenderTreeIfNeeded() { updateRenderTree(NoChange); } |
267 void updateRenderTreeForNodeIfNeeded(Node*); | 267 void updateRenderTreeForNodeIfNeeded(Node*); |
268 void updateLayout(); | 268 void updateLayout(); |
269 enum RunPostLayoutTasks { | |
270 RunPostLayoutTasksAsyhnchronously, | |
271 RunPostLayoutTasksSynchronously, | |
272 }; | |
273 void updateLayoutIgnorePendingStylesheets(RunPostLayoutTasks = RunPostLayout
TasksAsyhnchronously); | |
274 PassRefPtr<RenderStyle> styleForElementIgnoringPendingStylesheets(Element*); | |
275 | 269 |
276 void updateDistributionForNodeIfNeeded(Node*); | 270 void updateDistributionForNodeIfNeeded(Node*); |
277 | 271 |
278 ResourceFetcher* fetcher() { return m_fetcher.get(); } | 272 ResourceFetcher* fetcher() { return m_fetcher.get(); } |
279 | 273 |
280 virtual void attach(const AttachContext& = AttachContext()) override; | 274 virtual void attach(const AttachContext& = AttachContext()) override; |
281 virtual void detach(const AttachContext& = AttachContext()) override; | 275 virtual void detach(const AttachContext& = AttachContext()) override; |
282 void prepareForDestruction(); | 276 void prepareForDestruction(); |
283 | 277 |
284 // If you have a Document, use renderView() instead which is faster. | 278 // If you have a Document, use renderView() instead which is faster. |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
449 | 443 |
450 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; } |
451 void pushCurrentScript(PassRefPtr<HTMLScriptElement>); | 445 void pushCurrentScript(PassRefPtr<HTMLScriptElement>); |
452 void popCurrentScript(); | 446 void popCurrentScript(); |
453 | 447 |
454 enum PendingSheetLayout { NoLayoutWithPendingSheets, DidLayoutWithPendingShe
ets, IgnoreLayoutWithPendingSheets }; | 448 enum PendingSheetLayout { NoLayoutWithPendingSheets, DidLayoutWithPendingShe
ets, IgnoreLayoutWithPendingSheets }; |
455 | 449 |
456 bool didLayoutWithPendingStylesheets() const { return m_pendingSheetLayout =
= DidLayoutWithPendingSheets; } | 450 bool didLayoutWithPendingStylesheets() const { return m_pendingSheetLayout =
= DidLayoutWithPendingSheets; } |
457 bool ignoreLayoutWithPendingStylesheets() const { return m_pendingSheetLayou
t == IgnoreLayoutWithPendingSheets; } | 451 bool ignoreLayoutWithPendingStylesheets() const { return m_pendingSheetLayou
t == IgnoreLayoutWithPendingSheets; } |
458 | 452 |
459 bool hasNodesWithPlaceholderStyle() const { return m_hasNodesWithPlaceholder
Style; } | |
460 void setHasNodesWithPlaceholderStyle() { m_hasNodesWithPlaceholderStyle = tr
ue; } | |
461 | |
462 // Extension for manipulating canvas drawing contexts for use in CSS | 453 // Extension for manipulating canvas drawing contexts for use in CSS |
463 void getCSSCanvasContext(const String& type, const String& name, int width,
int height, RefPtr<CanvasRenderingContext2D>&, RefPtr<WebGLRenderingContext>&); | 454 void getCSSCanvasContext(const String& type, const String& name, int width,
int height, RefPtr<CanvasRenderingContext2D>&, RefPtr<WebGLRenderingContext>&); |
464 HTMLCanvasElement& getCSSCanvasElement(const String& name); | 455 HTMLCanvasElement& getCSSCanvasElement(const String& name); |
465 | 456 |
466 void finishedParsing(); | 457 void finishedParsing(); |
467 | 458 |
468 const WTF::TextEncoding& encoding() const { return WTF::UTF8Encoding(); } | 459 const WTF::TextEncoding& encoding() const { return WTF::UTF8Encoding(); } |
469 | 460 |
470 virtual void removeAllEventListeners() override final; | 461 virtual void removeAllEventListeners() override final; |
471 | 462 |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
662 void setHoverNode(PassRefPtr<Node>); | 653 void setHoverNode(PassRefPtr<Node>); |
663 Node* hoverNode() const { return m_hoverNode.get(); } | 654 Node* hoverNode() const { return m_hoverNode.get(); } |
664 | 655 |
665 typedef HashSet<OwnPtr<EventFactoryBase> > EventFactorySet; | 656 typedef HashSet<OwnPtr<EventFactoryBase> > EventFactorySet; |
666 static EventFactorySet& eventFactories(); | 657 static EventFactorySet& eventFactories(); |
667 | 658 |
668 DocumentLifecycle m_lifecycle; | 659 DocumentLifecycle m_lifecycle; |
669 | 660 |
670 AbstractModule* m_module; | 661 AbstractModule* m_module; |
671 | 662 |
672 bool m_hasNodesWithPlaceholderStyle; | |
673 bool m_evaluateMediaQueriesOnStyleRecalc; | 663 bool m_evaluateMediaQueriesOnStyleRecalc; |
674 | 664 |
675 // If we do ignore the pending stylesheet count, then we need to add a boole
an | 665 // If we do ignore the pending stylesheet count, then we need to add a boole
an |
676 // to track that this happened so that we can do a full repaint when the sty
lesheets | 666 // to track that this happened so that we can do a full repaint when the sty
lesheets |
677 // do eventually load. | 667 // do eventually load. |
678 PendingSheetLayout m_pendingSheetLayout; | 668 PendingSheetLayout m_pendingSheetLayout; |
679 | 669 |
680 LocalFrame* m_frame; | 670 LocalFrame* m_frame; |
681 RawPtr<LocalDOMWindow> m_domWindow; | 671 RawPtr<LocalDOMWindow> m_domWindow; |
682 // FIXME: oilpan: when we get rid of the transition types change the | 672 // FIXME: oilpan: when we get rid of the transition types change the |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
816 Node* eventTargetNodeForDocument(Document*); | 806 Node* eventTargetNodeForDocument(Document*); |
817 | 807 |
818 } // namespace blink | 808 } // namespace blink |
819 | 809 |
820 #ifndef NDEBUG | 810 #ifndef NDEBUG |
821 // Outside the WebCore namespace for ease of invocation from gdb. | 811 // Outside the WebCore namespace for ease of invocation from gdb. |
822 void showLiveDocumentInstances(); | 812 void showLiveDocumentInstances(); |
823 #endif | 813 #endif |
824 | 814 |
825 #endif // SKY_ENGINE_CORE_DOM_DOCUMENT_H_ | 815 #endif // SKY_ENGINE_CORE_DOM_DOCUMENT_H_ |
OLD | NEW |