Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 432 // FIXME: Switch all callers of styleResolverChanged to these or better ones and then make them | 432 // FIXME: Switch all callers of styleResolverChanged to these or better ones and then make them |
| 433 // do something smarter. | 433 // do something smarter. |
| 434 void removedStyleSheet(StyleSheet*, RecalcStyleTime when = RecalcStyleDeferr ed, StyleResolverUpdateMode = FullStyleUpdate); | 434 void removedStyleSheet(StyleSheet*, RecalcStyleTime when = RecalcStyleDeferr ed, StyleResolverUpdateMode = FullStyleUpdate); |
| 435 void addedStyleSheet(StyleSheet*, RecalcStyleTime when = RecalcStyleDeferred ) { styleResolverChanged(when); } | 435 void addedStyleSheet(StyleSheet*, RecalcStyleTime when = RecalcStyleDeferred ) { styleResolverChanged(when); } |
| 436 void modifiedStyleSheet(StyleSheet*, RecalcStyleTime when = RecalcStyleDefer red, StyleResolverUpdateMode = FullStyleUpdate); | 436 void modifiedStyleSheet(StyleSheet*, RecalcStyleTime when = RecalcStyleDefer red, StyleResolverUpdateMode = FullStyleUpdate); |
| 437 void changedSelectorWatch() { styleResolverChanged(RecalcStyleDeferred); } | 437 void changedSelectorWatch() { styleResolverChanged(RecalcStyleDeferred); } |
| 438 | 438 |
| 439 void scheduleUseShadowTreeUpdate(SVGUseElement&); | 439 void scheduleUseShadowTreeUpdate(SVGUseElement&); |
| 440 void unscheduleUseShadowTreeUpdate(SVGUseElement&); | 440 void unscheduleUseShadowTreeUpdate(SVGUseElement&); |
| 441 | 441 |
| 442 // FIXME: This should be eliminated and elements that use it should be made to | |
| 443 // always have a layer so they don't need to go about creating one from reas ons | |
| 444 // external to style. | |
| 445 void scheduleLayerUpdate(Element&); | |
| 446 void unscheduleLayerUpdate(Element&); | |
|
ojan
2014/03/24 19:39:15
The overloading of layer to mean RenderLayer and G
| |
| 447 | |
| 442 void evaluateMediaQueryList(); | 448 void evaluateMediaQueryList(); |
| 443 | 449 |
| 444 FormController& formController(); | 450 FormController& formController(); |
| 445 Vector<String> formElementsState() const; | 451 Vector<String> formElementsState() const; |
| 446 void setStateForNewFormElements(const Vector<String>&); | 452 void setStateForNewFormElements(const Vector<String>&); |
| 447 | 453 |
| 448 FrameView* view() const; // can be null | 454 FrameView* view() const; // can be null |
| 449 LocalFrame* frame() const { return m_frame; } // can be null | 455 LocalFrame* frame() const { return m_frame; } // can be null |
| 450 FrameHost* frameHost() const; // can be null | 456 FrameHost* frameHost() const; // can be null |
| 451 Page* page() const; // can be null | 457 Page* page() const; // can be null |
| (...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1069 private: | 1075 private: |
| 1070 friend class Node; | 1076 friend class Node; |
| 1071 friend class IgnoreDestructiveWriteCountIncrementer; | 1077 friend class IgnoreDestructiveWriteCountIncrementer; |
| 1072 | 1078 |
| 1073 ScriptedAnimationController& ensureScriptedAnimationController(); | 1079 ScriptedAnimationController& ensureScriptedAnimationController(); |
| 1074 virtual SecurityContext& securityContext() OVERRIDE FINAL { return *this; } | 1080 virtual SecurityContext& securityContext() OVERRIDE FINAL { return *this; } |
| 1075 virtual EventQueue* eventQueue() const OVERRIDE FINAL; | 1081 virtual EventQueue* eventQueue() const OVERRIDE FINAL; |
| 1076 | 1082 |
| 1077 void inheritHtmlAndBodyElementStyles(StyleRecalcChange); | 1083 void inheritHtmlAndBodyElementStyles(StyleRecalcChange); |
| 1078 | 1084 |
| 1085 bool dirtyElementsForLayerUpdate(); | |
| 1079 void updateDistributionIfNeeded(); | 1086 void updateDistributionIfNeeded(); |
| 1080 void updateUseShadowTreesIfNeeded(); | 1087 void updateUseShadowTreesIfNeeded(); |
| 1081 | 1088 |
| 1082 void updateStyle(StyleRecalcChange); | 1089 void updateStyle(StyleRecalcChange); |
| 1083 | 1090 |
| 1084 void detachParser(); | 1091 void detachParser(); |
| 1085 | 1092 |
| 1086 virtual bool isDocument() const OVERRIDE FINAL { return true; } | 1093 virtual bool isDocument() const OVERRIDE FINAL { return true; } |
| 1087 | 1094 |
| 1088 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang e = 0, Node* afterChange = 0, int childCountDelta = 0) OVERRIDE; | 1095 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang e = 0, Node* afterChange = 0, int childCountDelta = 0) OVERRIDE; |
| (...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1341 RefPtr<DocumentTimeline> m_transitionTimeline; | 1348 RefPtr<DocumentTimeline> m_transitionTimeline; |
| 1342 CSSPendingAnimations m_cssPendingAnimations; | 1349 CSSPendingAnimations m_cssPendingAnimations; |
| 1343 | 1350 |
| 1344 RefPtr<Document> m_templateDocument; | 1351 RefPtr<Document> m_templateDocument; |
| 1345 Document* m_templateDocumentHost; // Manually managed weakref (backpointer f rom m_templateDocument). | 1352 Document* m_templateDocumentHost; // Manually managed weakref (backpointer f rom m_templateDocument). |
| 1346 | 1353 |
| 1347 Timer<Document> m_didAssociateFormControlsTimer; | 1354 Timer<Document> m_didAssociateFormControlsTimer; |
| 1348 HashSet<RefPtr<Element> > m_associatedFormControls; | 1355 HashSet<RefPtr<Element> > m_associatedFormControls; |
| 1349 | 1356 |
| 1350 HashSet<SVGUseElement*> m_useElementsNeedingUpdate; | 1357 HashSet<SVGUseElement*> m_useElementsNeedingUpdate; |
| 1358 HashSet<Element*> m_layerUpdateElements; | |
| 1351 | 1359 |
| 1352 bool m_hasViewportUnits; | 1360 bool m_hasViewportUnits; |
| 1353 | 1361 |
| 1354 HashSet<DocumentVisibilityObserver*> m_visibilityObservers; | 1362 HashSet<DocumentVisibilityObserver*> m_visibilityObservers; |
| 1355 }; | 1363 }; |
| 1356 | 1364 |
| 1357 inline void Document::notifyRemovePendingSheetIfNeeded() | 1365 inline void Document::notifyRemovePendingSheetIfNeeded() |
| 1358 { | 1366 { |
| 1359 if (m_needsNotifyRemoveAllPendingStylesheet) | 1367 if (m_needsNotifyRemoveAllPendingStylesheet) |
| 1360 didRemoveAllPendingStylesheet(); | 1368 didRemoveAllPendingStylesheet(); |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1399 inline bool Node::isDocumentNode() const | 1407 inline bool Node::isDocumentNode() const |
| 1400 { | 1408 { |
| 1401 return this == document(); | 1409 return this == document(); |
| 1402 } | 1410 } |
| 1403 | 1411 |
| 1404 Node* eventTargetNodeForDocument(Document*); | 1412 Node* eventTargetNodeForDocument(Document*); |
| 1405 | 1413 |
| 1406 } // namespace WebCore | 1414 } // namespace WebCore |
| 1407 | 1415 |
| 1408 #endif // Document_h | 1416 #endif // Document_h |
| OLD | NEW |