| 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 fullscreenStyle->setJustifyContentPosition(ContentPositionCenter); | 107 fullscreenStyle->setJustifyContentPosition(ContentPositionCenter); |
| 108 // TODO (lajava): Since the FullScrenn layout object is anonymous, its Default | 108 // TODO (lajava): Since the FullScrenn layout object is anonymous, its Default |
| 109 // Alignment (align-items) value can't be used to resolve its children Self | 109 // Alignment (align-items) value can't be used to resolve its children Self |
| 110 // Alignment 'auto' values. | 110 // Alignment 'auto' values. |
| 111 fullscreenStyle->setAlignItemsPosition(ItemPositionCenter); | 111 fullscreenStyle->setAlignItemsPosition(ItemPositionCenter); |
| 112 fullscreenStyle->setFlexDirection(FlowColumn); | 112 fullscreenStyle->setFlexDirection(FlowColumn); |
| 113 | 113 |
| 114 fullscreenStyle->setPosition(EPosition::kFixed); | 114 fullscreenStyle->setPosition(EPosition::kFixed); |
| 115 fullscreenStyle->setLeft(Length(0, blink::Fixed)); | 115 fullscreenStyle->setLeft(Length(0, blink::Fixed)); |
| 116 fullscreenStyle->setTop(Length(0, blink::Fixed)); | 116 fullscreenStyle->setTop(Length(0, blink::Fixed)); |
| 117 IntSize viewportSize = document().page()->frameHost().visualViewport().size(); | 117 IntSize viewportSize = document().page()->visualViewport().size(); |
| 118 fullscreenStyle->setWidth(Length(viewportSize.width(), blink::Fixed)); | 118 fullscreenStyle->setWidth(Length(viewportSize.width(), blink::Fixed)); |
| 119 fullscreenStyle->setHeight(Length(viewportSize.height(), blink::Fixed)); | 119 fullscreenStyle->setHeight(Length(viewportSize.height(), blink::Fixed)); |
| 120 | 120 |
| 121 fullscreenStyle->setBackgroundColor(StyleColor(Color::black)); | 121 fullscreenStyle->setBackgroundColor(StyleColor(Color::black)); |
| 122 | 122 |
| 123 setStyleWithWritingModeOf(fullscreenStyle, parent); | 123 setStyleWithWritingModeOf(fullscreenStyle, parent); |
| 124 } | 124 } |
| 125 | 125 |
| 126 void LayoutFullScreen::updateStyle() { | 126 void LayoutFullScreen::updateStyle() { |
| 127 updateStyle(parent()); | 127 updateStyle(parent()); |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 parent()->setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation( | 218 parent()->setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation( |
| 219 LayoutInvalidationReason::Fullscreen); | 219 LayoutInvalidationReason::Fullscreen); |
| 220 } | 220 } |
| 221 } else { | 221 } else { |
| 222 m_placeholder->setStyle(std::move(style)); | 222 m_placeholder->setStyle(std::move(style)); |
| 223 m_placeholder->setStyleWithWritingModeOfParent(std::move(style)); | 223 m_placeholder->setStyleWithWritingModeOfParent(std::move(style)); |
| 224 } | 224 } |
| 225 } | 225 } |
| 226 | 226 |
| 227 } // namespace blink | 227 } // namespace blink |
| OLD | NEW |