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

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

Issue 1214553003: Oilpan: fix build after r198129. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 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 | « no previous file | 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 585 matching lines...) Expand 10 before | Expand all | Expand 10 after
596 delete [] backtrack[i]; 596 delete [] backtrack[i];
597 } 597 }
598 delete [] diff; 598 delete [] diff;
599 delete [] backtrack; 599 delete [] backtrack;
600 } 600 }
601 601
602 String canonicalCSSText(RefPtrWillBeRawPtr<CSSRule> rule) 602 String canonicalCSSText(RefPtrWillBeRawPtr<CSSRule> rule)
603 { 603 {
604 if (rule->type() != CSSRule::STYLE_RULE) 604 if (rule->type() != CSSRule::STYLE_RULE)
605 return rule->cssText(); 605 return rule->cssText();
606 RefPtr<CSSStyleRule> styleRule = toCSSStyleRule(rule.get()); 606 RefPtrWillBeRawPtr<CSSStyleRule> styleRule = toCSSStyleRule(rule.get());
607 607
608 Vector<String> propertyNames; 608 Vector<String> propertyNames;
609 HashSet<String> propertyNameSet; 609 HashSet<String> propertyNameSet;
610 CSSStyleDeclaration* style = styleRule->style(); 610 CSSStyleDeclaration* style = styleRule->style();
611 for (unsigned i = 0; i < style->length(); ++i) { 611 for (unsigned i = 0; i < style->length(); ++i) {
612 String name = style->item(i); 612 String name = style->item(i);
613 String shorthand = style->getPropertyShorthand(name); 613 String shorthand = style->getPropertyShorthand(name);
614 if (!shorthand.isEmpty()) 614 if (!shorthand.isEmpty())
615 name = shorthand; 615 name = shorthand;
616 if (propertyNameSet.contains(name)) 616 if (propertyNameSet.contains(name))
(...skipping 1092 matching lines...) Expand 10 before | Expand all | Expand 10 after
1709 } 1709 }
1710 1710
1711 DEFINE_TRACE(InspectorStyleSheetForInlineStyle) 1711 DEFINE_TRACE(InspectorStyleSheetForInlineStyle)
1712 { 1712 {
1713 visitor->trace(m_element); 1713 visitor->trace(m_element);
1714 visitor->trace(m_inspectorStyle); 1714 visitor->trace(m_inspectorStyle);
1715 InspectorStyleSheetBase::trace(visitor); 1715 InspectorStyleSheetBase::trace(visitor);
1716 } 1716 }
1717 1717
1718 } // namespace blink 1718 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698