[CSS Regions]Parse @-webkit-region rule
authormihnea@adobe.com <mihnea@adobe.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 18 Oct 2011 11:50:49 +0000 (11:50 +0000)
committermihnea@adobe.com <mihnea@adobe.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 18 Oct 2011 11:50:49 +0000 (11:50 +0000)
commit702d3ac166a7448556c995257e5dd438e46ad3e8
treea476c9e56b95d0cec6d11af9d9f2b1ef42b3a343
parent561ef82e32492d6103048d5d5ed79b27a48cc8c4
[CSS Regions]Parse @-webkit-region rule
https://bugs.webkit.org/show_bug.cgi?id=70021

Reviewed by David Hyatt.

Source/WebCore:

Test: fast/regions/parsing-region-style-rule.html

* CMakeLists.txt:
* GNUmakefile.list.am:
* WebCore.gypi:
* WebCore.pro:
* WebCore.vcproj/WebCore.vcproj:
* WebCore.xcodeproj/project.pbxproj:
* bindings/objc/DOMCSS.mm:
(kitClass):
* bindings/v8/custom/V8CSSRuleCustom.cpp:
(WebCore::toV8):
* css/CSSGrammar.y:
* css/CSSMediaRule.cpp:
(WebCore::CSSMediaRule::cssText):
* css/CSSParser.cpp:
(WebCore::CSSParser::setReusableRegionSelectorVector):
(WebCore::CSSParser::createRegionStylingRule):
* css/CSSParser.h:
(WebCore::CSSParser::reusableRegionSelectorVector):
* css/CSSRegionStyleRule.cpp: Added.
(WebCore::CSSRegionStyleRule::CSSRegionStyleRule):
(WebCore::CSSRegionStyleRule::~CSSRegionStyleRule):
(WebCore::CSSRegionStyleRule::cssText):
* css/CSSRegionStyleRule.h: Added.
* css/CSSRule.h:
* css/CSSRule.idl:
* css/CSSRuleList.cpp:
(WebCore::CSSRuleList::item):
(WebCore::CSSRuleList::rulesText):
* css/CSSRuleList.h:
* css/CSSSelectorList.cpp:
(WebCore::CSSSelectorList::selectorsText):
* css/CSSSelectorList.h:
* css/CSSStyleSelector.cpp:
(WebCore::CSSStyleSelector::addRegionStyleRule):
(WebCore::RuleSet::addRulesFromSheet):
* css/CSSStyleSelector.h:
* css/StyleBase.h:
(WebCore::StyleBase::isRegionStyleRule):
* css/tokenizer.flex:

LayoutTests:

* fast/dom/Window/window-properties-expected.txt:
* fast/regions/parsing-region-style-rule-expected.txt: Added.
* fast/regions/parsing-region-style-rule.html: Added.
* platform/gtk/fast/dom/Window/window-properties-expected.txt:
* platform/mac/fast/dom/Window/window-properties-expected.txt:
* platform/qt-wk2/fast/dom/Window/window-properties-expected.txt:
* platform/win/fast/dom/Window/window-properties-expected.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@97738 268f45cc-cd09-0410-ab3c-d52691b4dbfc
33 files changed:
LayoutTests/ChangeLog
LayoutTests/fast/dom/Window/window-properties-expected.txt
LayoutTests/fast/regions/parsing-region-style-rule-expected.txt [new file with mode: 0644]
LayoutTests/fast/regions/parsing-region-style-rule.html [new file with mode: 0644]
LayoutTests/platform/gtk/fast/dom/Window/window-properties-expected.txt
LayoutTests/platform/mac/fast/dom/Window/window-properties-expected.txt
LayoutTests/platform/qt-wk2/fast/dom/Window/window-properties-expected.txt
LayoutTests/platform/win/fast/dom/Window/window-properties-expected.txt
Source/WebCore/CMakeLists.txt
Source/WebCore/ChangeLog
Source/WebCore/GNUmakefile.list.am
Source/WebCore/WebCore.gypi
Source/WebCore/WebCore.pro
Source/WebCore/WebCore.vcproj/WebCore.vcproj
Source/WebCore/WebCore.xcodeproj/project.pbxproj
Source/WebCore/bindings/objc/DOMCSS.mm
Source/WebCore/bindings/v8/custom/V8CSSRuleCustom.cpp
Source/WebCore/css/CSSGrammar.y
Source/WebCore/css/CSSMediaRule.cpp
Source/WebCore/css/CSSParser.cpp
Source/WebCore/css/CSSParser.h
Source/WebCore/css/CSSRegionStyleRule.cpp [new file with mode: 0644]
Source/WebCore/css/CSSRegionStyleRule.h [new file with mode: 0644]
Source/WebCore/css/CSSRule.h
Source/WebCore/css/CSSRule.idl
Source/WebCore/css/CSSRuleList.cpp
Source/WebCore/css/CSSRuleList.h
Source/WebCore/css/CSSSelectorList.cpp
Source/WebCore/css/CSSSelectorList.h
Source/WebCore/css/CSSStyleSelector.cpp
Source/WebCore/css/CSSStyleSelector.h
Source/WebCore/css/StyleBase.h
Source/WebCore/css/tokenizer.flex