| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010, Google Inc. All rights reserved. | 2 * Copyright (C) 2010, Google 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 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 497 | 497 |
| 498 if (rule->type() == CSSRule::KEYFRAMES_RULE) | 498 if (rule->type() == CSSRule::KEYFRAMES_RULE) |
| 499 return toCSSKeyframesRule(rule)->cssRules(); | 499 return toCSSKeyframesRule(rule)->cssRules(); |
| 500 | 500 |
| 501 if (rule->type() == CSSRule::SUPPORTS_RULE) | 501 if (rule->type() == CSSRule::SUPPORTS_RULE) |
| 502 return toCSSSupportsRule(rule)->cssRules(); | 502 return toCSSSupportsRule(rule)->cssRules(); |
| 503 | 503 |
| 504 return nullptr; | 504 return nullptr; |
| 505 } | 505 } |
| 506 | 506 |
| 507 PassRefPtr<InspectorStyle> InspectorStyle::create(const InspectorCSSId& styleId,
PassRefPtrWillBeRawPtr<CSSStyleDeclaration> style, InspectorStyleSheetBase* par
entStyleSheet) | 507 PassRefPtr<InspectorStyle> InspectorStyle::create(const InspectorCSSId& styleId,
PassRefPtr<CSSStyleDeclaration> style, InspectorStyleSheetBase* parentStyleShee
t) |
| 508 { | 508 { |
| 509 return adoptRef(new InspectorStyle(styleId, style, parentStyleSheet)); | 509 return adoptRef(new InspectorStyle(styleId, style, parentStyleSheet)); |
| 510 } | 510 } |
| 511 | 511 |
| 512 InspectorStyle::InspectorStyle(const InspectorCSSId& styleId, PassRefPtrWillBeRa
wPtr<CSSStyleDeclaration> style, InspectorStyleSheetBase* parentStyleSheet) | 512 InspectorStyle::InspectorStyle(const InspectorCSSId& styleId, PassRefPtr<CSSStyl
eDeclaration> style, InspectorStyleSheetBase* parentStyleSheet) |
| 513 : m_styleId(styleId) | 513 : m_styleId(styleId) |
| 514 , m_style(style) | 514 , m_style(style) |
| 515 , m_parentStyleSheet(parentStyleSheet) | 515 , m_parentStyleSheet(parentStyleSheet) |
| 516 , m_formatAcquired(false) | 516 , m_formatAcquired(false) |
| 517 { | 517 { |
| 518 ASSERT(m_style); | 518 ASSERT(m_style); |
| 519 } | 519 } |
| 520 | 520 |
| 521 PassRefPtr<TypeBuilder::CSS::CSSStyle> InspectorStyle::buildObjectForStyle() con
st | 521 PassRefPtr<TypeBuilder::CSS::CSSStyle> InspectorStyle::buildObjectForStyle() con
st |
| 522 { | 522 { |
| (...skipping 1067 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1590 | 1590 |
| 1591 RefPtrWillBeRawPtr<MutableStylePropertySet> tempDeclaration = MutableStylePr
opertySet::create(); | 1591 RefPtrWillBeRawPtr<MutableStylePropertySet> tempDeclaration = MutableStylePr
opertySet::create(); |
| 1592 RuleSourceDataList ruleSourceDataResult; | 1592 RuleSourceDataList ruleSourceDataResult; |
| 1593 StyleSheetHandler handler(m_styleText, &m_element->document(), m_element->do
cument().elementSheet().contents(), &ruleSourceDataResult); | 1593 StyleSheetHandler handler(m_styleText, &m_element->document(), m_element->do
cument().elementSheet().contents(), &ruleSourceDataResult); |
| 1594 createCSSParser(&m_element->document())->parseDeclaration(tempDeclaration.ge
t(), m_styleText, &handler, m_element->document().elementSheet().contents()); | 1594 createCSSParser(&m_element->document())->parseDeclaration(tempDeclaration.ge
t(), m_styleText, &handler, m_element->document().elementSheet().contents()); |
| 1595 return ruleSourceDataResult.first().release(); | 1595 return ruleSourceDataResult.first().release(); |
| 1596 } | 1596 } |
| 1597 | 1597 |
| 1598 } // namespace WebCore | 1598 } // namespace WebCore |
| 1599 | 1599 |
| OLD | NEW |