| 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 void LayoutFullScreen::updateStyle(LayoutObject* parent) { | 96 void LayoutFullScreen::updateStyle(LayoutObject* parent) { |
| 97 RefPtr<ComputedStyle> fullscreenStyle = ComputedStyle::create(); | 97 RefPtr<ComputedStyle> fullscreenStyle = ComputedStyle::create(); |
| 98 | 98 |
| 99 // Create a stacking context: | 99 // Create a stacking context: |
| 100 fullscreenStyle->setZIndex(INT_MAX); | 100 fullscreenStyle->setZIndex(INT_MAX); |
| 101 fullscreenStyle->setIsStackingContext(true); | 101 fullscreenStyle->setIsStackingContext(true); |
| 102 | 102 |
| 103 fullscreenStyle->setFontDescription(FontDescription()); | 103 fullscreenStyle->setFontDescription(FontDescription()); |
| 104 fullscreenStyle->font().update(nullptr); | 104 fullscreenStyle->font().update(nullptr); |
| 105 | 105 |
| 106 fullscreenStyle->setDisplay(EDisplay::Flex); | 106 fullscreenStyle->setDisplay(EDisplay::kFlex); |
| 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)); |
| (...skipping 101 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 |