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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/Document.h
diff --git a/third_party/WebKit/Source/core/dom/Document.h b/third_party/WebKit/Source/core/dom/Document.h
index 584327a25ee338c712d872a1ca177dd7d2359758..30078bc8972f1b0824188eaf5c112461ee767321 100644
--- a/third_party/WebKit/Source/core/dom/Document.h
+++ b/third_party/WebKit/Source/core/dom/Document.h
@@ -387,16 +387,12 @@ public:
bool gotoAnchorNeededAfterStylesheetsLoad() { return m_gotoAnchorNeededAfterStylesheetsLoad; }
void setGotoAnchorNeededAfterStylesheetsLoad(bool b) { m_gotoAnchorNeededAfterStylesheetsLoad = b; }
- // Called when one or more stylesheets in the document may have been added, removed, or changed.
- void styleResolverChanged(StyleResolverUpdateMode = FullStyleUpdate);
- void styleResolverMayHaveChanged();
-
- // FIXME: Switch all callers of styleResolverChanged to these or better ones and then make them
+ // FIXME: Switch all callers of resolverChanged to these or better ones and then make them
// do something smarter.
void removedStyleSheet(StyleSheet*, StyleResolverUpdateMode = FullStyleUpdate);
- void addedStyleSheet(StyleSheet*) { styleResolverChanged(); }
+ void addedStyleSheet(StyleSheet*);
void modifiedStyleSheet(StyleSheet*, StyleResolverUpdateMode = FullStyleUpdate);
- void changedSelectorWatch() { styleResolverChanged(); }
+ void changedSelectorWatch();
void scheduleUseShadowTreeUpdate(SVGUseElement&);
void unscheduleUseShadowTreeUpdate(SVGUseElement&);
@@ -1160,6 +1156,7 @@ private:
void clearFocusedElementTimerFired(Timer<Document>*);
bool haveStylesheetsLoaded() const;
+ void styleResolverMayHaveChanged();
void setHoverNode(PassRefPtrWillBeRawPtr<Node>);
« 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