Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
6215abec
Commit
6215abec
authored
Aug 26, 2015
by
Andrew Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change generic value names to be more descriptive for assert tracing.
parent
ea2ff273
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
47 additions
and
47 deletions
+47
-47
proxy_box.dart
packages/flutter/lib/rendering/proxy_box.dart
+47
-47
No files found.
packages/flutter/lib/rendering/proxy_box.dart
View file @
6215abec
...
...
@@ -82,11 +82,11 @@ class RenderConstrainedBox extends RenderProxyBox {
BoxConstraints
_additionalConstraints
;
BoxConstraints
get
additionalConstraints
=>
_additionalConstraints
;
void
set
additionalConstraints
(
BoxConstraints
value
)
{
assert
(
value
!=
null
);
if
(
_additionalConstraints
==
value
)
void
set
additionalConstraints
(
BoxConstraints
newConstraints
)
{
assert
(
newConstraints
!=
null
);
if
(
_additionalConstraints
==
newConstraints
)
return
;
_additionalConstraints
=
value
;
_additionalConstraints
=
newConstraints
;
markNeedsLayout
();
}
...
...
@@ -136,11 +136,11 @@ class RenderAspectRatio extends RenderProxyBox {
double
_aspectRatio
;
double
get
aspectRatio
=>
_aspectRatio
;
void
set
aspectRatio
(
double
value
)
{
assert
(
value
!=
null
);
if
(
_aspectRatio
==
value
)
void
set
aspectRatio
(
double
newAspectRatio
)
{
assert
(
newAspectRatio
!=
null
);
if
(
_aspectRatio
==
newAspectRatio
)
return
;
_aspectRatio
=
value
;
_aspectRatio
=
newAspectRatio
;
markNeedsLayout
();
}
...
...
@@ -190,19 +190,19 @@ class RenderShrinkWrapWidth extends RenderProxyBox {
double
_stepWidth
;
double
get
stepWidth
=>
_stepWidth
;
void
set
stepWidth
(
double
value
)
{
if
(
value
==
_stepWidth
)
void
set
stepWidth
(
double
newStepWidth
)
{
if
(
newStepWidth
==
_stepWidth
)
return
;
_stepWidth
=
value
;
_stepWidth
=
newStepWidth
;
markNeedsLayout
();
}
double
_stepHeight
;
double
get
stepHeight
=>
_stepHeight
;
void
set
stepHeight
(
double
value
)
{
if
(
value
==
_stepHeight
)
void
set
stepHeight
(
double
newStepHeight
)
{
if
(
newStepHeight
==
_stepHeight
)
return
;
_stepHeight
=
value
;
_stepHeight
=
newStepHeight
;
markNeedsLayout
();
}
...
...
@@ -269,12 +269,12 @@ class RenderOpacity extends RenderProxyBox {
double
_opacity
;
double
get
opacity
=>
_opacity
;
void
set
opacity
(
double
value
)
{
assert
(
value
!=
null
);
assert
(
value
>=
0.0
&&
value
<=
1.0
);
if
(
_opacity
==
value
)
void
set
opacity
(
double
newOpacity
)
{
assert
(
newOpacity
!=
null
);
assert
(
newOpacity
>=
0.0
&&
newOpacity
<=
1.0
);
if
(
_opacity
==
newOpacity
)
return
;
_opacity
=
value
;
_opacity
=
newOpacity
;
markNeedsPaint
();
}
...
...
@@ -300,21 +300,21 @@ class RenderColorFilter extends RenderProxyBox {
Color
_color
;
Color
get
color
=>
_color
;
void
set
color
(
Color
value
)
{
assert
(
value
!=
null
);
if
(
_color
==
value
)
void
set
color
(
Color
newColor
)
{
assert
(
newColor
!=
null
);
if
(
_color
==
newColor
)
return
;
_color
=
value
;
_color
=
newColor
;
markNeedsPaint
();
}
sky
.
TransferMode
_transferMode
;
sky
.
TransferMode
get
transferMode
=>
_transferMode
;
void
set
transferMode
(
sky
.
TransferMode
valu
e
)
{
assert
(
valu
e
!=
null
);
if
(
_transferMode
==
valu
e
)
void
set
transferMode
(
sky
.
TransferMode
newTransferMod
e
)
{
assert
(
newTransferMod
e
!=
null
);
if
(
_transferMode
==
newTransferMod
e
)
return
;
_transferMode
=
valu
e
;
_transferMode
=
newTransferMod
e
;
markNeedsPaint
();
}
...
...
@@ -342,21 +342,21 @@ class RenderClipRRect extends RenderProxyBox {
double
_xRadius
;
double
get
xRadius
=>
_xRadius
;
void
set
xRadius
(
double
value
)
{
assert
(
value
!=
null
);
if
(
_xRadius
==
value
)
void
set
xRadius
(
double
newXRadius
)
{
assert
(
newXRadius
!=
null
);
if
(
_xRadius
==
newXRadius
)
return
;
_xRadius
=
value
;
_xRadius
=
newXRadius
;
markNeedsPaint
();
}
double
_yRadius
;
double
get
yRadius
=>
_yRadius
;
void
set
yRadius
(
double
value
)
{
assert
(
value
!=
null
);
if
(
_yRadius
==
value
)
void
set
yRadius
(
double
newYRadius
)
{
assert
(
newYRadius
!=
null
);
if
(
_yRadius
==
newYRadius
)
return
;
_yRadius
=
value
;
_yRadius
=
newYRadius
;
markNeedsPaint
();
}
...
...
@@ -408,12 +408,12 @@ class RenderDecoratedBox extends RenderProxyBox {
final
BoxPainter
_painter
;
BoxDecoration
get
decoration
=>
_painter
.
decoration
;
void
set
decoration
(
BoxDecoration
value
)
{
assert
(
value
!=
null
);
if
(
value
==
_painter
.
decoration
)
void
set
decoration
(
BoxDecoration
newDecoration
)
{
assert
(
newDecoration
!=
null
);
if
(
newDecoration
==
_painter
.
decoration
)
return
;
_removeBackgroundImageListenerIfNeeded
();
_painter
.
decoration
=
value
;
_painter
.
decoration
=
newDecoration
;
_addBackgroundImageListenerIfNeeded
();
markNeedsPaint
();
}
...
...
@@ -468,11 +468,11 @@ class RenderTransform extends RenderProxyBox {
Matrix4
_transform
;
void
set
transform
(
Matrix4
value
)
{
assert
(
value
!=
null
);
if
(
_transform
==
value
)
void
set
transform
(
Matrix4
newTransform
)
{
assert
(
newTransform
!=
null
);
if
(
_transform
==
newTransform
)
return
;
_transform
=
new
Matrix4
.
copy
(
value
);
_transform
=
new
Matrix4
.
copy
(
newTransform
);
markNeedsPaint
();
}
...
...
@@ -569,11 +569,11 @@ class RenderCustomPaint extends RenderProxyBox {
}
CustomPaintCallback
_callback
;
void
set
callback
(
CustomPaintCallback
value
)
{
assert
(
value
!=
null
||
!
attached
);
if
(
_callback
==
value
)
void
set
callback
(
CustomPaintCallback
newCallback
)
{
assert
(
newCallback
!=
null
||
!
attached
);
if
(
_callback
==
newCallback
)
return
;
_callback
=
value
;
_callback
=
newCallback
;
markNeedsPaint
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment