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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 { | 92 { |
93 RefPtr<RenderStyle> fullscreenStyle = RenderStyle::createDefaultStyle(); | 93 RefPtr<RenderStyle> fullscreenStyle = RenderStyle::createDefaultStyle(); |
94 | 94 |
95 // Create a stacking context: | 95 // Create a stacking context: |
96 fullscreenStyle->setZIndex(INT_MAX); | 96 fullscreenStyle->setZIndex(INT_MAX); |
97 | 97 |
98 fullscreenStyle->setFontDescription(FontDescription()); | 98 fullscreenStyle->setFontDescription(FontDescription()); |
99 fullscreenStyle->font().update(nullptr); | 99 fullscreenStyle->font().update(nullptr); |
100 | 100 |
101 fullscreenStyle->setDisplay(FLEX); | 101 fullscreenStyle->setDisplay(FLEX); |
102 fullscreenStyle->setJustifyContent(JustifyCenter); | 102 fullscreenStyle->setJustifyContent(ContentPositionCenter); |
103 fullscreenStyle->setAlignItems(ItemPositionCenter); | 103 fullscreenStyle->setAlignItems(ItemPositionCenter); |
104 fullscreenStyle->setFlexDirection(FlowColumn); | 104 fullscreenStyle->setFlexDirection(FlowColumn); |
105 | 105 |
106 fullscreenStyle->setPosition(FixedPosition); | 106 fullscreenStyle->setPosition(FixedPosition); |
107 fullscreenStyle->setWidth(Length(100.0, Percent)); | 107 fullscreenStyle->setWidth(Length(100.0, Percent)); |
108 fullscreenStyle->setHeight(Length(100.0, Percent)); | 108 fullscreenStyle->setHeight(Length(100.0, Percent)); |
109 fullscreenStyle->setLeft(Length(0, blink::Fixed)); | 109 fullscreenStyle->setLeft(Length(0, blink::Fixed)); |
110 fullscreenStyle->setTop(Length(0, blink::Fixed)); | 110 fullscreenStyle->setTop(Length(0, blink::Fixed)); |
111 | 111 |
112 fullscreenStyle->setBackgroundColor(StyleColor(Color::black)); | 112 fullscreenStyle->setBackgroundColor(StyleColor(Color::black)); |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 if (!m_placeholder) { | 193 if (!m_placeholder) { |
194 m_placeholder = new RenderFullScreenPlaceholder(this); | 194 m_placeholder = new RenderFullScreenPlaceholder(this); |
195 m_placeholder->setStyle(style); | 195 m_placeholder->setStyle(style); |
196 if (parent()) { | 196 if (parent()) { |
197 parent()->addChild(m_placeholder, this); | 197 parent()->addChild(m_placeholder, this); |
198 parent()->setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation(
); | 198 parent()->setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation(
); |
199 } | 199 } |
200 } else | 200 } else |
201 m_placeholder->setStyle(style); | 201 m_placeholder->setStyle(style); |
202 } | 202 } |
OLD | NEW |