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

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

Issue 319613004: Rename scheduleLayerUpdate now that it's only used for SVG filters. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rename all the things Created 6 years, 6 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
« no previous file with comments | « no previous file | 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 436 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 // 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
448 // do something smarter. 448 // do something smarter.
449 void removedStyleSheet(StyleSheet*, StyleResolverUpdateMode = FullStyleUpdat e); 449 void removedStyleSheet(StyleSheet*, StyleResolverUpdateMode = FullStyleUpdat e);
450 void addedStyleSheet(StyleSheet*) { styleResolverChanged(); } 450 void addedStyleSheet(StyleSheet*) { styleResolverChanged(); }
451 void modifiedStyleSheet(StyleSheet*, StyleResolverUpdateMode = FullStyleUpda te); 451 void modifiedStyleSheet(StyleSheet*, StyleResolverUpdateMode = FullStyleUpda te);
452 void changedSelectorWatch() { styleResolverChanged(); } 452 void changedSelectorWatch() { styleResolverChanged(); }
453 453
454 void scheduleUseShadowTreeUpdate(SVGUseElement&); 454 void scheduleUseShadowTreeUpdate(SVGUseElement&);
455 void unscheduleUseShadowTreeUpdate(SVGUseElement&); 455 void unscheduleUseShadowTreeUpdate(SVGUseElement&);
456 456
457 // FIXME: This should be eliminated and elements that use it should be made to 457 // FIXME: SVG filters should change to store the filter on the RenderStyle
458 // always have a layer so they don't need to go about creating one from reas ons 458 // instead of the RenderObject so we can get rid of this hack.
459 // external to style. 459 void scheduleSVGFilterLayerUpdateHack(Element&);
460 void scheduleLayerUpdate(Element&); 460 void unscheduleSVGFilterLayerUpdateHack(Element&);
461 void unscheduleLayerUpdate(Element&);
462 461
463 void evaluateMediaQueryList(); 462 void evaluateMediaQueryList();
464 463
465 FormController& formController(); 464 FormController& formController();
466 DocumentState* formElementsState() const; 465 DocumentState* formElementsState() const;
467 void setStateForNewFormElements(const Vector<String>&); 466 void setStateForNewFormElements(const Vector<String>&);
468 467
469 FrameView* view() const; // can be null 468 FrameView* view() const; // can be null
470 LocalFrame* frame() const { return m_frame; } // can be null 469 LocalFrame* frame() const { return m_frame; } // can be null
471 FrameHost* frameHost() const; // can be null 470 FrameHost* frameHost() const; // can be null
(...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after
1066 bool hasViewportUnits() const { return m_hasViewportUnits; } 1065 bool hasViewportUnits() const { return m_hasViewportUnits; }
1067 void notifyResizeForViewportUnits(); 1066 void notifyResizeForViewportUnits();
1068 1067
1069 void registerVisibilityObserver(DocumentVisibilityObserver*); 1068 void registerVisibilityObserver(DocumentVisibilityObserver*);
1070 void unregisterVisibilityObserver(DocumentVisibilityObserver*); 1069 void unregisterVisibilityObserver(DocumentVisibilityObserver*);
1071 1070
1072 void updateStyleInvalidationIfNeeded(); 1071 void updateStyleInvalidationIfNeeded();
1073 1072
1074 virtual void trace(Visitor*) OVERRIDE; 1073 virtual void trace(Visitor*) OVERRIDE;
1075 1074
1076 bool hasElementsRequiringLayerUpdate() const { return m_layerUpdateElements. size(); } 1075 bool hasSVGFilterElementsRequiringLayerUpdate() const { return m_layerUpdate SVGFilterElements.size(); }
1077 void didRecalculateStyleForElement() { ++m_styleRecalcElementCounter; } 1076 void didRecalculateStyleForElement() { ++m_styleRecalcElementCounter; }
1078 1077
1079 protected: 1078 protected:
1080 Document(const DocumentInit&, DocumentClassFlags = DefaultDocumentClass); 1079 Document(const DocumentInit&, DocumentClassFlags = DefaultDocumentClass);
1081 1080
1082 virtual void didUpdateSecurityOrigin() OVERRIDE FINAL; 1081 virtual void didUpdateSecurityOrigin() OVERRIDE FINAL;
1083 1082
1084 void clearXMLVersion() { m_xmlVersion = String(); } 1083 void clearXMLVersion() { m_xmlVersion = String(); }
1085 1084
1086 #if !ENABLE(OILPAN) 1085 #if !ENABLE(OILPAN)
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
1402 RefPtrWillBeMember<Document> m_templateDocument; 1401 RefPtrWillBeMember<Document> m_templateDocument;
1403 // With Oilpan the templateDocument and the templateDocumentHost 1402 // With Oilpan the templateDocument and the templateDocumentHost
1404 // live and die together. Without Oilpan, the templateDocumentHost 1403 // live and die together. Without Oilpan, the templateDocumentHost
1405 // is a manually managed backpointer from m_templateDocument. 1404 // is a manually managed backpointer from m_templateDocument.
1406 RawPtrWillBeMember<Document> m_templateDocumentHost; 1405 RawPtrWillBeMember<Document> m_templateDocumentHost;
1407 1406
1408 Timer<Document> m_didAssociateFormControlsTimer; 1407 Timer<Document> m_didAssociateFormControlsTimer;
1409 WillBeHeapHashSet<RefPtrWillBeMember<Element> > m_associatedFormControls; 1408 WillBeHeapHashSet<RefPtrWillBeMember<Element> > m_associatedFormControls;
1410 1409
1411 HashSet<SVGUseElement*> m_useElementsNeedingUpdate; 1410 HashSet<SVGUseElement*> m_useElementsNeedingUpdate;
1412 HashSet<Element*> m_layerUpdateElements; 1411 HashSet<Element*> m_layerUpdateSVGFilterElements;
1413 1412
1414 bool m_hasViewportUnits; 1413 bool m_hasViewportUnits;
1415 1414
1416 typedef WillBeHeapHashSet<RawPtrWillBeWeakMember<DocumentVisibilityObserver> > DocumentVisibilityObserverSet; 1415 typedef WillBeHeapHashSet<RawPtrWillBeWeakMember<DocumentVisibilityObserver> > DocumentVisibilityObserverSet;
1417 DocumentVisibilityObserverSet m_visibilityObservers; 1416 DocumentVisibilityObserverSet m_visibilityObservers;
1418 1417
1419 int m_styleRecalcElementCounter; 1418 int m_styleRecalcElementCounter;
1420 }; 1419 };
1421 1420
1422 inline bool Document::shouldOverrideLegacyDescription(ViewportDescription::Type origin) 1421 inline bool Document::shouldOverrideLegacyDescription(ViewportDescription::Type origin)
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
1456 inline bool Node::isDocumentNode() const 1455 inline bool Node::isDocumentNode() const
1457 { 1456 {
1458 return this == document(); 1457 return this == document();
1459 } 1458 }
1460 1459
1461 Node* eventTargetNodeForDocument(Document*); 1460 Node* eventTargetNodeForDocument(Document*);
1462 1461
1463 } // namespace WebCore 1462 } // namespace WebCore
1464 1463
1465 #endif // Document_h 1464 #endif // Document_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698