Bug 70956 - StyleSheet.parentStyleSheet does not work.
Summary: StyleSheet.parentStyleSheet does not work.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Andreas Kling
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-26 12:13 PDT by Andreas Kling
Modified: 2011-10-27 07:26 PDT (History)
2 users (show)

See Also:


Attachments
Ein Patch (3.13 KB, patch)
2011-10-26 12:17 PDT, Andreas Kling
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Kling 2011-10-26 12:13:30 PDT
The current implementation of StyleSheet.parentStyleSheet assumes that the parentStyleSheet is the direct parent of the StyleSheet.
This is never the case, as StyleSheet is always parented by a CSSRule.
Comment 1 Andreas Kling 2011-10-26 12:17:22 PDT
Created attachment 112575 [details]
Ein Patch
Comment 2 Antti Koivisto 2011-10-26 12:20:30 PDT
Comment on attachment 112575 [details]
Ein Patch

r=me
Comment 3 Antti Koivisto 2011-10-26 12:21:01 PDT
Comment on attachment 112575 [details]
Ein Patch

r=me
Comment 4 WebKit Review Bot 2011-10-27 07:26:18 PDT
Comment on attachment 112575 [details]
Ein Patch

Clearing flags on attachment: 112575

Committed r98568: <http://trac.webkit.org/changeset/98568>
Comment 5 WebKit Review Bot 2011-10-27 07:26:24 PDT
All reviewed patches have been landed.  Closing bug.