Commit 83ae2a26 authored by eae's avatar eae Committed by Commit bot

Reformat comments in core/layout/api

BUG=563793
TBR=pilgrim@chromium.org

Review-Url: https://codereview.chromium.org/2392153002
Cr-Commit-Position: refs/heads/master@{#423002}
parent 0c4d7f1f
...@@ -11,7 +11,8 @@ namespace blink { ...@@ -11,7 +11,8 @@ namespace blink {
class LayoutObject; class LayoutObject;
// TODO(pilgrim): Remove this kludge once clients have a real API and no longer need access to the underlying LayoutObject. // TODO(pilgrim): Remove this kludge once clients have a real API and no longer
// need access to the underlying LayoutObject.
class LayoutAPIShim { class LayoutAPIShim {
public: public:
static LayoutObject* layoutObjectFrom(LayoutItem item) { static LayoutObject* layoutObjectFrom(LayoutItem item) {
......
...@@ -11,7 +11,8 @@ namespace blink { ...@@ -11,7 +11,8 @@ namespace blink {
class LayoutObject; class LayoutObject;
// TODO(pilgrim): Remove this kludge once clients have a real API and no longer need access to the underlying LayoutObject. // TODO(pilgrim): Remove this kludge once clients have a real API and no longer
// need access to the underlying LayoutObject.
class LineLayoutAPIShim { class LineLayoutAPIShim {
public: public:
static LayoutObject* layoutObjectFrom(LineLayoutItem item) { static LayoutObject* layoutObjectFrom(LineLayoutItem item) {
......
...@@ -76,8 +76,8 @@ class LineLayoutItem { ...@@ -76,8 +76,8 @@ class LineLayoutItem {
LineLayoutBox containingBlock() const; LineLayoutBox containingBlock() const;
// Implemented in LineLayoutBoxModel.h // Implemented in LineLayoutBoxModel.h
// Intentionally returns a LineLayoutBoxModel to avoid exposing LayoutBoxModelObject // Intentionally returns a LineLayoutBoxModel to avoid exposing
// to the line layout code. // LayoutBoxModelObject to the line layout code.
LineLayoutBoxModel enclosingBoxModelObject() const; LineLayoutBoxModel enclosingBoxModelObject() const;
LineLayoutItem container() const { LineLayoutItem container() const {
......
...@@ -71,7 +71,8 @@ class SVGInlineTextMetricsIterator { ...@@ -71,7 +71,8 @@ class SVGInlineTextMetricsIterator {
if (m_characterOffset == startCharacterOffset) if (m_characterOffset == startCharacterOffset)
return; return;
// TODO(fs): We could walk backwards through the metrics list in these cases. // TODO(fs): We could walk backwards through the metrics list in these
// cases.
if (m_characterOffset > startCharacterOffset) if (m_characterOffset > startCharacterOffset)
reset(textLineLayout); reset(textLineLayout);
......
...@@ -8,11 +8,19 @@ ...@@ -8,11 +8,19 @@
namespace blink { namespace blink {
enum SelectionState { enum SelectionState {
SelectionNone, // The object is not selected. // The object is not selected.
SelectionStart, // The object either contains the start of a selection run or is the start of a run. SelectionNone,
SelectionInside, // The object is fully encompassed by a selection run. // The object either contains the start of a selection run or is the start of
SelectionEnd, // The object either contains the end of a selection run or is the end of a run. // a run.
SelectionBoth // The object contains an entire run or is the sole selected object in that run. SelectionStart,
// The object is fully encompassed by a selection run.
SelectionInside,
// The object either contains the end of a selection run or is the end of a
// run.
SelectionEnd,
// The object contains an entire run or is the sole selected object in that
// run.
SelectionBoth
}; };
} // namespace blink } // namespace blink
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment