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

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

Issue 423823004: Add support for SVG Clip paths in HTML (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Changed LayoutTests and Aligned with review comments Created 6 years, 4 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 414 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 void removedStyleSheet(StyleSheet*, StyleResolverUpdateMode = FullStyleUpdat e); 425 void removedStyleSheet(StyleSheet*, StyleResolverUpdateMode = FullStyleUpdat e);
426 void addedStyleSheet(StyleSheet*) { styleResolverChanged(); } 426 void addedStyleSheet(StyleSheet*) { styleResolverChanged(); }
427 void modifiedStyleSheet(StyleSheet*, StyleResolverUpdateMode = FullStyleUpda te); 427 void modifiedStyleSheet(StyleSheet*, StyleResolverUpdateMode = FullStyleUpda te);
428 void changedSelectorWatch() { styleResolverChanged(); } 428 void changedSelectorWatch() { styleResolverChanged(); }
429 429
430 void scheduleUseShadowTreeUpdate(SVGUseElement&); 430 void scheduleUseShadowTreeUpdate(SVGUseElement&);
431 void unscheduleUseShadowTreeUpdate(SVGUseElement&); 431 void unscheduleUseShadowTreeUpdate(SVGUseElement&);
432 432
433 // FIXME: SVG filters should change to store the filter on the RenderStyle 433 // FIXME: SVG filters should change to store the filter on the RenderStyle
434 // instead of the RenderObject so we can get rid of this hack. 434 // instead of the RenderObject so we can get rid of this hack.
435 void scheduleSVGFilterLayerUpdateHack(Element&); 435 void scheduleSVGEffectsLayerUpdateHack(Element&);
436 void unscheduleSVGFilterLayerUpdateHack(Element&); 436 void unscheduleSVGEffectsLayerUpdateHack(Element&);
437 437
438 void evaluateMediaQueryList(); 438 void evaluateMediaQueryList();
439 439
440 FormController& formController(); 440 FormController& formController();
441 DocumentState* formElementsState() const; 441 DocumentState* formElementsState() const;
442 void setStateForNewFormElements(const Vector<String>&); 442 void setStateForNewFormElements(const Vector<String>&);
443 443
444 FrameView* view() const; // can be null 444 FrameView* view() const; // can be null
445 LocalFrame* frame() const { return m_frame; } // can be null 445 LocalFrame* frame() const { return m_frame; } // can be null
446 FrameHost* frameHost() const; // can be null 446 FrameHost* frameHost() const; // can be null
(...skipping 597 matching lines...) Expand 10 before | Expand all | Expand 10 after
1044 bool hasViewportUnits() const { return m_hasViewportUnits; } 1044 bool hasViewportUnits() const { return m_hasViewportUnits; }
1045 void notifyResizeForViewportUnits(); 1045 void notifyResizeForViewportUnits();
1046 1046
1047 void registerVisibilityObserver(DocumentVisibilityObserver*); 1047 void registerVisibilityObserver(DocumentVisibilityObserver*);
1048 void unregisterVisibilityObserver(DocumentVisibilityObserver*); 1048 void unregisterVisibilityObserver(DocumentVisibilityObserver*);
1049 1049
1050 void updateStyleInvalidationIfNeeded(); 1050 void updateStyleInvalidationIfNeeded();
1051 1051
1052 virtual void trace(Visitor*) OVERRIDE; 1052 virtual void trace(Visitor*) OVERRIDE;
1053 1053
1054 bool hasSVGFilterElementsRequiringLayerUpdate() const { return m_layerUpdate SVGFilterElements.size(); } 1054 bool hasSVGEffectsElementsRequiringLayerUpdate() const
1055 {
1056 return m_layerUpdateSVGEffectsElements.size();
1057 }
1055 void didRecalculateStyleForElement() { ++m_styleRecalcElementCounter; } 1058 void didRecalculateStyleForElement() { ++m_styleRecalcElementCounter; }
1056 1059
1057 protected: 1060 protected:
1058 Document(const DocumentInit&, DocumentClassFlags = DefaultDocumentClass); 1061 Document(const DocumentInit&, DocumentClassFlags = DefaultDocumentClass);
1059 1062
1060 virtual void didUpdateSecurityOrigin() OVERRIDE FINAL; 1063 virtual void didUpdateSecurityOrigin() OVERRIDE FINAL;
1061 1064
1062 void clearXMLVersion() { m_xmlVersion = String(); } 1065 void clearXMLVersion() { m_xmlVersion = String(); }
1063 1066
1064 #if !ENABLE(OILPAN) 1067 #if !ENABLE(OILPAN)
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
1376 RefPtrWillBeMember<Document> m_templateDocument; 1379 RefPtrWillBeMember<Document> m_templateDocument;
1377 // With Oilpan the templateDocument and the templateDocumentHost 1380 // With Oilpan the templateDocument and the templateDocumentHost
1378 // live and die together. Without Oilpan, the templateDocumentHost 1381 // live and die together. Without Oilpan, the templateDocumentHost
1379 // is a manually managed backpointer from m_templateDocument. 1382 // is a manually managed backpointer from m_templateDocument.
1380 RawPtrWillBeMember<Document> m_templateDocumentHost; 1383 RawPtrWillBeMember<Document> m_templateDocumentHost;
1381 1384
1382 Timer<Document> m_didAssociateFormControlsTimer; 1385 Timer<Document> m_didAssociateFormControlsTimer;
1383 WillBeHeapHashSet<RefPtrWillBeMember<Element> > m_associatedFormControls; 1386 WillBeHeapHashSet<RefPtrWillBeMember<Element> > m_associatedFormControls;
1384 1387
1385 WillBeHeapHashSet<RawPtrWillBeMember<SVGUseElement> > m_useElementsNeedingUp date; 1388 WillBeHeapHashSet<RawPtrWillBeMember<SVGUseElement> > m_useElementsNeedingUp date;
1386 WillBeHeapHashSet<RawPtrWillBeMember<Element> > m_layerUpdateSVGFilterElemen ts; 1389 WillBeHeapHashSet<RawPtrWillBeMember<Element> > m_layerUpdateSVGEffectsEleme nts;
1387 1390
1388 bool m_hasViewportUnits; 1391 bool m_hasViewportUnits;
1389 1392
1390 typedef WillBeHeapHashSet<RawPtrWillBeWeakMember<DocumentVisibilityObserver> > DocumentVisibilityObserverSet; 1393 typedef WillBeHeapHashSet<RawPtrWillBeWeakMember<DocumentVisibilityObserver> > DocumentVisibilityObserverSet;
1391 DocumentVisibilityObserverSet m_visibilityObservers; 1394 DocumentVisibilityObserverSet m_visibilityObservers;
1392 1395
1393 int m_styleRecalcElementCounter; 1396 int m_styleRecalcElementCounter;
1394 }; 1397 };
1395 1398
1396 inline bool Document::shouldOverrideLegacyDescription(ViewportDescription::Type origin) 1399 inline bool Document::shouldOverrideLegacyDescription(ViewportDescription::Type origin)
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
1430 Node* eventTargetNodeForDocument(Document*); 1433 Node* eventTargetNodeForDocument(Document*);
1431 1434
1432 } // namespace blink 1435 } // namespace blink
1433 1436
1434 #ifndef NDEBUG 1437 #ifndef NDEBUG
1435 // Outside the WebCore namespace for ease of invocation from gdb. 1438 // Outside the WebCore namespace for ease of invocation from gdb.
1436 void showLiveDocumentInstances(); 1439 void showLiveDocumentInstances();
1437 #endif 1440 #endif
1438 1441
1439 #endif // Document_h 1442 #endif // Document_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698