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 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
433 // FIXME: Switch all callers of styleResolverChanged to these or better ones
and then make them | 433 // FIXME: Switch all callers of styleResolverChanged to these or better ones
and then make them |
434 // do something smarter. | 434 // do something smarter. |
435 void removedStyleSheet(StyleSheet*, StyleResolverUpdateMode = FullStyleUpdat
e); | 435 void removedStyleSheet(StyleSheet*, StyleResolverUpdateMode = FullStyleUpdat
e); |
436 void addedStyleSheet(StyleSheet*) { styleResolverChanged(); } | 436 void addedStyleSheet(StyleSheet*) { styleResolverChanged(); } |
437 void modifiedStyleSheet(StyleSheet*, StyleResolverUpdateMode = FullStyleUpda
te); | 437 void modifiedStyleSheet(StyleSheet*, StyleResolverUpdateMode = FullStyleUpda
te); |
438 void changedSelectorWatch() { styleResolverChanged(); } | 438 void changedSelectorWatch() { styleResolverChanged(); } |
439 | 439 |
440 void scheduleUseShadowTreeUpdate(SVGUseElement&); | 440 void scheduleUseShadowTreeUpdate(SVGUseElement&); |
441 void unscheduleUseShadowTreeUpdate(SVGUseElement&); | 441 void unscheduleUseShadowTreeUpdate(SVGUseElement&); |
442 | 442 |
443 // FIXME: SVG filters should change to store the filter on the LayoutStyle | 443 // FIXME: SVG filters should change to store the filter on the ComputedStyle |
444 // instead of the LayoutObject so we can get rid of this hack. | 444 // instead of the LayoutObject so we can get rid of this hack. |
445 void scheduleSVGFilterLayerUpdateHack(Element&); | 445 void scheduleSVGFilterLayerUpdateHack(Element&); |
446 void unscheduleSVGFilterLayerUpdateHack(Element&); | 446 void unscheduleSVGFilterLayerUpdateHack(Element&); |
447 | 447 |
448 void evaluateMediaQueryList(); | 448 void evaluateMediaQueryList(); |
449 | 449 |
450 FormController& formController(); | 450 FormController& formController(); |
451 DocumentState* formElementsState() const; | 451 DocumentState* formElementsState() const; |
452 void setStateForNewFormElements(const Vector<String>&); | 452 void setStateForNewFormElements(const Vector<String>&); |
453 | 453 |
454 FrameView* view() const; // can be null | 454 FrameView* view() const; // can be null |
455 LocalFrame* frame() const { return m_frame; } // can be null | 455 LocalFrame* frame() const { return m_frame; } // can be null |
456 FrameHost* frameHost() const; // can be null | 456 FrameHost* frameHost() const; // can be null |
457 Page* page() const; // can be null | 457 Page* page() const; // can be null |
458 Settings* settings() const; // can be null | 458 Settings* settings() const; // can be null |
459 | 459 |
460 float devicePixelRatio() const; | 460 float devicePixelRatio() const; |
461 | 461 |
462 PassRefPtrWillBeRawPtr<Range> createRange(); | 462 PassRefPtrWillBeRawPtr<Range> createRange(); |
463 | 463 |
464 PassRefPtrWillBeRawPtr<NodeIterator> createNodeIterator(Node* root, unsigned
whatToShow, PassRefPtrWillBeRawPtr<NodeFilter>, ExceptionState&); | 464 PassRefPtrWillBeRawPtr<NodeIterator> createNodeIterator(Node* root, unsigned
whatToShow, PassRefPtrWillBeRawPtr<NodeFilter>, ExceptionState&); |
465 PassRefPtrWillBeRawPtr<TreeWalker> createTreeWalker(Node* root, unsigned wha
tToShow, PassRefPtrWillBeRawPtr<NodeFilter>, ExceptionState&); | 465 PassRefPtrWillBeRawPtr<TreeWalker> createTreeWalker(Node* root, unsigned wha
tToShow, PassRefPtrWillBeRawPtr<NodeFilter>, ExceptionState&); |
466 | 466 |
467 // Special support for editing | 467 // Special support for editing |
468 PassRefPtrWillBeRawPtr<Text> createEditingTextNode(const String&); | 468 PassRefPtrWillBeRawPtr<Text> createEditingTextNode(const String&); |
469 | 469 |
470 void setupFontBuilder(LayoutStyle& documentStyle); | 470 void setupFontBuilder(ComputedStyle& documentStyle); |
471 | 471 |
472 bool needsRenderTreeUpdate() const; | 472 bool needsRenderTreeUpdate() const; |
473 void updateRenderTreeIfNeeded() { updateRenderTree(NoChange); } | 473 void updateRenderTreeIfNeeded() { updateRenderTree(NoChange); } |
474 void updateRenderTreeForNodeIfNeeded(Node*); | 474 void updateRenderTreeForNodeIfNeeded(Node*); |
475 void updateLayout(); | 475 void updateLayout(); |
476 enum RunPostLayoutTasks { | 476 enum RunPostLayoutTasks { |
477 RunPostLayoutTasksAsyhnchronously, | 477 RunPostLayoutTasksAsyhnchronously, |
478 RunPostLayoutTasksSynchronously, | 478 RunPostLayoutTasksSynchronously, |
479 }; | 479 }; |
480 void updateLayoutIgnorePendingStylesheets(RunPostLayoutTasks = RunPostLayout
TasksAsyhnchronously); | 480 void updateLayoutIgnorePendingStylesheets(RunPostLayoutTasks = RunPostLayout
TasksAsyhnchronously); |
481 PassRefPtr<LayoutStyle> styleForElementIgnoringPendingStylesheets(Element*); | 481 PassRefPtr<ComputedStyle> styleForElementIgnoringPendingStylesheets(Element*
); |
482 PassRefPtr<LayoutStyle> styleForPage(int pageIndex); | 482 PassRefPtr<ComputedStyle> styleForPage(int pageIndex); |
483 | 483 |
484 // Returns true if page box (margin boxes and page borders) is visible. | 484 // Returns true if page box (margin boxes and page borders) is visible. |
485 bool isPageBoxVisible(int pageIndex); | 485 bool isPageBoxVisible(int pageIndex); |
486 | 486 |
487 // Returns the preferred page size and margins in pixels, assuming 96 | 487 // Returns the preferred page size and margins in pixels, assuming 96 |
488 // pixels per inch. pageSize, marginTop, marginRight, marginBottom, | 488 // pixels per inch. pageSize, marginTop, marginRight, marginBottom, |
489 // marginLeft must be initialized to the default values that are used if | 489 // marginLeft must be initialized to the default values that are used if |
490 // auto is specified. | 490 // auto is specified. |
491 void pageSizeAndMarginsInPixels(int pageIndex, IntSize& pageSize, int& margi
nTop, int& marginRight, int& marginBottom, int& marginLeft); | 491 void pageSizeAndMarginsInPixels(int pageIndex, IntSize& pageSize, int& margi
nTop, int& marginRight, int& marginBottom, int& marginLeft); |
492 | 492 |
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
780 | 780 |
781 HTMLElement* body() const; | 781 HTMLElement* body() const; |
782 void setBody(PassRefPtrWillBeRawPtr<HTMLElement>, ExceptionState&); | 782 void setBody(PassRefPtrWillBeRawPtr<HTMLElement>, ExceptionState&); |
783 | 783 |
784 HTMLHeadElement* head() const; | 784 HTMLHeadElement* head() const; |
785 | 785 |
786 // Decide which element is to define the viewport's overflow policy. If |roo
tStyle| is set, use | 786 // Decide which element is to define the viewport's overflow policy. If |roo
tStyle| is set, use |
787 // that as the style for the root element, rather than obtaining it on our o
wn. The reason for | 787 // that as the style for the root element, rather than obtaining it on our o
wn. The reason for |
788 // this is that style may not have been associated with the elements yet - i
n which case it may | 788 // this is that style may not have been associated with the elements yet - i
n which case it may |
789 // have been calculated on the fly (without associating it with the actual e
lement) somewhere. | 789 // have been calculated on the fly (without associating it with the actual e
lement) somewhere. |
790 Element* viewportDefiningElement(const LayoutStyle* rootStyle = nullptr) con
st; | 790 Element* viewportDefiningElement(const ComputedStyle* rootStyle = nullptr) c
onst; |
791 | 791 |
792 DocumentMarkerController& markers() const { return *m_markers; } | 792 DocumentMarkerController& markers() const { return *m_markers; } |
793 | 793 |
794 bool execCommand(const String& command, bool showUI, const String& value); | 794 bool execCommand(const String& command, bool showUI, const String& value); |
795 bool queryCommandEnabled(const String& command); | 795 bool queryCommandEnabled(const String& command); |
796 bool queryCommandIndeterm(const String& command); | 796 bool queryCommandIndeterm(const String& command); |
797 bool queryCommandState(const String& command); | 797 bool queryCommandState(const String& command); |
798 bool queryCommandSupported(const String& command); | 798 bool queryCommandSupported(const String& command); |
799 String queryCommandValue(const String& command); | 799 String queryCommandValue(const String& command); |
800 | 800 |
(...skipping 634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1435 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); | 1435 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); |
1436 | 1436 |
1437 } // namespace blink | 1437 } // namespace blink |
1438 | 1438 |
1439 #ifndef NDEBUG | 1439 #ifndef NDEBUG |
1440 // Outside the WebCore namespace for ease of invocation from gdb. | 1440 // Outside the WebCore namespace for ease of invocation from gdb. |
1441 void showLiveDocumentInstances(); | 1441 void showLiveDocumentInstances(); |
1442 #endif | 1442 #endif |
1443 | 1443 |
1444 #endif // Document_h | 1444 #endif // Document_h |
OLD | NEW |