| Summary: | REGRESSION(r180050): It broke the !ENABLE(CSS_GRID_LAYOUT) build | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Csaba Osztrogonác <ossy> | ||||||||||
| Component: | New Bugs | Assignee: | ChangSeok Oh <changseok> | ||||||||||
| Status: | RESOLVED FIXED | ||||||||||||
| Severity: | Normal | CC: | changseok, commit-queue, esprehn+autocc, kangil.han, ossy, rniwa | ||||||||||
| Priority: | P2 | ||||||||||||
| Version: | 528+ (Nightly build) | ||||||||||||
| Hardware: | Unspecified | ||||||||||||
| OS: | Unspecified | ||||||||||||
| Bug Depends on: | |||||||||||||
| Bug Blocks: | 141465 | ||||||||||||
| Attachments: |
|
||||||||||||
|
Description
Csaba Osztrogonác
2015-02-16 08:07:34 PST
Oops. Sorry for the inconvenience. If nobody is touching on this, let me fix it soon. Created attachment 246664 [details]
Patch
Attachment 246664 [details] did not pass style-queue:
ERROR: Source/WebCore/dom/Position.cpp:943: Multi line control clauses should use braces. [whitespace/braces] [4]
Total errors found: 1 in 2 files
If any of these errors are false positives, please file a bug against check-webkit-style.
Comment on attachment 246664 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=246664&action=review > Source/WebCore/dom/Position.cpp:56 > + No need to guard the include, RenderGrid.h is already guarded. > Source/WebCore/dom/Position.cpp:947 > - if (is<RenderBlockFlow>(*renderer) || is<RenderFlexibleBox>(*renderer) || is<RenderGrid>(*renderer)) { > + if (is<RenderBlockFlow>(*renderer) || is<RenderFlexibleBox>(*renderer) > +#if ENABLE(CSS_GRID_LAYOUT) > + || is<RenderGrid>(*renderer) > +#endif > + ) { Ouch, it is so bad looking. Maybe this one would be a little bit better, but still ugly: if (is<RenderBlockFlow>(*renderer) || #if ENABLE(CSS_GRID_LAYOUT) is<RenderGrid>(*renderer) || #endif is<RenderFlexibleBox>(*renderer)) { ... Comment on attachment 246664 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=246664&action=review Thanks for your comments. =) >> Source/WebCore/dom/Position.cpp:56 >> + > > No need to guard the include, RenderGrid.h is already guarded. O.K Removed. >> Source/WebCore/dom/Position.cpp:947 >> + ) { > > Ouch, it is so bad looking. > > Maybe this one would be a little bit better, but still ugly: > > if (is<RenderBlockFlow>(*renderer) || > #if ENABLE(CSS_GRID_LAYOUT) > is<RenderGrid>(*renderer) || > #endif > is<RenderFlexibleBox>(*renderer)) { > ... Indeed. However a similar ugly look already exists. https://trac.webkit.org/browser/trunk/Source/WebCore/rendering/RenderBox.cpp#L2373 :P Let me update the patch as you noted. Created attachment 246717 [details]
Patch
Comment on attachment 246717 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=246717&action=review r=me > Source/WebCore/ChangeLog:10 > + * dom/Position.cpp: Add a build gard ENABLE(CSS_GRID_LAYOUT) for RenderGrid. typo: gard -> guard Created attachment 246734 [details]
Patch
Created attachment 246735 [details]
Patch
Comment on attachment 246735 [details] Patch Clearing flags on attachment: 246735 Committed r180213: <http://trac.webkit.org/changeset/180213> |