| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2010 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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 | 193 |
| 194 void LayoutFullScreen::createPlaceholder(PassRefPtr<ComputedStyle> style, const
LayoutRect& frameRect) | 194 void LayoutFullScreen::createPlaceholder(PassRefPtr<ComputedStyle> style, const
LayoutRect& frameRect) |
| 195 { | 195 { |
| 196 if (style->width().isAuto()) | 196 if (style->width().isAuto()) |
| 197 style->setWidth(Length(frameRect.width(), Fixed)); | 197 style->setWidth(Length(frameRect.width(), Fixed)); |
| 198 if (style->height().isAuto()) | 198 if (style->height().isAuto()) |
| 199 style->setHeight(Length(frameRect.height(), Fixed)); | 199 style->setHeight(Length(frameRect.height(), Fixed)); |
| 200 | 200 |
| 201 if (!m_placeholder) { | 201 if (!m_placeholder) { |
| 202 m_placeholder = new LayoutFullScreenPlaceholder(this); | 202 m_placeholder = new LayoutFullScreenPlaceholder(this); |
| 203 m_placeholder->setStyleWithWritingModeOfParent(style); | 203 m_placeholder->setStyleWithWritingModeOfParent(std::move(style)); |
| 204 if (parent()) { | 204 if (parent()) { |
| 205 parent()->addChildWithWritingModeOfParent(m_placeholder, this); | 205 parent()->addChildWithWritingModeOfParent(m_placeholder, this); |
| 206 parent()->setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation(
LayoutInvalidationReason::Fullscreen); | 206 parent()->setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation(
LayoutInvalidationReason::Fullscreen); |
| 207 } | 207 } |
| 208 } else { | 208 } else { |
| 209 m_placeholder->setStyle(style); | 209 m_placeholder->setStyle(std::move(style)); |
| 210 m_placeholder->setStyleWithWritingModeOfParent(style); | 210 m_placeholder->setStyleWithWritingModeOfParent(std::move(style)); |
| 211 } | 211 } |
| 212 } | 212 } |
| OLD | NEW |