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 1224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1235 if (!ownerNode || ownerNode->nodeType() != Node::ELEMENT_NODE) | 1235 if (!ownerNode || ownerNode->nodeType() != Node::ELEMENT_NODE) |
1236 return false; | 1236 return false; |
1237 Element* ownerElement = static_cast<Element*>(ownerNode); | 1237 Element* ownerElement = static_cast<Element*>(ownerNode); |
1238 | 1238 |
1239 if (!ownerElement->hasTagName(HTMLNames::styleTag) | 1239 if (!ownerElement->hasTagName(HTMLNames::styleTag) |
1240 #if ENABLE(SVG) | 1240 #if ENABLE(SVG) |
1241 && !ownerElement->hasTagName(SVGNames::styleTag) | 1241 && !ownerElement->hasTagName(SVGNames::styleTag) |
1242 #endif | 1242 #endif |
1243 ) | 1243 ) |
1244 return false; | 1244 return false; |
1245 *result = ownerElement->innerText(); | 1245 *result = ownerElement->textContent(); |
1246 return true; | 1246 return true; |
1247 } | 1247 } |
1248 | 1248 |
1249 PassRefPtr<TypeBuilder::Array<TypeBuilder::CSS::CSSRule> > InspectorStyleSheet::
buildArrayForRuleList(CSSRuleList* ruleList) | 1249 PassRefPtr<TypeBuilder::Array<TypeBuilder::CSS::CSSRule> > InspectorStyleSheet::
buildArrayForRuleList(CSSRuleList* ruleList) |
1250 { | 1250 { |
1251 RefPtr<TypeBuilder::Array<TypeBuilder::CSS::CSSRule> > result = TypeBuilder:
:Array<TypeBuilder::CSS::CSSRule>::create(); | 1251 RefPtr<TypeBuilder::Array<TypeBuilder::CSS::CSSRule> > result = TypeBuilder:
:Array<TypeBuilder::CSS::CSSRule>::create(); |
1252 if (!ruleList) | 1252 if (!ruleList) |
1253 return result.release(); | 1253 return result.release(); |
1254 | 1254 |
1255 RefPtr<CSSRuleList> refRuleList = ruleList; | 1255 RefPtr<CSSRuleList> refRuleList = ruleList; |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1385 | 1385 |
1386 RefPtr<StylePropertySet> tempDeclaration = StylePropertySet::create(); | 1386 RefPtr<StylePropertySet> tempDeclaration = StylePropertySet::create(); |
1387 CSSParser p(m_element->document()); | 1387 CSSParser p(m_element->document()); |
1388 p.parseDeclaration(tempDeclaration.get(), m_styleText, result, m_element->do
cument()->elementSheet()->contents()); | 1388 p.parseDeclaration(tempDeclaration.get(), m_styleText, result, m_element->do
cument()->elementSheet()->contents()); |
1389 return true; | 1389 return true; |
1390 } | 1390 } |
1391 | 1391 |
1392 } // namespace WebCore | 1392 } // namespace WebCore |
1393 | 1393 |
1394 #endif // ENABLE(INSPECTOR) | 1394 #endif // ENABLE(INSPECTOR) |
OLD | NEW |