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 585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |
OLD | NEW |