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

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 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 413
414 // Special support for editing 414 // Special support for editing
415 Text* createEditingTextNode(const String&); 415 Text* createEditingTextNode(const String&);
416 416
417 void setupFontBuilder(ComputedStyle& documentStyle); 417 void setupFontBuilder(ComputedStyle& documentStyle);
418 418
419 bool needsLayoutTreeUpdate() const; 419 bool needsLayoutTreeUpdate() const;
420 bool needsLayoutTreeUpdateForNode(const Node&) const; 420 bool needsLayoutTreeUpdateForNode(const Node&) const;
421 // Update ComputedStyles and attach LayoutObjects if necessary, but don't 421 // Update ComputedStyles and attach LayoutObjects if necessary, but don't
422 // lay out. 422 // lay out.
423 void updateLayoutTree(); 423 void updateStyleAndLayoutTree();
424 // Same as updateLayoutTree() except ignoring pending stylesheets. 424 // Same as updateStyleAndLayoutTree() except ignoring pending stylesheets.
425 void updateLayoutTreeIgnorePendingStylesheets(); 425 void updateStyleAndLayoutTreeIgnorePendingStylesheets();
426 void updateLayoutTreeForNode(const Node*); 426 void updateStyleAndLayoutTreeForNode(const Node*);
427 void updateLayout(); 427 void updateStyleAndLayout();
428 void layoutUpdated(); 428 void layoutUpdated();
429 enum RunPostLayoutTasks { 429 enum RunPostLayoutTasks {
430 RunPostLayoutTasksAsyhnchronously, 430 RunPostLayoutTasksAsyhnchronously,
431 RunPostLayoutTasksSynchronously, 431 RunPostLayoutTasksSynchronously,
432 }; 432 };
433 void updateLayoutIgnorePendingStylesheets(RunPostLayoutTasks = RunPostLayout TasksAsyhnchronously); 433 void updateStyleAndLayoutIgnorePendingStylesheets(RunPostLayoutTasks = RunPo stLayoutTasksAsyhnchronously);
434 void updateLayoutIgnorePendingStylesheetsForNode(Node*); 434 void updateStyleAndLayoutIgnorePendingStylesheetsForNode(Node*);
435 PassRefPtr<ComputedStyle> styleForElementIgnoringPendingStylesheets(Element* ); 435 PassRefPtr<ComputedStyle> styleForElementIgnoringPendingStylesheets(Element* );
436 PassRefPtr<ComputedStyle> styleForPage(int pageIndex); 436 PassRefPtr<ComputedStyle> styleForPage(int pageIndex);
437 437
438 // Returns true if page box (margin boxes and page borders) is visible. 438 // Returns true if page box (margin boxes and page borders) is visible.
439 bool isPageBoxVisible(int pageIndex); 439 bool isPageBoxVisible(int pageIndex);
440 440
441 // Returns the preferred page size and margins in pixels, assuming 96 441 // Returns the preferred page size and margins in pixels, assuming 96
442 // pixels per inch. pageSize, marginTop, marginRight, marginBottom, 442 // pixels per inch. pageSize, marginTop, marginRight, marginBottom,
443 // marginLeft must be initialized to the default values that are used if 443 // marginLeft must be initialized to the default values that are used if
444 // auto is specified. 444 // auto is specified.
(...skipping 992 matching lines...) Expand 10 before | Expand all | Expand 10 after
1437 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1437 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1438 1438
1439 } // namespace blink 1439 } // namespace blink
1440 1440
1441 #ifndef NDEBUG 1441 #ifndef NDEBUG
1442 // Outside the WebCore namespace for ease of invocation from gdb. 1442 // Outside the WebCore namespace for ease of invocation from gdb.
1443 CORE_EXPORT void showLiveDocumentInstances(); 1443 CORE_EXPORT void showLiveDocumentInstances();
1444 #endif 1444 #endif
1445 1445
1446 #endif // Document_h 1446 #endif // Document_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/DragUpdateTest.cpp ('k') | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698