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

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

Issue 18601002: Add infrastructure for partial layouts (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address reviewer comments. Add PartialLayoutState and PartialLayoutDisabler Created 7 years, 3 months 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 | Annotate | Revision Log
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 469 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 480
481 // Special support for editing 481 // Special support for editing
482 PassRefPtr<CSSStyleDeclaration> createCSSStyleDeclaration(); 482 PassRefPtr<CSSStyleDeclaration> createCSSStyleDeclaration();
483 PassRefPtr<Text> createEditingTextNode(const String&); 483 PassRefPtr<Text> createEditingTextNode(const String&);
484 484
485 void recalcStyle(StyleChange = NoChange); 485 void recalcStyle(StyleChange = NoChange);
486 void updateStyleIfNeeded(); 486 void updateStyleIfNeeded();
487 void updateStyleForNodeIfNeeded(Node*); 487 void updateStyleForNodeIfNeeded(Node*);
488 void updateLayout(); 488 void updateLayout();
489 void updateLayoutIgnorePendingStylesheets(); 489 void updateLayoutIgnorePendingStylesheets();
490 void partialUpdateLayoutIgnorePendingStylesheets(Node*);
490 PassRefPtr<RenderStyle> styleForElementIgnoringPendingStylesheets(Element*); 491 PassRefPtr<RenderStyle> styleForElementIgnoringPendingStylesheets(Element*);
491 PassRefPtr<RenderStyle> styleForPage(int pageIndex); 492 PassRefPtr<RenderStyle> styleForPage(int pageIndex);
492 493
493 void updateDistributionForNodeIfNeeded(Node*); 494 void updateDistributionForNodeIfNeeded(Node*);
494 495
495 // Returns true if page box (margin boxes and page borders) is visible. 496 // Returns true if page box (margin boxes and page borders) is visible.
496 bool isPageBoxVisible(int pageIndex); 497 bool isPageBoxVisible(int pageIndex);
497 498
498 // Returns the preferred page size and margins in pixels, assuming 96 499 // Returns the preferred page size and margins in pixels, assuming 96
499 // pixels per inch. pageSize, marginTop, marginRight, marginBottom, 500 // pixels per inch. pageSize, marginTop, marginRight, marginBottom,
(...skipping 608 matching lines...) Expand 10 before | Expand all | Expand 10 after
1108 void updateTitle(const String&); 1109 void updateTitle(const String&);
1109 void updateFocusAppearanceTimerFired(Timer<Document>*); 1110 void updateFocusAppearanceTimerFired(Timer<Document>*);
1110 void updateBaseURL(); 1111 void updateBaseURL();
1111 1112
1112 void createStyleResolver(); 1113 void createStyleResolver();
1113 1114
1114 void executeScriptsWaitingForResourcesIfNeeded(); 1115 void executeScriptsWaitingForResourcesIfNeeded();
1115 1116
1116 void seamlessParentUpdatedStylesheets(); 1117 void seamlessParentUpdatedStylesheets();
1117 1118
1119 void recalcStyleForLayoutIgnoringPendingStylesheets();
1120
1118 PassRefPtr<NodeList> handleZeroPadding(const HitTestRequest&, HitTestResult& ) const; 1121 PassRefPtr<NodeList> handleZeroPadding(const HitTestRequest&, HitTestResult& ) const;
1119 1122
1120 void loadEventDelayTimerFired(Timer<Document>*); 1123 void loadEventDelayTimerFired(Timer<Document>*);
1121 1124
1122 void pendingTasksTimerFired(Timer<Document>*); 1125 void pendingTasksTimerFired(Timer<Document>*);
1123 1126
1124 static void didReceiveTask(void*); 1127 static void didReceiveTask(void*);
1125 1128
1126 template <typename CharacterType> 1129 template <typename CharacterType>
1127 void displayBufferModifiedByEncodingInternal(CharacterType*, unsigned) const ; 1130 void displayBufferModifiedByEncodingInternal(CharacterType*, unsigned) const ;
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
1424 inline bool Node::isDocumentNode() const 1427 inline bool Node::isDocumentNode() const
1425 { 1428 {
1426 return this == documentInternal(); 1429 return this == documentInternal();
1427 } 1430 }
1428 1431
1429 Node* eventTargetNodeForDocument(Document*); 1432 Node* eventTargetNodeForDocument(Document*);
1430 1433
1431 } // namespace WebCore 1434 } // namespace WebCore
1432 1435
1433 #endif // Document_h 1436 #endif // Document_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698