Use PassRef for constructing StyleRules.
authorakling@apple.com <akling@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 20 Oct 2013 10:49:10 +0000 (10:49 +0000)
committerakling@apple.com <akling@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 20 Oct 2013 10:49:10 +0000 (10:49 +0000)
commit02c3162aa1b28b54e0f30d59d5f9f723941f8dcf
tree2f26921ac6373c4f0ab3fe99320e92b23242b124
parentaf1919caa5879d5f454f9ed18a8a2c2a45529c43
Use PassRef for constructing StyleRules.
<https://webkit.org/b/123072>

Let functions that return newly-constructed StyleRuleFoo objects
vend PassRef<StyleRuleFoo> instead of PassRefPtr.

Since StyleRuleBase::copy() has to return something, we can't rely
on ASSERT_NOT_REACHED() + return nullptr anymore, so I've replaced
those with CRASH(). No call sites actually handled null anyway.

Reviewed by Sam Weinig.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@157698 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/css/CSSGroupingRule.cpp
Source/WebCore/css/StyleRule.cpp
Source/WebCore/css/StyleRule.h
Source/WebCore/css/StyleRuleImport.cpp
Source/WebCore/css/StyleRuleImport.h
Source/WebCore/css/WebKitCSSKeyframesRule.h