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

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

Issue 748513006: Trigger style recalc when the window's active state change (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: removed dumppixels from testcase Created 6 years 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 449 matching lines...) Expand 10 before | Expand all | Expand 10 after
460 460
461 // Special support for editing 461 // Special support for editing
462 PassRefPtrWillBeRawPtr<Text> createEditingTextNode(const String&); 462 PassRefPtrWillBeRawPtr<Text> createEditingTextNode(const String&);
463 463
464 void setupFontBuilder(RenderStyle* documentStyle); 464 void setupFontBuilder(RenderStyle* documentStyle);
465 465
466 bool needsRenderTreeUpdate() const; 466 bool needsRenderTreeUpdate() const;
467 void updateRenderTreeIfNeeded() { updateRenderTree(NoChange); } 467 void updateRenderTreeIfNeeded() { updateRenderTree(NoChange); }
468 void updateRenderTreeForNodeIfNeeded(Node*); 468 void updateRenderTreeForNodeIfNeeded(Node*);
469 void updateLayout(); 469 void updateLayout();
470 void updateRenderTreeOnFocusChanged();
471
470 enum RunPostLayoutTasks { 472 enum RunPostLayoutTasks {
471 RunPostLayoutTasksAsyhnchronously, 473 RunPostLayoutTasksAsyhnchronously,
472 RunPostLayoutTasksSynchronously, 474 RunPostLayoutTasksSynchronously,
473 }; 475 };
474 void updateLayoutIgnorePendingStylesheets(RunPostLayoutTasks = RunPostLayout TasksAsyhnchronously); 476 void updateLayoutIgnorePendingStylesheets(RunPostLayoutTasks = RunPostLayout TasksAsyhnchronously);
475 PassRefPtr<RenderStyle> styleForElementIgnoringPendingStylesheets(Element*); 477 PassRefPtr<RenderStyle> styleForElementIgnoringPendingStylesheets(Element*);
476 PassRefPtr<RenderStyle> styleForPage(int pageIndex); 478 PassRefPtr<RenderStyle> styleForPage(int pageIndex);
477 479
478 void updateDistributionForNodeIfNeeded(Node*); 480 void updateDistributionForNodeIfNeeded(Node*);
479 481
(...skipping 948 matching lines...) Expand 10 before | Expand all | Expand 10 after
1428 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1430 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1429 1431
1430 } // namespace blink 1432 } // namespace blink
1431 1433
1432 #ifndef NDEBUG 1434 #ifndef NDEBUG
1433 // Outside the WebCore namespace for ease of invocation from gdb. 1435 // Outside the WebCore namespace for ease of invocation from gdb.
1434 void showLiveDocumentInstances(); 1436 void showLiveDocumentInstances();
1435 #endif 1437 #endif
1436 1438
1437 #endif // Document_h 1439 #endif // Document_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698