Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(309)

Side by Side Diff: third_party/WebKit/Source/core/paint/NinePieceImageGridTest.cpp

Issue 2392443009: reflow comments in core/paint (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/paint/NinePieceImageGrid.h" 5 #include "core/paint/NinePieceImageGrid.h"
6 6
7 #include "core/css/CSSGradientValue.h" 7 #include "core/css/CSSGradientValue.h"
8 #include "core/layout/LayoutTestHelper.h" 8 #include "core/layout/LayoutTestHelper.h"
9 #include "core/style/ComputedStyle.h" 9 #include "core/style/ComputedStyle.h"
10 #include "core/style/NinePieceImage.h" 10 #include "core/style/NinePieceImage.h"
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 Image::StretchTile, Image::StretchTile}, 271 Image::StretchTile, Image::StretchTile},
272 {false, false, FloatRect(0, 0, 0, 0), FloatRect(0, 0, 0, 0), 0, 0, 272 {false, false, FloatRect(0, 0, 0, 0), FloatRect(0, 0, 0, 0), 0, 0,
273 Image::StretchTile, Image::RoundTile}, 273 Image::StretchTile, Image::RoundTile},
274 {false, false, FloatRect(0, 0, 0, 0), FloatRect(0, 0, 0, 0), 0, 0, 274 {false, false, FloatRect(0, 0, 0, 0), FloatRect(0, 0, 0, 0), 0, 0,
275 Image::StretchTile, Image::RoundTile}, 275 Image::StretchTile, Image::RoundTile},
276 {false, false, FloatRect(0, 0, 0, 0), FloatRect(0, 0, 0, 0), 0, 0, 276 {false, false, FloatRect(0, 0, 0, 0), FloatRect(0, 0, 0, 0), 0, 0,
277 Image::StretchTile, Image::RoundTile}, 277 Image::StretchTile, Image::RoundTile},
278 {false, false, FloatRect(0, 0, 0, 0), FloatRect(0, 0, 0, 0), 0, 0, 278 {false, false, FloatRect(0, 0, 0, 0), FloatRect(0, 0, 0, 0), 0, 0,
279 Image::StretchTile, Image::RoundTile}, 279 Image::StretchTile, Image::RoundTile},
280 }}, 280 }},
281 {// All borders but no slices, with fill (stretch horizontally, space vert ically) 281 {// All borders but no slices, with fill (stretch horizontally, space
282 // vertically)
282 IntSize(100, 100), 283 IntSize(100, 100),
283 IntRect(0, 0, 100, 100), 284 IntRect(0, 0, 100, 100),
284 IntRectOutsets(10, 10, 10, 10), 285 IntRectOutsets(10, 10, 10, 10),
285 true, 286 true,
286 LengthBox(Length(0, Fixed), Length(0, Fixed), Length(0, Fixed), 287 LengthBox(Length(0, Fixed), Length(0, Fixed), Length(0, Fixed),
287 Length(0, Fixed)), 288 Length(0, Fixed)),
288 Image::StretchTile, 289 Image::StretchTile,
289 Image::SpaceTile, 290 Image::SpaceTile,
290 { 291 {
291 {false, true, FloatRect(0, 0, 0, 0), FloatRect(0, 0, 0, 0), 1, 1, 292 {false, true, FloatRect(0, 0, 0, 0), FloatRect(0, 0, 0, 0), 1, 1,
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 EXPECT_EQ(testCase.pieces[piece].horizontalRule, 352 EXPECT_EQ(testCase.pieces[piece].horizontalRule,
352 drawInfo.tileRule.horizontal); 353 drawInfo.tileRule.horizontal);
353 EXPECT_EQ(testCase.pieces[piece].verticalRule, 354 EXPECT_EQ(testCase.pieces[piece].verticalRule,
354 drawInfo.tileRule.vertical); 355 drawInfo.tileRule.vertical);
355 } 356 }
356 } 357 }
357 } 358 }
358 359
359 } // namespace 360 } // namespace
360 } // namespace blink 361 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698