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
361d6d80
Commit
361d6d80
authored
Nov 19, 2015
by
Adam Barth
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #499 from abarth/layer_borders
Re-enable support for debugPaintLayerBordersEnabled
parents
3654f0e2
2232ee56
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
object.dart
packages/flutter/lib/src/rendering/object.dart
+10
-0
No files found.
packages/flutter/lib/src/rendering/object.dart
View file @
361d6d80
...
@@ -158,6 +158,16 @@ class PaintingContext {
...
@@ -158,6 +158,16 @@ class PaintingContext {
void
_stopRecordingIfNeeded
()
{
void
_stopRecordingIfNeeded
()
{
if
(!
_isRecording
)
if
(!
_isRecording
)
return
;
return
;
assert
(()
{
if
(
debugPaintLayerBordersEnabled
)
{
Paint
paint
=
new
Paint
()
..
style
=
ui
.
PaintingStyle
.
stroke
..
strokeWidth
=
1.0
..
color
=
debugPaintLayerBordersColor
;
canvas
.
drawRect
(
_paintBounds
,
paint
);
}
return
true
;
});
_currentLayer
.
picture
=
_recorder
.
endRecording
();
_currentLayer
.
picture
=
_recorder
.
endRecording
();
_currentLayer
=
null
;
_currentLayer
=
null
;
_recorder
=
null
;
_recorder
=
null
;
...
...
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