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

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

Issue 1843693002: Introduce setNeedsActiveStyleUpdate for adding/removing stylesheets. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 bool isScriptExecutionReady() const { return isRenderingReady(); } 376 bool isScriptExecutionReady() const { return isRenderingReady(); }
377 377
378 // This is a DOM function. 378 // This is a DOM function.
379 StyleSheetList* styleSheets(); 379 StyleSheetList* styleSheets();
380 380
381 StyleEngine& styleEngine() { ASSERT(m_styleEngine.get()); return *m_styleEng ine.get(); } 381 StyleEngine& styleEngine() { ASSERT(m_styleEngine.get()); return *m_styleEng ine.get(); }
382 382
383 bool gotoAnchorNeededAfterStylesheetsLoad() { return m_gotoAnchorNeededAfter StylesheetsLoad; } 383 bool gotoAnchorNeededAfterStylesheetsLoad() { return m_gotoAnchorNeededAfter StylesheetsLoad; }
384 void setGotoAnchorNeededAfterStylesheetsLoad(bool b) { m_gotoAnchorNeededAft erStylesheetsLoad = b; } 384 void setGotoAnchorNeededAfterStylesheetsLoad(bool b) { m_gotoAnchorNeededAft erStylesheetsLoad = b; }
385 385
386 // FIXME: Switch all callers of resolverChanged to these or better ones and then make them
387 // do something smarter.
388 void removedStyleSheet(StyleSheet*, StyleResolverUpdateMode = FullStyleUpdat e);
389 void modifiedStyleSheet(StyleSheet*, StyleResolverUpdateMode = FullStyleUpda te);
390
391 void scheduleUseShadowTreeUpdate(SVGUseElement&); 386 void scheduleUseShadowTreeUpdate(SVGUseElement&);
392 void unscheduleUseShadowTreeUpdate(SVGUseElement&); 387 void unscheduleUseShadowTreeUpdate(SVGUseElement&);
393 388
394 // FIXME: SVG filters should change to store the filter on the ComputedStyle 389 // FIXME: SVG filters should change to store the filter on the ComputedStyle
395 // instead of the LayoutObject so we can get rid of this hack. 390 // instead of the LayoutObject so we can get rid of this hack.
396 void scheduleSVGFilterLayerUpdateHack(Element&); 391 void scheduleSVGFilterLayerUpdateHack(Element&);
397 void unscheduleSVGFilterLayerUpdateHack(Element&); 392 void unscheduleSVGFilterLayerUpdateHack(Element&);
398 393
399 void evaluateMediaQueryList(); 394 void evaluateMediaQueryList();
400 395
(...skipping 1046 matching lines...) Expand 10 before | Expand all | Expand 10 after
1447 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1442 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1448 1443
1449 } // namespace blink 1444 } // namespace blink
1450 1445
1451 #ifndef NDEBUG 1446 #ifndef NDEBUG
1452 // Outside the WebCore namespace for ease of invocation from gdb. 1447 // Outside the WebCore namespace for ease of invocation from gdb.
1453 CORE_EXPORT void showLiveDocumentInstances(); 1448 CORE_EXPORT void showLiveDocumentInstances();
1454 #endif 1449 #endif
1455 1450
1456 #endif // Document_h 1451 #endif // Document_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSStyleSheet.cpp ('k') | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698