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

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

Issue 279463002: HTML Imports: Fix yet another FOUC (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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 424 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 // This is a DOM function. 435 // This is a DOM function.
436 StyleSheetList* styleSheets(); 436 StyleSheetList* styleSheets();
437 437
438 StyleEngine* styleEngine() { return m_styleEngine.get(); } 438 StyleEngine* styleEngine() { return m_styleEngine.get(); }
439 439
440 bool gotoAnchorNeededAfterStylesheetsLoad() { return m_gotoAnchorNeededAfter StylesheetsLoad; } 440 bool gotoAnchorNeededAfterStylesheetsLoad() { return m_gotoAnchorNeededAfter StylesheetsLoad; }
441 void setGotoAnchorNeededAfterStylesheetsLoad(bool b) { m_gotoAnchorNeededAft erStylesheetsLoad = b; } 441 void setGotoAnchorNeededAfterStylesheetsLoad(bool b) { m_gotoAnchorNeededAft erStylesheetsLoad = b; }
442 442
443 // Called when one or more stylesheets in the document may have been added, removed, or changed. 443 // Called when one or more stylesheets in the document may have been added, removed, or changed.
444 void styleResolverChanged(RecalcStyleTime, StyleResolverUpdateMode = FullSty leUpdate); 444 void styleResolverChanged(RecalcStyleTime, StyleResolverUpdateMode = FullSty leUpdate);
445 void styleResolverMayHaveChanged();
445 446
446 // FIXME: Switch all callers of styleResolverChanged to these or better ones and then make them 447 // FIXME: Switch all callers of styleResolverChanged to these or better ones and then make them
447 // do something smarter. 448 // do something smarter.
448 void removedStyleSheet(StyleSheet*, RecalcStyleTime when = RecalcStyleDeferr ed, StyleResolverUpdateMode = FullStyleUpdate); 449 void removedStyleSheet(StyleSheet*, RecalcStyleTime when = RecalcStyleDeferr ed, StyleResolverUpdateMode = FullStyleUpdate);
449 void addedStyleSheet(StyleSheet*, RecalcStyleTime when = RecalcStyleDeferred ) { styleResolverChanged(when); } 450 void addedStyleSheet(StyleSheet*, RecalcStyleTime when = RecalcStyleDeferred ) { styleResolverChanged(when); }
450 void modifiedStyleSheet(StyleSheet*, RecalcStyleTime when = RecalcStyleDefer red, StyleResolverUpdateMode = FullStyleUpdate); 451 void modifiedStyleSheet(StyleSheet*, RecalcStyleTime when = RecalcStyleDefer red, StyleResolverUpdateMode = FullStyleUpdate);
451 void changedSelectorWatch() { styleResolverChanged(RecalcStyleDeferred); } 452 void changedSelectorWatch() { styleResolverChanged(RecalcStyleDeferred); }
452 453
453 void scheduleUseShadowTreeUpdate(SVGUseElement&); 454 void scheduleUseShadowTreeUpdate(SVGUseElement&);
454 void unscheduleUseShadowTreeUpdate(SVGUseElement&); 455 void unscheduleUseShadowTreeUpdate(SVGUseElement&);
(...skipping 988 matching lines...) Expand 10 before | Expand all | Expand 10 after
1443 inline bool Node::isDocumentNode() const 1444 inline bool Node::isDocumentNode() const
1444 { 1445 {
1445 return this == document(); 1446 return this == document();
1446 } 1447 }
1447 1448
1448 Node* eventTargetNodeForDocument(Document*); 1449 Node* eventTargetNodeForDocument(Document*);
1449 1450
1450 } // namespace WebCore 1451 } // namespace WebCore
1451 1452
1452 #endif // Document_h 1453 #endif // Document_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698