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

Side by Side Diff: third_party/WebKit/Source/core/layout/compositing/CompositedSelection.h

Issue 2691583003: Removed fields from Selection classes (Closed)
Patch Set: Forgot to remove fields from test Created 3 years, 10 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 /* 1 /*
2 * Copyright (C) 2015 Google Inc. All rights reserved. 2 * Copyright (C) 2015 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 26 matching lines...) Expand all
37 #include "platform/graphics/GraphicsLayer.h" 37 #include "platform/graphics/GraphicsLayer.h"
38 #include "wtf/Allocator.h" 38 #include "wtf/Allocator.h"
39 39
40 namespace blink { 40 namespace blink {
41 41
42 // The active selection region, containing compositing data for the selection 42 // The active selection region, containing compositing data for the selection
43 // end points as well as metadata for the selection region. 43 // end points as well as metadata for the selection region.
44 // See |WebSelection|. 44 // See |WebSelection|.
45 struct CompositedSelection { 45 struct CompositedSelection {
46 STACK_ALLOCATED(); 46 STACK_ALLOCATED();
47 CompositedSelection() 47 CompositedSelection() : type(NoSelection) {}
48 : type(NoSelection), isEditable(false), isEmptyTextControl(false) {}
49 48
50 SelectionType type; 49 SelectionType type;
51 CompositedSelectionBound start; 50 CompositedSelectionBound start;
52 CompositedSelectionBound end; 51 CompositedSelectionBound end;
53 bool isEditable;
54 bool isEmptyTextControl;
55 }; 52 };
56 53
57 } // namespace blink 54 } // namespace blink
58 55
59 #endif // CompositedSelection_h 56 #endif // CompositedSelection_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameView.cpp ('k') | third_party/WebKit/Source/web/WebSelection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698