Changeset 101987 in webkit
- Timestamp:
- Dec 5, 2011 3:48:28 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r101986 r101987 1 2011-12-05 Roland Steiner <rolandsteiner@chromium.org> 2 3 <style scoped>: Add 'scoped' attribute 4 https://bugs.webkit.org/show_bug.cgi?id=67718 5 6 Test setting/resetting of the 'scoped' attribute in various circumstances. 7 Disable test directory, since STYLE_SCOPED is not enabled by default. 8 9 Reviewed by Antti Koivisto. 10 11 * fast/css/style-scoped/basic-attribute-expected.txt: Added. 12 * fast/css/style-scoped/basic-attribute.html: Added. 13 * platform/chromium/test_expectations.txt: 14 * platform/efl/Skipped: 15 * platform/gtk/Skipped: 16 * platform/mac/Skipped: 17 * platform/qt/Skipped: 18 * platform/win/Skipped: 19 * platform/wincairo/Skipped: 20 1 21 2011-12-05 Vsevolod Vlasov <vsevik@chromium.org> 2 22 -
trunk/LayoutTests/platform/chromium/test_expectations.txt
r101984 r101987 3196 3196 BUGWK68729 SKIP : fast/mutation = PASS 3197 3197 3198 // <style scoped> not yet enabled. 3199 BUGWK49142 SKIP: fast/css/style-scoped = PASS 3200 3198 3201 BUGCR85755 : fast/js/exception-properties.html = TEXT 3199 3202 -
trunk/LayoutTests/platform/efl/Skipped
r101916 r101987 1890 1890 fast/css-grid-layout 1891 1891 1892 # <style scoped> is not yet enabled. http://webkit.org/b/49142 1893 fast/css/style-scoped 1894 1892 1895 # CSS Filters support not yet enabled (needs ENABLE_CSS_FILTERS). 1893 1896 # https://bugs.webkit.org/show_bug.cgi?id=68469 -
trunk/LayoutTests/platform/gtk/Skipped
r101978 r101987 353 353 # CSS Grid Layout is not yet enabled. http://webkit.org/b/60731 354 354 fast/css-grid-layout 355 356 # <style scoped> is not yet enabled. http://webkit.org/b/49142 357 fast/css/style-scoped 355 358 356 359 # CSS Regions support not yet enabled. http://webkit.org/b/57312 -
trunk/LayoutTests/platform/mac/Skipped
r101855 r101987 420 420 fast/css-grid-layout 421 421 422 # <style scoped> is not yet enabled. http://webkit.org/b/49142 423 fast/css/style-scoped 424 422 425 # JSC does not support setIsolatedWorldSecurityOrigin (http://webkit.org/b/61540) 423 426 http/tests/security/isolatedWorld/cross-origin-xhr.html -
trunk/LayoutTests/platform/qt/Skipped
r101978 r101987 160 160 # CSS Grid Layout is not yet enabled. http://webkit.org/b/60731 161 161 fast/css-grid-layout 162 163 # <style scoped> is not yet enabled. http://webkit.org/b/49142 164 fast/css/style-scoped 162 165 163 166 # CSS Regions support not yet enabled. http://webkit.org/b/57312 -
trunk/LayoutTests/platform/win/Skipped
r101855 r101987 1400 1400 fast/css-grid-layout 1401 1401 1402 # <style scoped> is not yet enabled. http://webkit.org/b/49142 1403 fast/css/style-scoped 1404 1402 1405 # CSS Regions support not yet enabled. http://webkit.org/b/57312 1403 1406 fast/regions -
trunk/LayoutTests/platform/wincairo/Skipped
r101128 r101987 1911 1911 fast/css-grid-layout 1912 1912 1913 # <style scoped> is not yet enabled. http://webkit.org/b/49142 1914 fast/css/style-scoped 1915 1913 1916 # CSS Regions support not yet enabled. http://webkit.org/b/57312 1914 1917 fast/regions -
trunk/Source/WebCore/ChangeLog
r101983 r101987 1 2011-12-05 Roland Steiner <rolandsteiner@chromium.org> 2 3 <style scoped>: Add 'scoped' attribute 4 https://bugs.webkit.org/show_bug.cgi?id=67718 5 6 Add 'scoped' attribute to IDL and attribute list, 7 implement and test setting/resetting of the attribute. 8 9 Reviewed by Antti Koivisto. 10 11 Test: fast/css/style-scoped/basic-attribute.html 12 13 * html/HTMLAttributeNames.in: 14 * html/HTMLStyleElement.cpp: 15 (WebCore::HTMLStyleElement::scoped): 16 (WebCore::HTMLStyleElement::setScoped): 17 (WebCore::HTMLStyleElement::scopingElement): 18 * html/HTMLStyleElement.h: 19 * html/HTMLStyleElement.idl: 20 1 21 2011-12-05 Hajime Morrita <morrita@chromium.org> 2 22 -
trunk/Source/WebCore/html/HTMLAttributeNames.in
r100965 r101987 274 274 scheme 275 275 scope 276 scoped 276 277 scrollamount 277 278 scrolldelay -
trunk/Source/WebCore/html/HTMLStyleElement.cpp
r98208 r101987 95 95 } 96 96 97 #if ENABLE(STYLE_SCOPED) 98 bool HTMLStyleElement::scoped() const 99 { 100 return fastHasAttribute(scopedAttr); 101 } 102 103 void HTMLStyleElement::setScoped(bool scopedValue) 104 { 105 setBooleanAttribute(scopedAttr, scopedValue); 106 } 107 108 Element* HTMLStyleElement::scopingElement() const 109 { 110 if (!scoped()) 111 return 0; 112 113 // FIXME: This probably needs to be refined for scoped stylesheets within shadow DOM. 114 // As written, such a stylesheet could style the host element, as well as children of the host. 115 // OTOH, this paves the way for a :bound-element implementation. 116 ContainerNode* parentOrHost = parentOrHostNode(); 117 if (!parentOrHost || !parentOrHost->isElementNode()) 118 return 0; 119 120 return toElement(parentOrHost); 121 } 122 #endif // ENABLE(STYLE_SCOPED) 123 97 124 void HTMLStyleElement::addSubresourceAttributeURLs(ListHashSet<KURL>& urls) const 98 125 { -
trunk/Source/WebCore/html/HTMLStyleElement.h
r94813 r101987 38 38 void setType(const AtomicString&); 39 39 40 #if ENABLE(STYLE_SCOPED) 41 bool scoped() const; 42 void setScoped(bool); 43 Element* scopingElement() const; 44 #endif 45 40 46 using StyleElement::sheet; 41 47 -
trunk/Source/WebCore/html/HTMLStyleElement.idl
r94813 r101987 23 23 interface HTMLStyleElement : HTMLElement { 24 24 attribute boolean disabled; 25 attribute [Conditional=STYLE_SCOPED] boolean scoped; 25 26 attribute [Reflect] DOMString media; 26 27 attribute [Reflect] DOMString type;
Note: See TracChangeset
for help on using the changeset viewer.