Title: [176434] trunk/Source/WebCore
- Revision
- 176434
- Author
- [email protected]
- Date
- 2014-11-20 20:26:35 -0800 (Thu, 20 Nov 2014)
Log Message
Remove InspectorCSSAgent::buildArrayForRuleList()
https://bugs.webkit.org/show_bug.cgi?id=138907
Patch by Benjamin Poulain <[email protected]> on 2014-11-20
Reviewed by Andreas Kling.
* inspector/InspectorCSSAgent.cpp:
(WebCore::InspectorCSSAgent::buildArrayForRuleList): Deleted.
* inspector/InspectorCSSAgent.h:
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (176433 => 176434)
--- trunk/Source/WebCore/ChangeLog 2014-11-21 03:47:29 UTC (rev 176433)
+++ trunk/Source/WebCore/ChangeLog 2014-11-21 04:26:35 UTC (rev 176434)
@@ -1,3 +1,14 @@
+2014-11-20 Benjamin Poulain <[email protected]>
+
+ Remove InspectorCSSAgent::buildArrayForRuleList()
+ https://bugs.webkit.org/show_bug.cgi?id=138907
+
+ Reviewed by Andreas Kling.
+
+ * inspector/InspectorCSSAgent.cpp:
+ (WebCore::InspectorCSSAgent::buildArrayForRuleList): Deleted.
+ * inspector/InspectorCSSAgent.h:
+
2014-11-20 Zalan Bujtas <[email protected]>
REGRESSION (174986): CSS clip property is ignored when border-radius is present.
Modified: trunk/Source/WebCore/inspector/InspectorCSSAgent.cpp (176433 => 176434)
--- trunk/Source/WebCore/inspector/InspectorCSSAgent.cpp 2014-11-21 03:47:29 UTC (rev 176433)
+++ trunk/Source/WebCore/inspector/InspectorCSSAgent.cpp 2014-11-21 04:26:35 UTC (rev 176434)
@@ -1037,22 +1037,6 @@
return inspectorStyleSheet ? inspectorStyleSheet->buildObjectForRule(rule) : nullptr;
}
-PassRefPtr<Inspector::Protocol::Array<Inspector::Protocol::CSS::CSSRule>> InspectorCSSAgent::buildArrayForRuleList(CSSRuleList* ruleList)
-{
- RefPtr<Inspector::Protocol::Array<Inspector::Protocol::CSS::CSSRule>> result = Inspector::Protocol::Array<Inspector::Protocol::CSS::CSSRule>::create();
- if (!ruleList)
- return result.release();
-
- for (unsigned i = 0, size = ruleList->length(); i < size; ++i) {
- CSSStyleRule* rule = asCSSStyleRule(*ruleList->item(i));
- RefPtr<Inspector::Protocol::CSS::CSSRule> ruleObject = buildObjectForRule(rule);
- if (!ruleObject)
- continue;
- result->addItem(ruleObject.release());
- }
- return result.release();
-}
-
PassRefPtr<Inspector::Protocol::Array<Inspector::Protocol::CSS::RuleMatch>> InspectorCSSAgent::buildArrayForMatchedRuleList(const Vector<RefPtr<StyleRule>>& matchedRules, StyleResolver& styleResolver, Element* element)
{
RefPtr<Inspector::Protocol::Array<Inspector::Protocol::CSS::RuleMatch>> result = Inspector::Protocol::Array<Inspector::Protocol::CSS::RuleMatch>::create();
Modified: trunk/Source/WebCore/inspector/InspectorCSSAgent.h (176433 => 176434)
--- trunk/Source/WebCore/inspector/InspectorCSSAgent.h 2014-11-21 03:47:29 UTC (rev 176433)
+++ trunk/Source/WebCore/inspector/InspectorCSSAgent.h 2014-11-21 04:26:35 UTC (rev 176434)
@@ -153,7 +153,6 @@
PassRefPtr<Inspector::Protocol::CSS::CSSRule> buildObjectForRule(StyleRule*, StyleResolver&);
PassRefPtr<Inspector::Protocol::CSS::CSSRule> buildObjectForRule(CSSStyleRule*);
- PassRefPtr<Inspector::Protocol::Array<Inspector::Protocol::CSS::CSSRule>> buildArrayForRuleList(CSSRuleList*);
PassRefPtr<Inspector::Protocol::Array<Inspector::Protocol::CSS::RuleMatch>> buildArrayForMatchedRuleList(const Vector<RefPtr<StyleRule>>&, StyleResolver&, Element*);
PassRefPtr<Inspector::Protocol::CSS::CSSStyle> buildObjectForAttributesStyle(Element*);
PassRefPtr<Inspector::Protocol::Array<Inspector::Protocol::CSS::Region>> buildArrayForRegions(ErrorString&, PassRefPtr<NodeList>, int documentNodeId);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes