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

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

Issue 219993002: Avoid calling markAncestorsWithChildNeedsStyleRecalc() constantly in childrenChanged (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix accessibility test and causing recalcs on removal Created 6 years, 8 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 630 matching lines...) Expand 10 before | Expand all | Expand 10 after
641 void activeChainNodeDetached(Node*); 641 void activeChainNodeDetached(Node*);
642 642
643 void updateHoverActiveState(const HitTestRequest&, Element*, const PlatformM ouseEvent* = 0); 643 void updateHoverActiveState(const HitTestRequest&, Element*, const PlatformM ouseEvent* = 0);
644 644
645 // Updates for :target (CSS3 selector). 645 // Updates for :target (CSS3 selector).
646 void setCSSTarget(Element*); 646 void setCSSTarget(Element*);
647 Element* cssTarget() const { return m_cssTarget; } 647 Element* cssTarget() const { return m_cssTarget; }
648 648
649 void scheduleRenderTreeUpdate(); 649 void scheduleRenderTreeUpdate();
650 bool hasPendingForcedStyleRecalc() const; 650 bool hasPendingForcedStyleRecalc() const;
651 bool hasPendingStyleRecalc() const { return m_lifecycle.state() == DocumentL ifecycle::StyleRecalcPending; }
651 652
652 void registerNodeList(LiveNodeListBase*); 653 void registerNodeList(LiveNodeListBase*);
653 void unregisterNodeList(LiveNodeListBase*); 654 void unregisterNodeList(LiveNodeListBase*);
654 void incrementNodeListWithIdNameCacheCount(); 655 void incrementNodeListWithIdNameCacheCount();
655 void decrementNodeListWithIdNameCacheCount(); 656 void decrementNodeListWithIdNameCacheCount();
656 bool shouldInvalidateNodeListCaches(const QualifiedName* attrName = 0) const ; 657 bool shouldInvalidateNodeListCaches(const QualifiedName* attrName = 0) const ;
657 void invalidateNodeListCaches(const QualifiedName* attrName); 658 void invalidateNodeListCaches(const QualifiedName* attrName);
658 659
659 void attachNodeIterator(NodeIterator*); 660 void attachNodeIterator(NodeIterator*);
660 void detachNodeIterator(NodeIterator*); 661 void detachNodeIterator(NodeIterator*);
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after
1110 virtual void reportBlockedScriptExecutionToInspector(const String& directive Text) OVERRIDE FINAL; 1111 virtual void reportBlockedScriptExecutionToInspector(const String& directive Text) OVERRIDE FINAL;
1111 virtual void addMessage(MessageSource, MessageLevel, const String& message, const String& sourceURL, unsigned lineNumber, ScriptState*) OVERRIDE FINAL; 1112 virtual void addMessage(MessageSource, MessageLevel, const String& message, const String& sourceURL, unsigned lineNumber, ScriptState*) OVERRIDE FINAL;
1112 void internalAddMessage(MessageSource, MessageLevel, const String& message, const String& sourceURL, unsigned lineNumber, PassRefPtr<ScriptCallStack>, Scrip tState*); 1113 void internalAddMessage(MessageSource, MessageLevel, const String& message, const String& sourceURL, unsigned lineNumber, PassRefPtr<ScriptCallStack>, Scrip tState*);
1113 1114
1114 virtual double timerAlignmentInterval() const OVERRIDE FINAL; 1115 virtual double timerAlignmentInterval() const OVERRIDE FINAL;
1115 1116
1116 void updateTitle(const String&); 1117 void updateTitle(const String&);
1117 void updateFocusAppearanceTimerFired(Timer<Document>*); 1118 void updateFocusAppearanceTimerFired(Timer<Document>*);
1118 void updateBaseURL(); 1119 void updateBaseURL();
1119 1120
1120 bool hasPendingStyleRecalc() const { return m_lifecycle.state() == DocumentL ifecycle::StyleRecalcPending; }
1121
1122 void executeScriptsWaitingForResourcesIfNeeded(); 1121 void executeScriptsWaitingForResourcesIfNeeded();
1123 1122
1124 PassRefPtr<NodeList> handleZeroPadding(const HitTestRequest&, HitTestResult& ) const; 1123 PassRefPtr<NodeList> handleZeroPadding(const HitTestRequest&, HitTestResult& ) const;
1125 1124
1126 void loadEventDelayTimerFired(Timer<Document>*); 1125 void loadEventDelayTimerFired(Timer<Document>*);
1127 void pluginLoadingTimerFired(Timer<Document>*); 1126 void pluginLoadingTimerFired(Timer<Document>*);
1128 1127
1129 PageVisibilityState pageVisibilityState() const; 1128 PageVisibilityState pageVisibilityState() const;
1130 1129
1131 PassRefPtr<HTMLCollection> ensureCachedCollection(CollectionType); 1130 PassRefPtr<HTMLCollection> ensureCachedCollection(CollectionType);
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
1407 inline bool Node::isDocumentNode() const 1406 inline bool Node::isDocumentNode() const
1408 { 1407 {
1409 return this == document(); 1408 return this == document();
1410 } 1409 }
1411 1410
1412 Node* eventTargetNodeForDocument(Document*); 1411 Node* eventTargetNodeForDocument(Document*);
1413 1412
1414 } // namespace WebCore 1413 } // namespace WebCore
1415 1414
1416 #endif // Document_h 1415 #endif // Document_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698