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

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

Issue 202683005: optimizing layout performance when only transform3d matrix changed by Base URL: http://src.chromium.org/blink/trunk/
Patch Set: Created 6 years, 9 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 1034 matching lines...) Expand 10 before | Expand all | Expand 10 after
1045 1045
1046 void registerVisibilityObserver(DocumentVisibilityObserver*); 1046 void registerVisibilityObserver(DocumentVisibilityObserver*);
1047 void unregisterVisibilityObserver(DocumentVisibilityObserver*); 1047 void unregisterVisibilityObserver(DocumentVisibilityObserver*);
1048 1048
1049 // FIXME: Remove this method once we have input routing in the browser 1049 // FIXME: Remove this method once we have input routing in the browser
1050 // process. See http://crbug.com/339659. 1050 // process. See http://crbug.com/339659.
1051 virtual void defaultEventHandler(Event*) OVERRIDE; 1051 virtual void defaultEventHandler(Event*) OVERRIDE;
1052 1052
1053 void updateStyleInvalidationIfNeeded(); 1053 void updateStyleInvalidationIfNeeded();
1054 1054
1055 void setFastCompositing(bool enable) { m_fastCompositing = enable;}
1055 protected: 1056 protected:
1056 Document(const DocumentInit&, DocumentClassFlags = DefaultDocumentClass); 1057 Document(const DocumentInit&, DocumentClassFlags = DefaultDocumentClass);
1057 1058
1058 virtual void didUpdateSecurityOrigin() OVERRIDE FINAL; 1059 virtual void didUpdateSecurityOrigin() OVERRIDE FINAL;
1059 1060
1060 void clearXMLVersion() { m_xmlVersion = String(); } 1061 void clearXMLVersion() { m_xmlVersion = String(); }
1061 1062
1062 virtual void dispose() OVERRIDE; 1063 virtual void dispose() OVERRIDE;
1063 1064
1064 virtual PassRefPtr<Document> cloneDocumentWithoutChildren(); 1065 virtual PassRefPtr<Document> cloneDocumentWithoutChildren();
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
1346 Document* m_templateDocumentHost; // Manually managed weakref (backpointer f rom m_templateDocument). 1347 Document* m_templateDocumentHost; // Manually managed weakref (backpointer f rom m_templateDocument).
1347 1348
1348 Timer<Document> m_didAssociateFormControlsTimer; 1349 Timer<Document> m_didAssociateFormControlsTimer;
1349 HashSet<RefPtr<Element> > m_associatedFormControls; 1350 HashSet<RefPtr<Element> > m_associatedFormControls;
1350 1351
1351 HashSet<SVGUseElement*> m_useElementsNeedingUpdate; 1352 HashSet<SVGUseElement*> m_useElementsNeedingUpdate;
1352 1353
1353 bool m_hasViewportUnits; 1354 bool m_hasViewportUnits;
1354 1355
1355 HashSet<DocumentVisibilityObserver*> m_visibilityObservers; 1356 HashSet<DocumentVisibilityObserver*> m_visibilityObservers;
1357
1358 bool m_fastCompositing;
1356 }; 1359 };
1357 1360
1358 inline void Document::notifyRemovePendingSheetIfNeeded() 1361 inline void Document::notifyRemovePendingSheetIfNeeded()
1359 { 1362 {
1360 if (m_needsNotifyRemoveAllPendingStylesheet) 1363 if (m_needsNotifyRemoveAllPendingStylesheet)
1361 didRemoveAllPendingStylesheet(); 1364 didRemoveAllPendingStylesheet();
1362 } 1365 }
1363 1366
1364 inline bool Document::shouldOverrideLegacyDescription(ViewportDescription::Type origin) 1367 inline bool Document::shouldOverrideLegacyDescription(ViewportDescription::Type origin)
1365 { 1368 {
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
1400 inline bool Node::isDocumentNode() const 1403 inline bool Node::isDocumentNode() const
1401 { 1404 {
1402 return this == document(); 1405 return this == document();
1403 } 1406 }
1404 1407
1405 Node* eventTargetNodeForDocument(Document*); 1408 Node* eventTargetNodeForDocument(Document*);
1406 1409
1407 } // namespace WebCore 1410 } // namespace WebCore
1408 1411
1409 #endif // Document_h 1412 #endif // Document_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/dom/Document.cpp » ('j') | Source/core/rendering/compositing/RenderLayerCompositor.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698