Bug 77421

Summary: Parent SVGFontFaceElements style declaration to the rule
Product: WebKit Reporter: Antti Koivisto <koivisto>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 77745    
Attachments:
Description Flags
patch aroben: review+

Description Antti Koivisto 2012-01-31 03:34:49 PST
For some reason the declaration is parented to the element which adds bunch of unnecessary special case code.
Comment 1 Antti Koivisto 2012-01-31 03:43:20 PST
Created attachment 124702 [details]
patch
Comment 2 WebKit Review Bot 2012-01-31 03:45:30 PST
Attachment 124702 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/update-webkit']" exit_code: 9

Updating OpenSource
First, rewinding head to replay your work on top of it...
Applying: Fix compilation errors on build-webkit --debug --no-workers on mac.
Using index info to reconstruct a base tree...
Falling back to patching base and 3-way merge...
Auto-merging LayoutTests/ChangeLog
CONFLICT (content): Merge conflict in LayoutTests/ChangeLog
Auto-merging LayoutTests/platform/qt/Skipped
CONFLICT (content): Merge conflict in LayoutTests/platform/qt/Skipped
Auto-merging Source/WebCore/ChangeLog
CONFLICT (content): Merge conflict in Source/WebCore/ChangeLog
Failed to merge in the changes.
Patch failed at 0001 Fix compilation errors on build-webkit --debug --no-workers on mac.

When you have resolved this problem run "git rebase --continue".
If you would prefer to skip this patch, instead run "git rebase --skip".
To restore the original branch and stop rebasing run "git rebase --abort".

rebase refs/remotes/origin/master: command returned error: 1

Died at Tools/Scripts/update-webkit line 164.


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Adam Roben (:aroben) 2012-01-31 06:52:28 PST
Comment on attachment 124702 [details]
patch

View in context: https://bugs.webkit.org/attachment.cgi?id=124702&action=review

> Source/WebCore/css/CSSFontFaceRule.cpp:36
> -    // FIXME: SVGFontFaceElement's style declaration should probably be parented to the rule too.
> -    if (m_style && !m_style->isElementStyleDeclaration())
> -        m_style->clearParentRule();
> +    m_style->clearParentRule();

Why do we now know m_style cannot be null? You should explain in the ChangeLog.
Comment 4 Antti Koivisto 2012-01-31 07:00:03 PST
http://trac.webkit.org/changeset/106358

I put back the null test. While that shouldn't really happen, that change is better done separately.