|
Lines 1-3
a/Source/WebCore/ChangeLog_sec1
|
|
|
1 |
2015-02-10 Joseph Pecoraro <pecoraro@apple.com> |
| 2 |
|
| 3 |
Web Inspector: Crash inspecting styles of element with mutated stylesheet |
| 4 |
https://bugs.webkit.org/show_bug.cgi?id=141451 |
| 5 |
|
| 6 |
Reviewed by NOBODY (OOPS!). |
| 7 |
|
| 8 |
Test: inspector/css/stylesheet-with-mutations.html |
| 9 |
|
| 10 |
* css/CSSStyleSheet.h: |
| 11 |
* css/CSSStyleSheet.cpp: |
| 12 |
(WebCore::CSSStyleSheet::CSSStyleSheet): |
| 13 |
(WebCore::CSSStyleSheet::didMutateRules): |
| 14 |
Keep a flag on the CSSStyleSheet to know when it has had a rule |
| 15 |
mutation from the contents. |
| 16 |
|
| 17 |
* inspector/InspectorStyleSheet.h: |
| 18 |
* inspector/InspectorStyleSheet.cpp: |
| 19 |
(WebCore::InspectorStyleSheet::reparseStyleSheet): |
| 20 |
When completely replacing the stylesheet's contents, we will have |
| 21 |
destroyed any previous rules, so clear the has mutations flag. |
| 22 |
|
| 23 |
(WebCore::selectorsFromSource): |
| 24 |
Previously there was a mismatch between the rules the parsed |
| 25 |
SourceData had, and the actual CSSSelectors we were iterating. |
| 26 |
We use the SourceData so we can get the exact user authored |
| 27 |
text instead of generated longhands from actualy selector objects. |
| 28 |
Add an ASSERT and bail to catch and more gracefully handle |
| 29 |
any possible mismatches in the future. |
| 30 |
|
| 31 |
(WebCore::InspectorStyleSheet::styleSheetMutated): |
| 32 |
(WebCore::InspectorStyleSheet::ensureParsedDataReady): |
| 33 |
When a CSSStyleSheet has been mutated beyond the inspector's |
| 34 |
knowledge right now, fall back to readonly generated selectors. |
| 35 |
We should better handle this in the future: |
| 36 |
<https://webkit.org/b/141450> Web Inspector: Better support for CSSOM StyleSheet mutations (insertRule/deleteRule) |
| 37 |
|
| 1 |
2015-02-10 Carlos Garcia Campos <cgarcia@igalia.com> |
38 |
2015-02-10 Carlos Garcia Campos <cgarcia@igalia.com> |
| 2 |
|
39 |
|
| 3 |
[GTK] GMutexLocker build issue |
40 |
[GTK] GMutexLocker build issue |