WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 124052
[CSS Shapes] Shapes do not resolve dimensions specified in viewport units
https://bugs.webkit.org/show_bug.cgi?id=124052
Summary
[CSS Shapes] Shapes do not resolve dimensions specified in viewport units
Bear Travis
Reported
2013-11-08 10:23:03 PST
Created
attachment 216409
[details]
Testcase When an element's height is set in viewport units, percentages in a shape do not resolve. The shape resolves the percentages as if height were auto.
Attachments
Testcase
(986 bytes, text/html)
2013-11-08 10:23 PST
,
Bear Travis
no flags
Details
Patch
(32.70 KB, patch)
2014-05-07 16:22 PDT
,
Bem Jones-Bey
no flags
Details
Formatted Diff
Diff
Patch
(33.46 KB, patch)
2014-05-08 11:35 PDT
,
Bem Jones-Bey
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Bem Jones-Bey
Comment 1
2014-03-27 11:00:16 PDT
I believe this is actually caused by the same root cause as
Bug 87846
, and I'm working on a fix for that.
Bem Jones-Bey
Comment 2
2014-04-03 13:44:52 PDT
This isn't related to
Bug 87846
at all, in fact shapes fail to work with viewport units in general, even specified on the shape itself. This is because the RenderView is not passed down into the code that computes the lengths. It is true that the fix for
Bug 87846
will fix this, but depending on how long it takes to fix
Bug 87846
, I may fix this separately.
Rebecca Hauck
Comment 3
2014-04-28 17:27:09 PDT
Viewport units are also not computed on shape-margin.
Bem Jones-Bey
Comment 4
2014-05-07 16:22:38 PDT
Created
attachment 231028
[details]
Patch
Dirk Schulze
Comment 5
2014-05-08 10:04:16 PDT
Comment on
attachment 231028
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=231028&action=review
r=me
> Source/WebCore/css/BasicShapeFunctions.cpp:268 > +float floatValueForCenterCoordinate(const BasicShapeCenterCoordinate& center, float boxDimension, RenderView* view)
Can you use a reference instead of a pointer?
> Source/WebCore/css/BasicShapeFunctions.h:48 > +float floatValueForCenterCoordinate(const BasicShapeCenterCoordinate&, float, RenderView*);
Ditto.
> Source/WebCore/css/LengthFunctions.h:41 > +FloatSize floatSizeForLengthSize(const LengthSize&, const FloatSize&, RenderView* = 0);
Hm, ok.
WebKit Commit Bot
Comment 6
2014-05-08 10:38:58 PDT
Comment on
attachment 231028
[details]
Patch Rejecting
attachment 231028
[details]
from commit-queue. Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.appspot.com', '--bot-id=webkit-cq-03', 'build', '--no-clean', '--no-update', '--build-style=release', '--port=mac']" exit_code: 2 cwd: /Volumes/Data/EWS/WebKit Last 500 characters of output: eBox.dia -c /Volumes/Data/EWS/WebKit/Source/WebCore/rendering/RenderDeprecatedFlexibleBox.cpp -o /Volumes/Data/EWS/WebKit/WebKitBuild/WebCore.build/Release/WebCore.build/Objects-normal/x86_64/RenderDeprecatedFlexibleBox.o ** BUILD FAILED ** The following build commands failed: CompileC /Volumes/Data/EWS/WebKit/WebKitBuild/WebCore.build/Release/WebCore.build/Objects-normal/x86_64/RenderBlock.o rendering/RenderBlock.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler (1 failure) Full output:
http://webkit-queues.appspot.com/results/6359674257408000
Bem Jones-Bey
Comment 7
2014-05-08 11:35:02 PDT
Created
attachment 231083
[details]
Patch
WebKit Commit Bot
Comment 8
2014-05-08 12:15:05 PDT
Comment on
attachment 231083
[details]
Patch Clearing flags on attachment: 231083 Committed
r168481
: <
http://trac.webkit.org/changeset/168481
>
WebKit Commit Bot
Comment 9
2014-05-08 12:15:11 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug