Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(315)

Side by Side Diff: Source/core/inspector/InspectorStyleSheet.cpp

Issue 16745003: DevTools: Move CSS.CSSMedia construction into InspectorCSSAgent (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Get rid of the ISS->ICSSAgent dependency Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/inspector/InspectorStyleSheet.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 TextPosition end = ContentSearchUtils::textPositionFromOffset(range.end, *li neEndings); 446 TextPosition end = ContentSearchUtils::textPositionFromOffset(range.end, *li neEndings);
447 447
448 RefPtr<TypeBuilder::CSS::SourceRange> result = TypeBuilder::CSS::SourceRange ::create() 448 RefPtr<TypeBuilder::CSS::SourceRange> result = TypeBuilder::CSS::SourceRange ::create()
449 .setStartLine(start.m_line.zeroBasedInt()) 449 .setStartLine(start.m_line.zeroBasedInt())
450 .setStartColumn(start.m_column.zeroBasedInt()) 450 .setStartColumn(start.m_column.zeroBasedInt())
451 .setEndLine(end.m_line.zeroBasedInt()) 451 .setEndLine(end.m_line.zeroBasedInt())
452 .setEndColumn(end.m_column.zeroBasedInt()); 452 .setEndColumn(end.m_column.zeroBasedInt());
453 return result.release(); 453 return result.release();
454 } 454 }
455 455
456 static PassRefPtr<TypeBuilder::CSS::CSSMedia> buildMediaObject(const MediaList* media, MediaListSource mediaListSource, const String& sourceURL)
457 {
458 // Make certain compilers happy by initializing |source| up-front.
459 TypeBuilder::CSS::CSSMedia::Source::Enum source = TypeBuilder::CSS::CSSMedia ::Source::InlineSheet;
460 switch (mediaListSource) {
461 case MediaListSourceMediaRule:
462 source = TypeBuilder::CSS::CSSMedia::Source::MediaRule;
463 break;
464 case MediaListSourceImportRule:
465 source = TypeBuilder::CSS::CSSMedia::Source::ImportRule;
466 break;
467 case MediaListSourceLinkedSheet:
468 source = TypeBuilder::CSS::CSSMedia::Source::LinkedSheet;
469 break;
470 case MediaListSourceInlineSheet:
471 source = TypeBuilder::CSS::CSSMedia::Source::InlineSheet;
472 break;
473 }
474
475 RefPtr<TypeBuilder::CSS::CSSMedia> mediaObject = TypeBuilder::CSS::CSSMedia: :create()
476 .setText(media->mediaText())
477 .setSource(source);
478
479 if (!sourceURL.isEmpty()) {
480 mediaObject->setSourceURL(sourceURL);
481 mediaObject->setSourceLine(media->queries()->lastLine());
482 }
483 return mediaObject.release();
484 }
485
486 static PassRefPtr<CSSRuleList> asCSSRuleList(CSSStyleSheet* styleSheet) 456 static PassRefPtr<CSSRuleList> asCSSRuleList(CSSStyleSheet* styleSheet)
487 { 457 {
488 if (!styleSheet) 458 if (!styleSheet)
489 return 0; 459 return 0;
490 460
491 RefPtr<StaticCSSRuleList> list = StaticCSSRuleList::create(); 461 RefPtr<StaticCSSRuleList> list = StaticCSSRuleList::create();
492 Vector<RefPtr<CSSRule> >& listRules = list->rules(); 462 Vector<RefPtr<CSSRule> >& listRules = list->rules();
493 for (unsigned i = 0, size = styleSheet->length(); i < size; ++i) { 463 for (unsigned i = 0, size = styleSheet->length(); i < size; ++i) {
494 CSSRule* item = styleSheet->item(i); 464 CSSRule* item = styleSheet->item(i);
495 if (item->type() == CSSRule::CHARSET_RULE) 465 if (item->type() == CSSRule::CHARSET_RULE)
(...skipping 16 matching lines...) Expand all
512 482
513 if (rule->type() == CSSRule::HOST_RULE) 483 if (rule->type() == CSSRule::HOST_RULE)
514 return static_cast<CSSHostRule*>(rule)->cssRules(); 484 return static_cast<CSSHostRule*>(rule)->cssRules();
515 485
516 if (rule->type() == CSSRule::SUPPORTS_RULE) 486 if (rule->type() == CSSRule::SUPPORTS_RULE)
517 return static_cast<CSSSupportsRule*>(rule)->cssRules(); 487 return static_cast<CSSSupportsRule*>(rule)->cssRules();
518 488
519 return 0; 489 return 0;
520 } 490 }
521 491
522 static void fillMediaListChain(CSSRule* rule, Array<TypeBuilder::CSS::CSSMedia>* mediaArray)
523 {
524 MediaList* mediaList;
525 CSSRule* parentRule = rule;
526 String sourceURL;
527 while (parentRule) {
528 CSSStyleSheet* parentStyleSheet = 0;
529 bool isMediaRule = true;
530 if (parentRule->type() == CSSRule::MEDIA_RULE) {
531 CSSMediaRule* mediaRule = static_cast<CSSMediaRule*>(parentRule);
532 mediaList = mediaRule->media();
533 parentStyleSheet = mediaRule->parentStyleSheet();
534 } else if (parentRule->type() == CSSRule::IMPORT_RULE) {
535 CSSImportRule* importRule = static_cast<CSSImportRule*>(parentRule);
536 mediaList = importRule->media();
537 parentStyleSheet = importRule->parentStyleSheet();
538 isMediaRule = false;
539 } else
540 mediaList = 0;
541
542 if (parentStyleSheet) {
543 sourceURL = parentStyleSheet->contents()->baseURL();
544 if (sourceURL.isEmpty())
545 sourceURL = InspectorDOMAgent::documentURLString(parentStyleShee t->ownerDocument());
546 } else
547 sourceURL = "";
548
549 if (mediaList && mediaList->length())
550 mediaArray->addItem(buildMediaObject(mediaList, isMediaRule ? MediaL istSourceMediaRule : MediaListSourceImportRule, sourceURL));
551
552 if (parentRule->parentRule())
553 parentRule = parentRule->parentRule();
554 else {
555 CSSStyleSheet* styleSheet = parentRule->parentStyleSheet();
556 while (styleSheet) {
557 mediaList = styleSheet->media();
558 if (mediaList && mediaList->length()) {
559 Document* doc = styleSheet->ownerDocument();
560 if (doc)
561 sourceURL = doc->url();
562 else if (!styleSheet->contents()->baseURL().isEmpty())
563 sourceURL = styleSheet->contents()->baseURL();
564 else
565 sourceURL = "";
566 mediaArray->addItem(buildMediaObject(mediaList, styleSheet-> ownerNode() ? MediaListSourceLinkedSheet : MediaListSourceInlineSheet, sourceURL ));
567 }
568 parentRule = styleSheet->ownerRule();
569 if (parentRule)
570 break;
571 styleSheet = styleSheet->parentStyleSheet();
572 }
573 }
574 }
575 }
576
577 PassRefPtr<InspectorStyle> InspectorStyle::create(const InspectorCSSId& styleId, PassRefPtr<CSSStyleDeclaration> style, InspectorStyleSheet* parentStyleSheet) 492 PassRefPtr<InspectorStyle> InspectorStyle::create(const InspectorCSSId& styleId, PassRefPtr<CSSStyleDeclaration> style, InspectorStyleSheet* parentStyleSheet)
578 { 493 {
579 return adoptRef(new InspectorStyle(styleId, style, parentStyleSheet)); 494 return adoptRef(new InspectorStyle(styleId, style, parentStyleSheet));
580 } 495 }
581 496
582 InspectorStyle::InspectorStyle(const InspectorCSSId& styleId, PassRefPtr<CSSStyl eDeclaration> style, InspectorStyleSheet* parentStyleSheet) 497 InspectorStyle::InspectorStyle(const InspectorCSSId& styleId, PassRefPtr<CSSStyl eDeclaration> style, InspectorStyleSheet* parentStyleSheet)
583 : m_styleId(styleId) 498 : m_styleId(styleId)
584 , m_style(style) 499 , m_style(style)
585 , m_parentStyleSheet(parentStyleSheet) 500 , m_parentStyleSheet(parentStyleSheet)
586 , m_formatAcquired(false) 501 , m_formatAcquired(false)
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after
1031 } 946 }
1032 947
1033 // static 948 // static
1034 String InspectorStyleSheet::styleSheetURL(CSSStyleSheet* pageStyleSheet) 949 String InspectorStyleSheet::styleSheetURL(CSSStyleSheet* pageStyleSheet)
1035 { 950 {
1036 if (pageStyleSheet && !pageStyleSheet->contents()->baseURL().isEmpty()) 951 if (pageStyleSheet && !pageStyleSheet->contents()->baseURL().isEmpty())
1037 return pageStyleSheet->contents()->baseURL().string(); 952 return pageStyleSheet->contents()->baseURL().string();
1038 return emptyString(); 953 return emptyString();
1039 } 954 }
1040 955
956 // static
957 void InspectorStyleSheet::collectFlatRules(PassRefPtr<CSSRuleList> ruleList, CSS StyleRuleVector* result)
958 {
959 if (!ruleList)
960 return;
961
962 for (unsigned i = 0, size = ruleList->length(); i < size; ++i) {
963 CSSRule* rule = ruleList->item(i);
964 CSSStyleRule* styleRule = InspectorCSSAgent::asCSSStyleRule(rule);
965 if (styleRule) {
966 result->append(styleRule);
967 } else {
968 RefPtr<CSSRuleList> childRuleList = asCSSRuleList(rule);
969 if (childRuleList)
970 collectFlatRules(childRuleList, result);
971 }
972 }
973 }
974
1041 InspectorStyleSheet::InspectorStyleSheet(InspectorPageAgent* pageAgent, const St ring& id, PassRefPtr<CSSStyleSheet> pageStyleSheet, TypeBuilder::CSS::StyleSheet Origin::Enum origin, const String& documentURL, Listener* listener) 975 InspectorStyleSheet::InspectorStyleSheet(InspectorPageAgent* pageAgent, const St ring& id, PassRefPtr<CSSStyleSheet> pageStyleSheet, TypeBuilder::CSS::StyleSheet Origin::Enum origin, const String& documentURL, Listener* listener)
1042 : m_pageAgent(pageAgent) 976 : m_pageAgent(pageAgent)
1043 , m_id(id) 977 , m_id(id)
1044 , m_pageStyleSheet(pageStyleSheet) 978 , m_pageStyleSheet(pageStyleSheet)
1045 , m_origin(origin) 979 , m_origin(origin)
1046 , m_documentURL(documentURL) 980 , m_documentURL(documentURL)
1047 , m_isRevalidating(false) 981 , m_isRevalidating(false)
1048 , m_isReparsing(false) 982 , m_isReparsing(false)
1049 , m_listener(listener) 983 , m_listener(listener)
1050 { 984 {
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
1224 { 1158 {
1225 if (!m_pageStyleSheet) 1159 if (!m_pageStyleSheet)
1226 return 0; 1160 return 0;
1227 1161
1228 ASSERT(!id.isEmpty()); 1162 ASSERT(!id.isEmpty());
1229 ensureFlatRules(); 1163 ensureFlatRules();
1230 return id.ordinal() >= m_flatRules.size() ? 0 : m_flatRules.at(id.ordinal()) .get(); 1164 return id.ordinal() >= m_flatRules.size() ? 0 : m_flatRules.at(id.ordinal()) .get();
1231 1165
1232 } 1166 }
1233 1167
1234 PassRefPtr<TypeBuilder::CSS::CSSStyleSheetBody> InspectorStyleSheet::buildObject ForStyleSheet() 1168 bool InspectorStyleSheet::fillObjectForStyleSheet(PassRefPtr<TypeBuilder::CSS::C SSStyleSheetBody> prpResult)
1235 { 1169 {
1236 CSSStyleSheet* styleSheet = pageStyleSheet(); 1170 CSSStyleSheet* styleSheet = pageStyleSheet();
1237 if (!styleSheet) 1171 if (!styleSheet)
1238 return 0; 1172 return false;
1239 1173
1240 RefPtr<CSSRuleList> cssRuleList = asCSSRuleList(styleSheet); 1174 RefPtr<TypeBuilder::CSS::CSSStyleSheetBody> result = prpResult;
1241
1242 RefPtr<TypeBuilder::CSS::CSSStyleSheetBody> result = TypeBuilder::CSS::CSSSt yleSheetBody::create()
1243 .setStyleSheetId(id())
1244 .setRules(buildArrayForRuleList(cssRuleList.get()));
1245 1175
1246 String styleSheetText; 1176 String styleSheetText;
1247 bool success = getText(&styleSheetText); 1177 bool success = getText(&styleSheetText);
1248 if (success) 1178 if (success)
1249 result->setText(styleSheetText); 1179 result->setText(styleSheetText);
1250 1180 return success;
1251 return result.release();
1252 } 1181 }
1253 1182
1254 PassRefPtr<TypeBuilder::CSS::CSSStyleSheetHeader> InspectorStyleSheet::buildObje ctForStyleSheetInfo() const 1183 PassRefPtr<TypeBuilder::CSS::CSSStyleSheetHeader> InspectorStyleSheet::buildObje ctForStyleSheetInfo() const
1255 { 1184 {
1256 CSSStyleSheet* styleSheet = pageStyleSheet(); 1185 CSSStyleSheet* styleSheet = pageStyleSheet();
1257 if (!styleSheet) 1186 if (!styleSheet)
1258 return 0; 1187 return 0;
1259 1188
1260 Document* document = styleSheet->ownerDocument(); 1189 Document* document = styleSheet->ownerDocument();
1261 Frame* frame = document ? document->frame() : 0; 1190 Frame* frame = document ? document->frame() : 0;
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
1320 } 1249 }
1321 RefPtr<TypeBuilder::CSS::SelectorList> result = TypeBuilder::CSS::SelectorLi st::create() 1250 RefPtr<TypeBuilder::CSS::SelectorList> result = TypeBuilder::CSS::SelectorLi st::create()
1322 .setSelectors(selectors) 1251 .setSelectors(selectors)
1323 .setText(selectorText) 1252 .setText(selectorText)
1324 .release(); 1253 .release();
1325 if (sourceData) 1254 if (sourceData)
1326 result->setRange(buildSourceRangeObject(sourceData->ruleHeaderRange, lin eEndings().get())); 1255 result->setRange(buildSourceRangeObject(sourceData->ruleHeaderRange, lin eEndings().get()));
1327 return result.release(); 1256 return result.release();
1328 } 1257 }
1329 1258
1330 PassRefPtr<TypeBuilder::CSS::CSSRule> InspectorStyleSheet::buildObjectForRule(CS SStyleRule* rule) 1259 PassRefPtr<TypeBuilder::CSS::CSSRule> InspectorStyleSheet::buildObjectForRule(CS SStyleRule* rule, PassRefPtr<Array<TypeBuilder::CSS::CSSMedia> > mediaStack)
1331 { 1260 {
1332 CSSStyleSheet* styleSheet = pageStyleSheet(); 1261 CSSStyleSheet* styleSheet = pageStyleSheet();
1333 if (!styleSheet) 1262 if (!styleSheet)
1334 return 0; 1263 return 0;
1335 1264
1336 RefPtr<TypeBuilder::CSS::CSSRule> result = TypeBuilder::CSS::CSSRule::create () 1265 RefPtr<TypeBuilder::CSS::CSSRule> result = TypeBuilder::CSS::CSSRule::create ()
1337 .setSelectorList(buildObjectForSelectorList(rule)) 1266 .setSelectorList(buildObjectForSelectorList(rule))
1338 .setOrigin(m_origin) 1267 .setOrigin(m_origin)
1339 .setStyle(buildObjectForStyle(rule->style())); 1268 .setStyle(buildObjectForStyle(rule->style()));
1340 1269
1341 String url = this->url(); 1270 String url = this->url();
1342 if (!url.isEmpty()) 1271 if (!url.isEmpty())
1343 result->setSourceURL(url); 1272 result->setSourceURL(url);
1344 1273
1345 if (canBind()) { 1274 if (canBind()) {
1346 InspectorCSSId id(ruleId(rule)); 1275 InspectorCSSId id(ruleId(rule));
1347 if (!id.isEmpty()) 1276 if (!id.isEmpty())
1348 result->setRuleId(id.asProtocolValue<TypeBuilder::CSS::CSSRuleId>()) ; 1277 result->setRuleId(id.asProtocolValue<TypeBuilder::CSS::CSSRuleId>()) ;
1349 } 1278 }
1350 1279
1351 RefPtr<Array<TypeBuilder::CSS::CSSMedia> > mediaArray = Array<TypeBuilder::C SS::CSSMedia>::create(); 1280 RefPtr<Array<TypeBuilder::CSS::CSSMedia> > mediaArray = Array<TypeBuilder::C SS::CSSMedia>::create();
1352 1281
1353 fillMediaListChain(rule, mediaArray.get()); 1282 if (mediaStack)
1354 if (mediaArray->length()) 1283 result->setMedia(mediaStack);
1355 result->setMedia(mediaArray.release());
1356 1284
1357 return result.release(); 1285 return result.release();
1358 } 1286 }
1359 1287
1360 PassRefPtr<TypeBuilder::CSS::CSSStyle> InspectorStyleSheet::buildObjectForStyle( CSSStyleDeclaration* style) 1288 PassRefPtr<TypeBuilder::CSS::CSSStyle> InspectorStyleSheet::buildObjectForStyle( CSSStyleDeclaration* style)
1361 { 1289 {
1362 RefPtr<CSSRuleSourceData> sourceData; 1290 RefPtr<CSSRuleSourceData> sourceData;
1363 if (ensureParsedDataReady()) 1291 if (ensureParsedDataReady())
1364 sourceData = ruleSourceDataFor(style); 1292 sourceData = ruleSourceDataFor(style);
1365 1293
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
1735 if (!ownerNode || ownerNode->nodeType() != Node::ELEMENT_NODE) 1663 if (!ownerNode || ownerNode->nodeType() != Node::ELEMENT_NODE)
1736 return false; 1664 return false;
1737 Element* ownerElement = toElement(ownerNode); 1665 Element* ownerElement = toElement(ownerNode);
1738 1666
1739 if (!ownerElement->hasTagName(HTMLNames::styleTag) && !ownerElement->hasTagN ame(SVGNames::styleTag)) 1667 if (!ownerElement->hasTagName(HTMLNames::styleTag) && !ownerElement->hasTagN ame(SVGNames::styleTag))
1740 return false; 1668 return false;
1741 *result = ownerElement->textContent(); 1669 *result = ownerElement->textContent();
1742 return true; 1670 return true;
1743 } 1671 }
1744 1672
1745 PassRefPtr<TypeBuilder::Array<TypeBuilder::CSS::CSSRule> > InspectorStyleSheet:: buildArrayForRuleList(CSSRuleList* ruleList)
1746 {
1747 RefPtr<TypeBuilder::Array<TypeBuilder::CSS::CSSRule> > result = TypeBuilder: :Array<TypeBuilder::CSS::CSSRule>::create();
1748 if (!ruleList)
1749 return result.release();
1750
1751 RefPtr<CSSRuleList> refRuleList = ruleList;
1752 CSSStyleRuleVector rules;
1753 collectFlatRules(refRuleList, &rules);
1754
1755 for (unsigned i = 0, size = rules.size(); i < size; ++i)
1756 result->addItem(buildObjectForRule(rules.at(i).get()));
1757
1758 return result.release();
1759 }
1760
1761 void InspectorStyleSheet::collectFlatRules(PassRefPtr<CSSRuleList> ruleList, CSS StyleRuleVector* result)
1762 {
1763 if (!ruleList)
1764 return;
1765
1766 for (unsigned i = 0, size = ruleList->length(); i < size; ++i) {
1767 CSSRule* rule = ruleList->item(i);
1768 CSSStyleRule* styleRule = InspectorCSSAgent::asCSSStyleRule(rule);
1769 if (styleRule)
1770 result->append(styleRule);
1771 else {
1772 RefPtr<CSSRuleList> childRuleList = asCSSRuleList(rule);
1773 if (childRuleList)
1774 collectFlatRules(childRuleList, result);
1775 }
1776 }
1777 }
1778
1779 PassRefPtr<InspectorStyleSheetForInlineStyle> InspectorStyleSheetForInlineStyle: :create(InspectorPageAgent* pageAgent, const String& id, PassRefPtr<Element> ele ment, TypeBuilder::CSS::StyleSheetOrigin::Enum origin, Listener* listener) 1673 PassRefPtr<InspectorStyleSheetForInlineStyle> InspectorStyleSheetForInlineStyle: :create(InspectorPageAgent* pageAgent, const String& id, PassRefPtr<Element> ele ment, TypeBuilder::CSS::StyleSheetOrigin::Enum origin, Listener* listener)
1780 { 1674 {
1781 return adoptRef(new InspectorStyleSheetForInlineStyle(pageAgent, id, element , origin, listener)); 1675 return adoptRef(new InspectorStyleSheetForInlineStyle(pageAgent, id, element , origin, listener));
1782 } 1676 }
1783 1677
1784 InspectorStyleSheetForInlineStyle::InspectorStyleSheetForInlineStyle(InspectorPa geAgent* pageAgent, const String& id, PassRefPtr<Element> element, TypeBuilder:: CSS::StyleSheetOrigin::Enum origin, Listener* listener) 1678 InspectorStyleSheetForInlineStyle::InspectorStyleSheetForInlineStyle(InspectorPa geAgent* pageAgent, const String& id, PassRefPtr<Element> element, TypeBuilder:: CSS::StyleSheetOrigin::Enum origin, Listener* listener)
1785 : InspectorStyleSheet(pageAgent, id, 0, origin, "", listener) 1679 : InspectorStyleSheet(pageAgent, id, 0, origin, "", listener)
1786 , m_element(element) 1680 , m_element(element)
1787 , m_ruleSourceData(0) 1681 , m_ruleSourceData(0)
1788 , m_isStyleTextValid(false) 1682 , m_isStyleTextValid(false)
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
1890 1784
1891 RefPtr<MutableStylePropertySet> tempDeclaration = MutableStylePropertySet::c reate(); 1785 RefPtr<MutableStylePropertySet> tempDeclaration = MutableStylePropertySet::c reate();
1892 RuleSourceDataList ruleSourceDataResult; 1786 RuleSourceDataList ruleSourceDataResult;
1893 StyleSheetHandler handler(m_styleText, m_element->document(), m_element->doc ument()->elementSheet()->contents(), &ruleSourceDataResult); 1787 StyleSheetHandler handler(m_styleText, m_element->document(), m_element->doc ument()->elementSheet()->contents(), &ruleSourceDataResult);
1894 createCSSParser(m_element->document())->parseDeclaration(tempDeclaration.get (), m_styleText, &handler, m_element->document()->elementSheet()->contents()); 1788 createCSSParser(m_element->document())->parseDeclaration(tempDeclaration.get (), m_styleText, &handler, m_element->document()->elementSheet()->contents());
1895 return ruleSourceDataResult.first().release(); 1789 return ruleSourceDataResult.first().release();
1896 } 1790 }
1897 1791
1898 } // namespace WebCore 1792 } // namespace WebCore
1899 1793
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorStyleSheet.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698