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

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

Issue 1896793002: Rename (updateLayout/updateStyle).*.() to updateStyleAndLayout.*.() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
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 401 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 412
413 // Special support for editing 413 // Special support for editing
414 Text* createEditingTextNode(const String&); 414 Text* createEditingTextNode(const String&);
415 415
416 void setupFontBuilder(ComputedStyle& documentStyle); 416 void setupFontBuilder(ComputedStyle& documentStyle);
417 417
418 bool needsLayoutTreeUpdate() const; 418 bool needsLayoutTreeUpdate() const;
419 bool needsLayoutTreeUpdateForNode(const Node&) const; 419 bool needsLayoutTreeUpdateForNode(const Node&) const;
420 // Update ComputedStyles and attach LayoutObjects if necessary, but don't 420 // Update ComputedStyles and attach LayoutObjects if necessary, but don't
421 // lay out. 421 // lay out.
422 void updateLayoutTree(); 422 void updateStyleAndLayoutTree();
423 // Same as updateLayoutTree() except ignoring pending stylesheets. 423 // Same as updateStyleAndLayoutTree() except ignoring pending stylesheets.
424 void updateLayoutTreeIgnorePendingStylesheets(); 424 void updateStyleAndLayoutTreeIgnorePendingStylesheets();
425 void updateLayoutTreeForNode(const Node*); 425 void updateStyleAndLayoutTreeForNode(const Node*);
426 void updateLayout(); 426 void updateStyleAndLayout();
427 void layoutUpdated(); 427 void layoutUpdated();
428 enum RunPostLayoutTasks { 428 enum RunPostLayoutTasks {
429 RunPostLayoutTasksAsyhnchronously, 429 RunPostLayoutTasksAsyhnchronously,
430 RunPostLayoutTasksSynchronously, 430 RunPostLayoutTasksSynchronously,
431 }; 431 };
432 void updateLayoutIgnorePendingStylesheets(RunPostLayoutTasks = RunPostLayout TasksAsyhnchronously); 432 void updateStyleAndLayoutIgnorePendingStylesheets(RunPostLayoutTasks = RunPo stLayoutTasksAsyhnchronously);
433 void updateLayoutIgnorePendingStylesheetsForNode(Node*); 433 void updateStyleAndLayoutIgnorePendingStylesheetsForNode(Node*);
434 PassRefPtr<ComputedStyle> styleForElementIgnoringPendingStylesheets(Element* ); 434 PassRefPtr<ComputedStyle> styleForElementIgnoringPendingStylesheets(Element* );
435 PassRefPtr<ComputedStyle> styleForPage(int pageIndex); 435 PassRefPtr<ComputedStyle> styleForPage(int pageIndex);
436 436
437 // Returns true if page box (margin boxes and page borders) is visible. 437 // Returns true if page box (margin boxes and page borders) is visible.
438 bool isPageBoxVisible(int pageIndex); 438 bool isPageBoxVisible(int pageIndex);
439 439
440 // Returns the preferred page size and margins in pixels, assuming 96 440 // Returns the preferred page size and margins in pixels, assuming 96
441 // pixels per inch. pageSize, marginTop, marginRight, marginBottom, 441 // pixels per inch. pageSize, marginTop, marginRight, marginBottom,
442 // marginLeft must be initialized to the default values that are used if 442 // marginLeft must be initialized to the default values that are used if
443 // auto is specified. 443 // auto is specified.
(...skipping 983 matching lines...) Expand 10 before | Expand all | Expand 10 after
1427 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1427 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1428 1428
1429 } // namespace blink 1429 } // namespace blink
1430 1430
1431 #ifndef NDEBUG 1431 #ifndef NDEBUG
1432 // Outside the WebCore namespace for ease of invocation from gdb. 1432 // Outside the WebCore namespace for ease of invocation from gdb.
1433 CORE_EXPORT void showLiveDocumentInstances(); 1433 CORE_EXPORT void showLiveDocumentInstances();
1434 #endif 1434 #endif
1435 1435
1436 #endif // Document_h 1436 #endif // Document_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698