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

Side by Side Diff: third_party/WebKit/Source/core/frame/FrameView.h

Issue 2657863004: Move scroll paint property nodes to be owned by the transform tree (Closed)
Patch Set: Created 3 years, 11 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) 1997 Martin Jones (mjones@kde.org) 2 Copyright (C) 1997 Martin Jones (mjones@kde.org)
3 (C) 1998 Waldo Bastian (bastian@kde.org) 3 (C) 1998 Waldo Bastian (bastian@kde.org)
4 (C) 1998, 1999 Torben Weis (weis@kde.org) 4 (C) 1998, 1999 Torben Weis (weis@kde.org)
5 (C) 1999 Lars Knoll (knoll@kde.org) 5 (C) 1999 Lars Knoll (knoll@kde.org)
6 (C) 1999 Antti Koivisto (koivisto@kde.org) 6 (C) 1999 Antti Koivisto (koivisto@kde.org)
7 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights 7 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights
8 reserved. 8 reserved.
9 9
10 This library is free software; you can redistribute it and/or 10 This library is free software; you can redistribute it and/or
(...skipping 696 matching lines...) Expand 10 before | Expand all | Expand 10 after
707 } 707 }
708 708
709 void setScrollTranslation( 709 void setScrollTranslation(
710 PassRefPtr<TransformPaintPropertyNode> scrollTranslation) { 710 PassRefPtr<TransformPaintPropertyNode> scrollTranslation) {
711 m_scrollTranslation = scrollTranslation; 711 m_scrollTranslation = scrollTranslation;
712 } 712 }
713 TransformPaintPropertyNode* scrollTranslation() const { 713 TransformPaintPropertyNode* scrollTranslation() const {
714 return m_scrollTranslation.get(); 714 return m_scrollTranslation.get();
715 } 715 }
716 716
717 void setScroll(PassRefPtr<ScrollPaintPropertyNode> scroll) {
718 m_scroll = scroll;
719 }
720 ScrollPaintPropertyNode* scroll() const { return m_scroll.get(); }
721
722 void setContentClip(PassRefPtr<ClipPaintPropertyNode> contentClip) { 717 void setContentClip(PassRefPtr<ClipPaintPropertyNode> contentClip) {
723 m_contentClip = contentClip; 718 m_contentClip = contentClip;
724 } 719 }
725 ClipPaintPropertyNode* contentClip() const { return m_contentClip.get(); } 720 ClipPaintPropertyNode* contentClip() const { return m_contentClip.get(); }
726 721
727 // The property tree state that should be used for painting contents. These 722 // The property tree state that should be used for painting contents. These
728 // properties are either created by this FrameView or are inherited from 723 // properties are either created by this FrameView or are inherited from
729 // an ancestor. 724 // an ancestor.
730 void setTotalPropertyTreeStateForContents( 725 void setTotalPropertyTreeStateForContents(
731 std::unique_ptr<PropertyTreeState> state) { 726 std::unique_ptr<PropertyTreeState> state) {
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
1145 1140
1146 // Paint properties for SPv2 Only. 1141 // Paint properties for SPv2 Only.
1147 // The hierarchy of transform subtree created by a FrameView. 1142 // The hierarchy of transform subtree created by a FrameView.
1148 // [ preTranslation ] The offset from Widget::frameRect. 1143 // [ preTranslation ] The offset from Widget::frameRect.
1149 // | Establishes viewport. 1144 // | Establishes viewport.
1150 // +---[ scrollTranslation ] Frame scrolling. 1145 // +---[ scrollTranslation ] Frame scrolling.
1151 // TODO(trchen): These will not be needed once settings->rootLayerScrolls() is 1146 // TODO(trchen): These will not be needed once settings->rootLayerScrolls() is
1152 // enabled. 1147 // enabled.
1153 RefPtr<TransformPaintPropertyNode> m_preTranslation; 1148 RefPtr<TransformPaintPropertyNode> m_preTranslation;
1154 RefPtr<TransformPaintPropertyNode> m_scrollTranslation; 1149 RefPtr<TransformPaintPropertyNode> m_scrollTranslation;
1155 RefPtr<ScrollPaintPropertyNode> m_scroll;
1156 // The content clip clips the document (= LayoutView) but not the scrollbars. 1150 // The content clip clips the document (= LayoutView) but not the scrollbars.
1157 // TODO(trchen): This will not be needed once settings->rootLayerScrolls() is 1151 // TODO(trchen): This will not be needed once settings->rootLayerScrolls() is
1158 // enabled. 1152 // enabled.
1159 RefPtr<ClipPaintPropertyNode> m_contentClip; 1153 RefPtr<ClipPaintPropertyNode> m_contentClip;
1160 // The property tree state that should be used for painting contents. These 1154 // The property tree state that should be used for painting contents. These
1161 // properties are either created by this FrameView or are inherited from 1155 // properties are either created by this FrameView or are inherited from
1162 // an ancestor. 1156 // an ancestor.
1163 std::unique_ptr<PropertyTreeState> m_totalPropertyTreeStateForContents; 1157 std::unique_ptr<PropertyTreeState> m_totalPropertyTreeStateForContents;
1164 // Whether the paint properties need to be updated. For more details, see 1158 // Whether the paint properties need to be updated. For more details, see
1165 // FrameView::needsPaintPropertyUpdate(). 1159 // FrameView::needsPaintPropertyUpdate().
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
1242 widget.isFrameView()); 1236 widget.isFrameView());
1243 DEFINE_TYPE_CASTS(FrameView, 1237 DEFINE_TYPE_CASTS(FrameView,
1244 ScrollableArea, 1238 ScrollableArea,
1245 scrollableArea, 1239 scrollableArea,
1246 scrollableArea->isFrameView(), 1240 scrollableArea->isFrameView(),
1247 scrollableArea.isFrameView()); 1241 scrollableArea.isFrameView());
1248 1242
1249 } // namespace blink 1243 } // namespace blink
1250 1244
1251 #endif // FrameView_h 1245 #endif // FrameView_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698