| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009, 2010, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009, 2010, 2011 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 if (!layoutObject.style()->hasBackground()) | 144 if (!layoutObject.style()->hasBackground()) |
| 145 return true; | 145 return true; |
| 146 | 146 |
| 147 // Simple background that is contained within the contents rect. | 147 // Simple background that is contained within the contents rect. |
| 148 return contentsRect(layoutObject).contains(backgroundRect(layoutObject)); | 148 return contentsRect(layoutObject).contains(backgroundRect(layoutObject)); |
| 149 } | 149 } |
| 150 | 150 |
| 151 static WebLayer* platformLayerForPlugin(LayoutObject& layoutObject) { | 151 static WebLayer* platformLayerForPlugin(LayoutObject& layoutObject) { |
| 152 if (!layoutObject.isEmbeddedObject()) | 152 if (!layoutObject.isEmbeddedObject()) |
| 153 return nullptr; | 153 return nullptr; |
| 154 Widget* widget = toLayoutEmbeddedObject(layoutObject).widget(); | 154 FrameViewBase* frameViewBase = toLayoutEmbeddedObject(layoutObject).widget(); |
| 155 if (!widget || !widget->isPluginView()) | 155 if (!frameViewBase || !frameViewBase->isPluginView()) |
| 156 return nullptr; | 156 return nullptr; |
| 157 return toPluginView(widget)->platformLayer(); | 157 return toPluginView(frameViewBase)->platformLayer(); |
| 158 } | 158 } |
| 159 | 159 |
| 160 static inline bool isAcceleratedContents(LayoutObject& layoutObject) { | 160 static inline bool isAcceleratedContents(LayoutObject& layoutObject) { |
| 161 return isAcceleratedCanvas(layoutObject) || | 161 return isAcceleratedCanvas(layoutObject) || |
| 162 (layoutObject.isEmbeddedObject() && | 162 (layoutObject.isEmbeddedObject() && |
| 163 toLayoutEmbeddedObject(layoutObject) | 163 toLayoutEmbeddedObject(layoutObject) |
| 164 .requiresAcceleratedCompositing()) || | 164 .requiresAcceleratedCompositing()) || |
| 165 layoutObject.isVideo(); | 165 layoutObject.isVideo(); |
| 166 } | 166 } |
| 167 | 167 |
| (...skipping 3313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3481 } else if (graphicsLayer == m_decorationOutlineLayer.get()) { | 3481 } else if (graphicsLayer == m_decorationOutlineLayer.get()) { |
| 3482 name = "Decoration Layer"; | 3482 name = "Decoration Layer"; |
| 3483 } else { | 3483 } else { |
| 3484 ASSERT_NOT_REACHED(); | 3484 ASSERT_NOT_REACHED(); |
| 3485 } | 3485 } |
| 3486 | 3486 |
| 3487 return name; | 3487 return name; |
| 3488 } | 3488 } |
| 3489 | 3489 |
| 3490 } // namespace blink | 3490 } // namespace blink |
| OLD | NEW |