| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 2000 Simon Hausmann <hausmann@kde.org> | 3 * (C) 2000 Simon Hausmann <hausmann@kde.org> |
| 4 * (C) 2000 Stefan Schimanski (1Stein@gmx.de) | 4 * (C) 2000 Stefan Schimanski (1Stein@gmx.de) |
| 5 * Copyright (C) 2004, 2005, 2006, 2008, 2009, 2010 Apple Inc. | 5 * Copyright (C) 2004, 2005, 2006, 2008, 2009, 2010 Apple Inc. |
| 6 * All rights reserved. | 6 * All rights reserved. |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 | 113 |
| 114 LayoutPart::Paint(paint_info, paint_offset); | 114 LayoutPart::Paint(paint_info, paint_offset); |
| 115 } | 115 } |
| 116 | 116 |
| 117 void LayoutEmbeddedObject::PaintReplaced( | 117 void LayoutEmbeddedObject::PaintReplaced( |
| 118 const PaintInfo& paint_info, | 118 const PaintInfo& paint_info, |
| 119 const LayoutPoint& paint_offset) const { | 119 const LayoutPoint& paint_offset) const { |
| 120 EmbeddedObjectPainter(*this).PaintReplaced(paint_info, paint_offset); | 120 EmbeddedObjectPainter(*this).PaintReplaced(paint_info, paint_offset); |
| 121 } | 121 } |
| 122 | 122 |
| 123 PaintInvalidationReason LayoutEmbeddedObject::InvalidatePaintIfNeeded( | 123 PaintInvalidationReason LayoutEmbeddedObject::InvalidatePaint( |
| 124 const PaintInvalidatorContext& context) const { | 124 const PaintInvalidatorContext& context) const { |
| 125 return EmbeddedObjectPaintInvalidator(*this, context) | 125 return EmbeddedObjectPaintInvalidator(*this, context).InvalidatePaint(); |
| 126 .InvalidatePaintIfNeeded(); | |
| 127 } | 126 } |
| 128 | 127 |
| 129 void LayoutEmbeddedObject::UpdateLayout() { | 128 void LayoutEmbeddedObject::UpdateLayout() { |
| 130 DCHECK(NeedsLayout()); | 129 DCHECK(NeedsLayout()); |
| 131 LayoutAnalyzer::Scope analyzer(*this); | 130 LayoutAnalyzer::Scope analyzer(*this); |
| 132 | 131 |
| 133 UpdateLogicalWidth(); | 132 UpdateLogicalWidth(); |
| 134 UpdateLogicalHeight(); | 133 UpdateLogicalHeight(); |
| 135 | 134 |
| 136 overflow_.reset(); | 135 overflow_.reset(); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 155 return kCompositingReasonNone; | 154 return kCompositingReasonNone; |
| 156 } | 155 } |
| 157 | 156 |
| 158 LayoutReplaced* LayoutEmbeddedObject::EmbeddedReplacedContent() const { | 157 LayoutReplaced* LayoutEmbeddedObject::EmbeddedReplacedContent() const { |
| 159 if (FrameView* frame_view = ChildFrameView()) | 158 if (FrameView* frame_view = ChildFrameView()) |
| 160 return frame_view->EmbeddedReplacedContent(); | 159 return frame_view->EmbeddedReplacedContent(); |
| 161 return nullptr; | 160 return nullptr; |
| 162 } | 161 } |
| 163 | 162 |
| 164 } // namespace blink | 163 } // namespace blink |
| OLD | NEW |