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

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

Issue 1716803002: Trigger repaint on first paint only on pending stylesheet decrement. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 | third_party/WebKit/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 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 bool isScriptExecutionReady() const { return isRenderingReady(); } 380 bool isScriptExecutionReady() const { return isRenderingReady(); }
381 381
382 // This is a DOM function. 382 // This is a DOM function.
383 StyleSheetList* styleSheets(); 383 StyleSheetList* styleSheets();
384 384
385 StyleEngine& styleEngine() { ASSERT(m_styleEngine.get()); return *m_styleEng ine.get(); } 385 StyleEngine& styleEngine() { ASSERT(m_styleEngine.get()); return *m_styleEng ine.get(); }
386 386
387 bool gotoAnchorNeededAfterStylesheetsLoad() { return m_gotoAnchorNeededAfter StylesheetsLoad; } 387 bool gotoAnchorNeededAfterStylesheetsLoad() { return m_gotoAnchorNeededAfter StylesheetsLoad; }
388 void setGotoAnchorNeededAfterStylesheetsLoad(bool b) { m_gotoAnchorNeededAft erStylesheetsLoad = b; } 388 void setGotoAnchorNeededAfterStylesheetsLoad(bool b) { m_gotoAnchorNeededAft erStylesheetsLoad = b; }
389 389
390 // Called when one or more stylesheets in the document may have been added, removed, or changed. 390 // FIXME: Switch all callers of resolverChanged to these or better ones and then make them
391 void styleResolverChanged(StyleResolverUpdateMode = FullStyleUpdate);
392 void styleResolverMayHaveChanged();
393
394 // FIXME: Switch all callers of styleResolverChanged to these or better ones and then make them
395 // do something smarter. 391 // do something smarter.
396 void removedStyleSheet(StyleSheet*, StyleResolverUpdateMode = FullStyleUpdat e); 392 void removedStyleSheet(StyleSheet*, StyleResolverUpdateMode = FullStyleUpdat e);
397 void addedStyleSheet(StyleSheet*) { styleResolverChanged(); } 393 void addedStyleSheet(StyleSheet*);
398 void modifiedStyleSheet(StyleSheet*, StyleResolverUpdateMode = FullStyleUpda te); 394 void modifiedStyleSheet(StyleSheet*, StyleResolverUpdateMode = FullStyleUpda te);
399 void changedSelectorWatch() { styleResolverChanged(); } 395 void changedSelectorWatch();
400 396
401 void scheduleUseShadowTreeUpdate(SVGUseElement&); 397 void scheduleUseShadowTreeUpdate(SVGUseElement&);
402 void unscheduleUseShadowTreeUpdate(SVGUseElement&); 398 void unscheduleUseShadowTreeUpdate(SVGUseElement&);
403 399
404 // FIXME: SVG filters should change to store the filter on the ComputedStyle 400 // FIXME: SVG filters should change to store the filter on the ComputedStyle
405 // instead of the LayoutObject so we can get rid of this hack. 401 // instead of the LayoutObject so we can get rid of this hack.
406 void scheduleSVGFilterLayerUpdateHack(Element&); 402 void scheduleSVGFilterLayerUpdateHack(Element&);
407 void unscheduleSVGFilterLayerUpdateHack(Element&); 403 void unscheduleSVGFilterLayerUpdateHack(Element&);
408 404
409 void evaluateMediaQueryList(); 405 void evaluateMediaQueryList();
(...skipping 743 matching lines...) Expand 10 before | Expand all | Expand 10 after
1153 1149
1154 void addListenerType(ListenerType listenerType) { m_listenerTypes |= listene rType; } 1150 void addListenerType(ListenerType listenerType) { m_listenerTypes |= listene rType; }
1155 void addMutationEventListenerTypeIfEnabled(ListenerType); 1151 void addMutationEventListenerTypeIfEnabled(ListenerType);
1156 1152
1157 void didAssociateFormControlsTimerFired(Timer<Document>*); 1153 void didAssociateFormControlsTimerFired(Timer<Document>*);
1158 1154
1159 void clearFocusedElementSoon(); 1155 void clearFocusedElementSoon();
1160 void clearFocusedElementTimerFired(Timer<Document>*); 1156 void clearFocusedElementTimerFired(Timer<Document>*);
1161 1157
1162 bool haveStylesheetsLoaded() const; 1158 bool haveStylesheetsLoaded() const;
1159 void styleResolverMayHaveChanged();
1163 1160
1164 void setHoverNode(PassRefPtrWillBeRawPtr<Node>); 1161 void setHoverNode(PassRefPtrWillBeRawPtr<Node>);
1165 1162
1166 using EventFactorySet = HashSet<OwnPtr<EventFactoryBase>>; 1163 using EventFactorySet = HashSet<OwnPtr<EventFactoryBase>>;
1167 static EventFactorySet& eventFactories(); 1164 static EventFactorySet& eventFactories();
1168 1165
1169 void setNthIndexCache(NthIndexCache* nthIndexCache) { ASSERT(!m_nthIndexCach e || !nthIndexCache); m_nthIndexCache = nthIndexCache; } 1166 void setNthIndexCache(NthIndexCache* nthIndexCache) { ASSERT(!m_nthIndexCach e || !nthIndexCache); m_nthIndexCache = nthIndexCache; }
1170 1167
1171 const OriginAccessEntry& accessEntryFromURL(); 1168 const OriginAccessEntry& accessEntryFromURL();
1172 1169
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
1452 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1449 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1453 1450
1454 } // namespace blink 1451 } // namespace blink
1455 1452
1456 #ifndef NDEBUG 1453 #ifndef NDEBUG
1457 // Outside the WebCore namespace for ease of invocation from gdb. 1454 // Outside the WebCore namespace for ease of invocation from gdb.
1458 CORE_EXPORT void showLiveDocumentInstances(); 1455 CORE_EXPORT void showLiveDocumentInstances();
1459 #endif 1456 #endif
1460 1457
1461 #endif // Document_h 1458 #endif // Document_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698