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

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

Issue 1333193004: Increment style version for all style changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Increment style version in scheduleLayoutTreeUpdate Created 5 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
« no previous file with comments | « no previous file | Source/core/dom/Document.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 770 matching lines...) Expand 10 before | Expand all | Expand 10 after
781 HTMLScriptElement* currentScript() const { return !m_currentScriptStack.isEm pty() ? m_currentScriptStack.last().get() : nullptr; } 781 HTMLScriptElement* currentScript() const { return !m_currentScriptStack.isEm pty() ? m_currentScriptStack.last().get() : nullptr; }
782 void pushCurrentScript(PassRefPtrWillBeRawPtr<HTMLScriptElement>); 782 void pushCurrentScript(PassRefPtrWillBeRawPtr<HTMLScriptElement>);
783 void popCurrentScript(); 783 void popCurrentScript();
784 784
785 void setTransformSource(PassOwnPtr<TransformSource>); 785 void setTransformSource(PassOwnPtr<TransformSource>);
786 TransformSource* transformSource() const { return m_transformSource.get(); } 786 TransformSource* transformSource() const { return m_transformSource.get(); }
787 787
788 void incDOMTreeVersion() { ASSERT(m_lifecycle.stateAllowsTreeMutations()); m _domTreeVersion = ++s_globalTreeVersion; } 788 void incDOMTreeVersion() { ASSERT(m_lifecycle.stateAllowsTreeMutations()); m _domTreeVersion = ++s_globalTreeVersion; }
789 uint64_t domTreeVersion() const { return m_domTreeVersion; } 789 uint64_t domTreeVersion() const { return m_domTreeVersion; }
790 790
791 void incStyleVersion() { ++m_styleVersion; }
792 uint64_t styleVersion() const { return m_styleVersion; } 791 uint64_t styleVersion() const { return m_styleVersion; }
793 792
794 enum PendingSheetLayout { NoLayoutWithPendingSheets, DidLayoutWithPendingShe ets, IgnoreLayoutWithPendingSheets }; 793 enum PendingSheetLayout { NoLayoutWithPendingSheets, DidLayoutWithPendingShe ets, IgnoreLayoutWithPendingSheets };
795 794
796 bool didLayoutWithPendingStylesheets() const { return m_pendingSheetLayout = = DidLayoutWithPendingSheets; } 795 bool didLayoutWithPendingStylesheets() const { return m_pendingSheetLayout = = DidLayoutWithPendingSheets; }
797 bool ignoreLayoutWithPendingStylesheets() const { return m_pendingSheetLayou t == IgnoreLayoutWithPendingSheets; } 796 bool ignoreLayoutWithPendingStylesheets() const { return m_pendingSheetLayou t == IgnoreLayoutWithPendingSheets; }
798 797
799 bool hasNodesWithPlaceholderStyle() const { return m_hasNodesWithPlaceholder Style; } 798 bool hasNodesWithPlaceholderStyle() const { return m_hasNodesWithPlaceholder Style; }
800 void setHasNodesWithPlaceholderStyle() { m_hasNodesWithPlaceholderStyle = tr ue; } 799 void setHasNodesWithPlaceholderStyle() { m_hasNodesWithPlaceholderStyle = tr ue; }
801 800
(...skipping 632 matching lines...) Expand 10 before | Expand all | Expand 10 after
1434 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1433 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1435 1434
1436 } // namespace blink 1435 } // namespace blink
1437 1436
1438 #ifndef NDEBUG 1437 #ifndef NDEBUG
1439 // Outside the WebCore namespace for ease of invocation from gdb. 1438 // Outside the WebCore namespace for ease of invocation from gdb.
1440 CORE_EXPORT void showLiveDocumentInstances(); 1439 CORE_EXPORT void showLiveDocumentInstances();
1441 #endif 1440 #endif
1442 1441
1443 #endif // Document_h 1442 #endif // Document_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698