Changeset 86754 in webkit
- Timestamp:
- May 18, 2011 6:32:07 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r86753 r86754 1 2011-05-18 Alexander Pavlov <apavlov@chromium.org> 2 3 Reviewed by Pavel Feldman. 4 5 Web Inspector: model-based CSS editing does not update @import-ed stylesheet resources 6 https://bugs.webkit.org/show_bug.cgi?id=60966 7 8 * inspector/styles/resources/styles-new-API-1.css: 9 * inspector/styles/resources/styles-new-API-2.css: Copied from LayoutTests/inspector/styles/resources/styles-new-API-1.css. 10 (@page): 11 (@page :first): 12 (#absent-id): 13 (@font-face): 14 (body): 15 * inspector/styles/styles-new-API-expected.txt: 16 1 17 2011-05-18 Zoltan Horvath <zoltan@webkit.org> 2 18 … … 11747 11763 https://bugs.webkit.org/show_bug.cgi?id=58995 11748 11764 11749 11765 Accidentally indicated MAC instead of WIN. 11750 11766 11751 11767 * platform/chromium/test_expectations.txt: … … 11807 11823 https://bugs.webkit.org/show_bug.cgi?id=58985 11808 11824 11809 11810 11825 Most likely related to http://trac.webkit.org/changeset/84341/ 11826 "background color of elements with border-radius shows around outer edge of border at corners" 11811 11827 11812 11828 * platform/chromium-mac-leopard/fast/forms/menulist-clip-expected.png: … … 11858 11874 https://bugs.webkit.org/show_bug.cgi?id=58978 11859 11875 11860 11861 11876 Windows bots are now generating baselines, so include them. 11877 fast/repaint/trailing-floats-root-line-box-overflow looks like correct output. 11862 11878 11863 11879 * platform/chromium-mac/fast/repaint/trailing-floats-root-line-box-overflow-expected.png: Added. … … 12736 12752 https://bugs.webkit.org/show_bug.cgi?id=58880 12737 12753 12738 12739 12754 See also existing chromium bug: 12755 http://code.google.com/p/chromium/issues/detail?id=76609 12740 12756 12741 12757 * platform/chromium/test_expectations.txt: … … 12748 12764 https://bugs.webkit.org/show_bug.cgi?id=58879 12749 12765 12750 12751 12766 See also existing chromium bug: 12767 http://code.google.com/p/chromium/issues/detail?id=32231 12752 12768 12753 12769 * platform/chromium/test_expectations.txt: … … 12760 12776 https://bugs.webkit.org/show_bug.cgi?id=58878 12761 12777 12762 12763 12778 See also existing chromium bug: 12779 http://code.google.com/p/chromium/issues/detail?id=74710 12764 12780 12765 12781 * platform/chromium/test_expectations.txt: … … 12772 12788 https://bugs.webkit.org/show_bug.cgi?id=58877 12773 12789 12774 12775 12790 Chromium bug filed. 12791 http://code.google.com/p/chromium/issues/detail?id=79854 12776 12792 12777 12793 * platform/chromium/test_expectations.txt: … … 12808 12824 https://bugs.webkit.org/show_bug.cgi?id=58873 12809 12825 12810 12811 12826 Fixed in Chromium r81956. 12827 http://code.google.com/p/chromium/issues/detail?id=79725 12812 12828 12813 12829 * platform/chromium/test_expectations.txt: -
trunk/LayoutTests/inspector/styles/resources/styles-new-API-1.css
r82713 r86754 1 @import url(styles-new-API-2.css); 2 1 3 @page { margin: 2cm } /* All margins set to 2cm */ 2 4 -
trunk/LayoutTests/inspector/styles/resources/styles-new-API-2.css
-
Property
svn:executable
set to
*
r86753 r86754 1 @import url(styles-new-API-1.css); 2 1 3 @page { margin: 2cm } /* All margins set to 2cm */ 2 4 -
Property
svn:executable
set to
-
trunk/LayoutTests/inspector/styles/styles-new-API-expected.txt
r78535 r86754 16 16 ['margin-bottom':'8px'] @[undefined-undefined] style 17 17 ['margin-left':'8px'] @[undefined-undefined] style 18 19 rule 20 body: [] 21 ['property':'imported-media-screen-stylesheet' non-parsed] @[5-48] active 18 22 19 23 rule … … 186 190 ['border-left-width':'0px'] @[undefined-undefined] style 187 191 192 StyleSheet: '@import url(styles-new-API-2.css); 193 194 @page { margin: 2cm } /* All margins set to 2cm */ 195 196 @page :first { 197 margin-top: 10cm /* Top margin on first page 10cm */ 198 } 199 200 @media screen { 201 202 #absent-id { 203 } 204 205 @font-face { 206 font-family: 'TheFont'; 207 src: url('font.url'); 208 font-weight: normal; 209 font-style: normal; 210 } 211 212 body { 213 property: imported-media-screen-stylesheet; 214 } 215 216 } 217 ' 218 219 rule 220 #absent-id: [] 221 222 rule 223 body: [] 224 ['property':'imported-media-screen-stylesheet' non-parsed] @[5-48] active 225 226 StyleSheet: '@import url(styles-new-API-1.css); 227 228 @page { margin: 2cm } /* All margins set to 2cm */ 229 230 @page :first { 231 margin-top: 10cm /* Top margin on first page 10cm */ 232 } 233 234 @media screen { 235 236 #absent-id { 237 } 238 239 @font-face { 240 font-family: 'TheFont'; 241 src: url('font.url'); 242 font-weight: normal; 243 font-style: normal; 244 } 245 246 body { 247 property: imported-media-screen-stylesheet; 248 } 249 250 } 251 ' 252 253 rule 254 #absent-id: [] 255 256 rule 257 body: [] 258 ['property':'imported-media-screen-stylesheet' non-parsed] @[5-48] active 259 188 260 StyleSheet: ' 189 261 … … 268 340 ['margin-bottom':'8px'] @[undefined-undefined] style 269 341 ['margin-left':'8px'] @[undefined-undefined] style 342 343 rule 344 body: [] 345 ['property':'imported-media-screen-stylesheet' non-parsed] @[5-48] active 270 346 271 347 rule -
trunk/Source/WebCore/ChangeLog
r86752 r86754 1 2011-05-18 Alexander Pavlov <apavlov@chromium.org> 2 3 Reviewed by Pavel Feldman. 4 5 Web Inspector: model-based CSS editing does not update @import-ed stylesheet resources 6 https://bugs.webkit.org/show_bug.cgi?id=60966 7 8 Imported stylesheets didn't use to be returned by InspectorCSSAgent. 9 10 * inspector/InspectorCSSAgent.cpp: 11 (WebCore::InspectorCSSAgent::getAllStyleSheets): 12 (WebCore::InspectorCSSAgent::collectStyleSheets): 13 * inspector/InspectorCSSAgent.h: 14 1 15 2011-05-18 Pavel Feldman <pfeldman@google.com> 2 16 -
trunk/Source/WebCore/inspector/InspectorCSSAgent.cpp
r84148 r86754 29 29 30 30 #include "CSSComputedStyleDeclaration.h" 31 #include "CSSImportRule.h" 31 32 #include "CSSMutableStyleDeclaration.h" 32 33 #include "CSSPropertyNames.h" … … 268 269 for (unsigned i = 0; i < list->length(); ++i) { 269 270 StyleSheet* styleSheet = list->item(i); 270 if (styleSheet->isCSSStyleSheet()) { 271 InspectorStyleSheet* inspectorStyleSheet = bindStyleSheet(static_cast<CSSStyleSheet*>(styleSheet)); 272 (*styleInfos)->pushObject(inspectorStyleSheet->buildObjectForStyleSheetInfo()); 273 } 271 if (styleSheet->isCSSStyleSheet()) 272 collectStyleSheets(static_cast<CSSStyleSheet*>(styleSheet), styleInfos->get()); 274 273 } 275 274 } … … 416 415 } 417 416 return static_cast<Element*>(node); 417 } 418 419 void InspectorCSSAgent::collectStyleSheets(CSSStyleSheet* styleSheet, InspectorArray* result) 420 { 421 InspectorStyleSheet* inspectorStyleSheet = bindStyleSheet(static_cast<CSSStyleSheet*>(styleSheet)); 422 result->pushObject(inspectorStyleSheet->buildObjectForStyleSheetInfo()); 423 for (unsigned i = 0, size = styleSheet->length(); i < size; ++i) { 424 StyleBase* styleBase = styleSheet->item(i); 425 if (styleBase->isImportRule()) { 426 StyleBase* importedStyleSheet = static_cast<CSSImportRule*>(styleBase)->styleSheet(); 427 if (importedStyleSheet && importedStyleSheet->isCSSStyleSheet()) 428 collectStyleSheets(static_cast<CSSStyleSheet*>(importedStyleSheet), result); 429 } 430 } 418 431 } 419 432 -
trunk/Source/WebCore/inspector/InspectorCSSAgent.h
r83962 r86754 85 85 InspectorStyleSheetForInlineStyle* asInspectorStyleSheet(Element* element); 86 86 Element* elementForId(ErrorString*, int nodeId); 87 void collectStyleSheets(CSSStyleSheet*, InspectorArray*); 87 88 88 89 InspectorStyleSheet* bindStyleSheet(CSSStyleSheet*);
Note: See TracChangeset
for help on using the changeset viewer.