| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "config.h" | 5 #include "config.h" |
| 6 #include "platform/graphics/paint/FixedPositionContainerDisplayItem.h" | 6 #include "platform/graphics/paint/FixedPositionContainerDisplayItem.h" |
| 7 | 7 |
| 8 #include "platform/graphics/GraphicsContext.h" | 8 #include "platform/graphics/GraphicsContext.h" |
| 9 #include "platform/graphics/paint/DisplayItems.h" |
| 9 #include "platform/transforms/AffineTransform.h" | 10 #include "platform/transforms/AffineTransform.h" |
| 10 #include "public/platform/WebDisplayItemList.h" | 11 #include "public/platform/WebDisplayItemList.h" |
| 11 | 12 |
| 12 namespace blink { | 13 namespace blink { |
| 13 | 14 |
| 14 void BeginFixedPositionContainerDisplayItem::appendToWebDisplayItemList(WebDispl
ayItemList* list) const | 15 void BeginFixedPositionContainerDisplayItem::appendToWebDisplayItemList(WebDispl
ayItemList* list) const |
| 15 { | 16 { |
| 16 // TODO(trchen): Should implement the compositor counterpart and update tran
sform tree algorithm. | 17 // TODO(trchen): Should implement the compositor counterpart and update tran
sform tree algorithm. |
| 17 } | 18 } |
| 18 | 19 |
| 20 void BeginFixedPositionContainerDisplayItem::appendByMoving(DisplayItems& destin
ation) |
| 21 { |
| 22 destination.emplaceBack<BeginFixedPositionContainerDisplayItem>( |
| 23 DisplayItemClientWrapperHelper(*this)); |
| 24 } |
| 25 |
| 19 void EndFixedPositionContainerDisplayItem::appendToWebDisplayItemList(WebDisplay
ItemList* list) const | 26 void EndFixedPositionContainerDisplayItem::appendToWebDisplayItemList(WebDisplay
ItemList* list) const |
| 20 { | 27 { |
| 21 // TODO(trchen): Should implement the compositor counterpart and update tran
sform tree algorithm. | 28 // TODO(trchen): Should implement the compositor counterpart and update tran
sform tree algorithm. |
| 22 } | 29 } |
| 23 | 30 |
| 31 void EndFixedPositionContainerDisplayItem::appendByMoving(DisplayItems& destinat
ion) |
| 32 { |
| 33 destination.emplaceBack<EndFixedPositionContainerDisplayItem>( |
| 34 DisplayItemClientWrapperHelper(*this)); |
| 35 } |
| 36 |
| 24 } // namespace blink | 37 } // namespace blink |
| OLD | NEW |