| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) | 3 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) |
| 4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) | 4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) |
| 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc.
All rights reserved. | 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc.
All rights reserved. |
| 6 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> | 6 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> |
| 7 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> | 7 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> |
| 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
| 9 * Copyright (c) 2011, Code Aurora Forum. All rights reserved. | 9 * Copyright (c) 2011, Code Aurora Forum. All rights reserved. |
| 10 * Copyright (C) Research In Motion Limited 2011. All rights reserved. | 10 * Copyright (C) Research In Motion Limited 2011. All rights reserved. |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 if (const StylePropertySet* inlineStyle = element.inlineStyle()) { | 165 if (const StylePropertySet* inlineStyle = element.inlineStyle()) { |
| 166 // Inline style is immutable as long as there is no CSSOM wrapper. | 166 // Inline style is immutable as long as there is no CSSOM wrapper. |
| 167 bool isInlineStyleCacheable = !inlineStyle->isMutable(); | 167 bool isInlineStyleCacheable = !inlineStyle->isMutable(); |
| 168 collector.addElementStyleProperties(inlineStyle, isInlineStyleCacheable)
; | 168 collector.addElementStyleProperties(inlineStyle, isInlineStyleCacheable)
; |
| 169 } | 169 } |
| 170 } | 170 } |
| 171 | 171 |
| 172 PassRefPtr<RenderStyle> StyleResolver::styleForDocument(Document& document) | 172 PassRefPtr<RenderStyle> StyleResolver::styleForDocument(Document& document) |
| 173 { | 173 { |
| 174 RefPtr<RenderStyle> documentStyle = RenderStyle::create(); | 174 RefPtr<RenderStyle> documentStyle = RenderStyle::create(); |
| 175 documentStyle->setDisplay(FLEX); | |
| 176 documentStyle->setRTLOrdering(LogicalOrder); | 175 documentStyle->setRTLOrdering(LogicalOrder); |
| 177 documentStyle->setLocale(document.contentLanguage()); | 176 documentStyle->setLocale(document.contentLanguage()); |
| 178 documentStyle->setZIndex(0); | 177 documentStyle->setZIndex(0); |
| 179 documentStyle->setUserModify(READ_ONLY); | 178 documentStyle->setUserModify(READ_ONLY); |
| 180 | 179 |
| 181 document.setupFontBuilder(documentStyle.get()); | 180 document.setupFontBuilder(documentStyle.get()); |
| 182 | 181 |
| 183 return documentStyle.release(); | 182 return documentStyle.release(); |
| 184 } | 183 } |
| 185 | 184 |
| (...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 593 break; | 592 break; |
| 594 default: | 593 default: |
| 595 break; | 594 break; |
| 596 } | 595 } |
| 597 StyleBuilder::applyProperty(properties[i].property, state, propertie
s[i].value); | 596 StyleBuilder::applyProperty(properties[i].property, state, propertie
s[i].value); |
| 598 } | 597 } |
| 599 } | 598 } |
| 600 } | 599 } |
| 601 | 600 |
| 602 } // namespace blink | 601 } // namespace blink |
| OLD | NEW |