Bug 78461 - Move attribute style invalidation to attributeChanged().
Summary: Move attribute style invalidation to attributeChanged().
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Andreas Kling
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-12 23:03 PST by Andreas Kling
Modified: 2012-02-13 02:37 PST (History)
3 users (show)

See Also:


Attachments
Patch (70.62 KB, patch)
2012-02-12 23:04 PST, Andreas Kling
koivisto: review+
webkit.review.bot: commit-queue-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Kling 2012-02-12 23:03:21 PST
Instead of doing it from parseAttribute() overloads.
Comment 1 Andreas Kling 2012-02-12 23:04:04 PST
Created attachment 126719 [details]
Patch
Comment 2 Antti Koivisto 2012-02-12 23:17:35 PST
Comment on attachment 126719 [details]
Patch

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

> Source/WebCore/html/HTMLPreElement.cpp:52
> +void HTMLPreElement::collectStyleForAttribute(Attribute* attr, StylePropertySet* style)

collectStyleForAttribute() should be renamed to collectStyleForPresentationAttribute() to match isPresentationAttribute()

> Source/WebCore/html/HTMLTableElement.cpp:359
> +    if (attr->name() == widthAttr || attr->name() == heightAttr || attr->name() == bgcolorAttr || attr->name() == backgroundAttr || attr->name() == valignAttr || attr->name() == vspaceAttr || attr->name() == hspaceAttr || attr->name() == alignAttr || attr->name() == cellspacingAttr || attr->name() == borderAttr || attr->name() == bordercolorAttr || attr->name() == frameAttr || attr->name() == rulesAttr)

Uh, this line is pretty long.
Comment 3 WebKit Review Bot 2012-02-12 23:59:00 PST
Comment on attachment 126719 [details]
Patch

Attachment 126719 [details] did not pass chromium-ews (chromium-xvfb):
Output: http://queues.webkit.org/results/11504720

New failing tests:
fast/forms/button-align.html
fast/forms/textarea-align.html
Comment 4 Andreas Kling 2012-02-13 02:37:11 PST
Committed r107554: <http://trac.webkit.org/changeset/107554>