Closed Bug 1444666 Opened 6 years ago Closed 6 years ago

get rid of nsSVGUtils version of GetStrokeDashData and replace by SVGContentUtils::GetStrokeOptions

Categories

(Core :: SVG, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla60
Tracking Status
firefox60 --- fixed

People

(Reporter: longsonr, Assigned: longsonr)

Details

Attachments

(1 file)

      No description provided.
Attached patch patchSplinter Review
Assignee: nobody → longsonr
Attachment #8957849 - Flags: review?(jwatt)
Comment on attachment 8957849 [details] [diff] [review]
patch

Review of attachment 8957849 [details] [diff] [review]:
-----------------------------------------------------------------

Nice find!

::: gfx/thebes/gfxContext.h
@@ +286,4 @@
>       * Paints the current source surface/pattern everywhere in the current
>       * clip region.
>       */
> +    void Paint(mozilla::gfx::Float alpha = 1.0);

Nit: Could you put a typedef for Float at the beginning of the class so we don't need to prefix throughout this header?

::: layout/svg/SVGContextPaint.h
@@ +96,4 @@
>    void InitStrokeGeometry(gfxContext *aContext,
>                            float devUnitsPerSVGUnit);
>  
> +  const FallibleTArray<mozilla::gfx::Float>& GetStrokeDashArray() const {

Nit: typedef.

::: layout/svg/nsSVGUtils.cpp
@@ +1699,2 @@
>  
> +  if (strokeOptions.mLineWidth <= 0)

Curly braces to match style guidelines.
Attachment #8957849 - Flags: review?(jwatt) → review+
Pushed by longsonr@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/54ed9f585985
get rid of nsSVGUtils version of GetStrokeDashData and replace by SVGContentUtils::GetStrokeOptions r=jwatt
https://hg.mozilla.org/mozilla-central/rev/54ed9f585985
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla60
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: