| 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 864 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 875 bool InspectorStyleSheetBase::getStyleText(const InspectorCSSId& id, String* tex
t) | 875 bool InspectorStyleSheetBase::getStyleText(const InspectorCSSId& id, String* tex
t) |
| 876 { | 876 { |
| 877 RefPtrWillBeRawPtr<InspectorStyle> inspectorStyle = inspectorStyleForId(id); | 877 RefPtrWillBeRawPtr<InspectorStyle> inspectorStyle = inspectorStyleForId(id); |
| 878 if (!inspectorStyle) | 878 if (!inspectorStyle) |
| 879 return false; | 879 return false; |
| 880 return inspectorStyle->styleText(text); | 880 return inspectorStyle->styleText(text); |
| 881 } | 881 } |
| 882 | 882 |
| 883 void InspectorStyleSheetBase::onStyleSheetTextChanged() | 883 void InspectorStyleSheetBase::onStyleSheetTextChanged() |
| 884 { | 884 { |
| 885 m_lineEndings = adoptPtrWillBeNoop(new LineEndings()); | 885 m_lineEndings = adoptPtr(new LineEndings()); |
| 886 if (listener()) | 886 if (listener()) |
| 887 listener()->styleSheetChanged(this); | 887 listener()->styleSheetChanged(this); |
| 888 } | 888 } |
| 889 | 889 |
| 890 PassRefPtr<TypeBuilder::CSS::CSSStyle> InspectorStyleSheetBase::buildObjectForSt
yle(CSSStyleDeclaration* style) | 890 PassRefPtr<TypeBuilder::CSS::CSSStyle> InspectorStyleSheetBase::buildObjectForSt
yle(CSSStyleDeclaration* style) |
| 891 { | 891 { |
| 892 RefPtrWillBeRawPtr<CSSRuleSourceData> sourceData = nullptr; | 892 RefPtrWillBeRawPtr<CSSRuleSourceData> sourceData = nullptr; |
| 893 if (ensureParsedDataReady()) | 893 if (ensureParsedDataReady()) |
| 894 sourceData = ruleSourceDataAt(styleId(style).ordinal()); | 894 sourceData = ruleSourceDataAt(styleId(style).ordinal()); |
| 895 | 895 |
| (...skipping 965 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1861 | 1861 |
| 1862 void InspectorStyleSheetForInlineStyle::trace(Visitor* visitor) | 1862 void InspectorStyleSheetForInlineStyle::trace(Visitor* visitor) |
| 1863 { | 1863 { |
| 1864 visitor->trace(m_element); | 1864 visitor->trace(m_element); |
| 1865 visitor->trace(m_ruleSourceData); | 1865 visitor->trace(m_ruleSourceData); |
| 1866 visitor->trace(m_inspectorStyle); | 1866 visitor->trace(m_inspectorStyle); |
| 1867 InspectorStyleSheetBase::trace(visitor); | 1867 InspectorStyleSheetBase::trace(visitor); |
| 1868 } | 1868 } |
| 1869 | 1869 |
| 1870 } // namespace blink | 1870 } // namespace blink |
| 1871 | |
| OLD | NEW |